/* Pop-up Form Styling */

.pop-up-form {

  background: rgba(0, 0, 0, 0.70);

  width: 100%;

  height: 100%;

  max-width: 100vw;

  z-index: 99999;

  top: 0;

  left: 0;

  position: fixed !important;

  display: none;

}


.pop-up-form .popup-content,
.pop-up-form .form-content {

  overflow-y: auto;

  max-height: 98vh;

  width: auto;

  height: auto;

  padding: 65px 30px 30px;

  position: fixed;

  left: 50%;

  top: 50%;

  transform: translate(-50%, -50%);

  background-color: white; 

  max-width: 705px;

  min-width: 250px;

}





.pop-up-form h3 {

  white-space: nowrap;

  color: black;

  margin: 0;

}



.pop-up-form .gform_wrapper .top_label .gfield:not(.hidden_label) .gfield_label {

  display: flex !important;

}


.pop-up-form .gform_wrapper .top_label .hidden_label .gfield_label {

  display: none;



}







.pop-up-form .gfield {



  text-align: left;



}







.pop-up-form .form-content:has(.gfield--width-half) {



  min-width: 700px;



}


body:has(.pop-up-form:not([data-popup-display="chatbot"]).active) {
  overflow: hidden;
}


.bt-content-wrap:has(.pop-up-form.active) {



  position: relative;



  z-index: 10003;



}







.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),



.pop-up-form .gform_wrapper form {



  text-align: left !important;



}







.pop-up-form .gform_wrapper .gfield_validation_message.gfield_description, 



.pop-up-form .gform_wrapper.gravity-theme .instruction,



.pop-up-form .gform_title {



  padding: 0;



  border: none;



}







.pop-up-form input[type="submit"]:not(.um input) {



  width: auto !important;



  margin-top: 10px;



}







.pop-up-form input:not(input[type="submit"], 



input[type="checkbox"]) {



  margin: 0px auto 20px auto;



}







.pop-up-form .disclaimer {



  color: #c9252c;



}







.pop-up-form .gform_title {



  display: none;



}







.pop-up-form .gform_wrapper.gravity-theme .gform_footer, 



.pop-up-form .gform_wrapper.gravity-theme .gform_page_footer{



  padding-bottom: 0;



}











.pop-up-form p,



.pop-up-form form {



  margin: 0;



}







.pop-up-form .popup-content:has(.api-error),



.pop-up-form .form-content:has(.api-error) {



  min-width: 510px;



}







.pop-up-form .popup-content::-webkit-scrollbar,



.pop-up-form .form-content::-webkit-scrollbar {



  width: 12px;



}







.pop-up-form .popup-content::-webkit-scrollbar-track,



.pop-up-form .form-content::-webkit-scrollbar-track {



  background: #f0f0f0;



  border-radius: 20px;



}







.pop-up-form .popup-content::-webkit-scrollbar-thumb,



.pop-up-form .form-content::-webkit-scrollbar-thumb {



  background: #d3d3d3;



  border-radius: 20px;



}



.pop-up-form .form-content {
  color: black;
}



/* Firefox */



.pop-up-form .popup-content,



.pop-up-form .form-content {



  scrollbar-width: thin;



  scrollbar-color: #d3d3d3 #f0f0f0;



}







/* Applying border-radius to Firefox scrollbar */



.pop-up-form .popup-content,



.pop-up-form .form-content {



  --scrollbar-background: #d3d3d3;



  --scrollbar-thumb: #f0f0f0;



  overflow-y: auto;



}







.pop-up-form .popup-content::-webkit-scrollbar



.pop-up-form .form-content::-webkit-scrollbar {



  width: 14px;



}







.pop-up-form .popup-content::-webkit-scrollbar-track,



.pop-up-form .form-content::-webkit-scrollbar-track {



  background: var(--scrollbar-thumb);



  border-radius: 20px;



}







.pop-up-form .popup-content::-webkit-scrollbar-thumb,



.pop-up-form .form-content::-webkit-scrollbar-thumb {



  background: var(--scrollbar-background);



  border-radius: 20px;



}







.pop-up-form .popup-content,



.pop-up-form .form-content {



  scrollbar-width: thin;



  scrollbar-color: var(--scrollbar-background) var(--scrollbar-thumb);



}

.pop-up-form .form-content:has(form) {



  min-width: 380px;



}







.pop-up-form form {



  margin-top: 10px;



}







.pop-up-form .close {







  position: absolute;



  top: 0;



  right: 0;



  cursor: pointer;



  font-size: 24px;



  padding: 25px;



}











.pop-up-form .wpcf7 form .wpcf7-response-output {



  margin: 50px 0 0;



}







.pop-up-form .gform_wrapper.gravity-theme .ginput_container_date input,



.site-content .pop-up-form input[type="date"],



.pop-up-form .wpcf7-form-control-wrap:has(input[type="date"]) {



  width: 100%;



  vertical-align: middle;



}







.pop-up-form div:has(input[type="date"]) label {



  vertical-align: middle;



}







.site-content .pop-up-form input[type="date"] {



  margin: 0;



}

.pop-up-form .buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
}

.pop-up-form .button,
.pop-up-form button {
  transition: transform 0.2s ease;
}

.pop-up-form .button:hover,
.pop-up-form button:hover {
  transform: scale(1.1);
  filter: brightness(0.95);
}

/* Floating launcher button styled like a chatbot */
.chatbot-launch-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073e6;
  background: var(--e-global-color-accent);
  color: #fff;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10001;
  font-size: 16px;
  transition: all 0.2s ease;
}

.chatbot-launch-bar:hover {
  filter: brightness(1.1);
}

.chatbot-launch-bar .chat-icon {
  font-size: 20px;
  line-height: 1;
}

/* Override modal form to behave like a popup */
.pop-up-form[data-popup-display="chatbot"] {
  position: fixed !important;
  bottom: 15px !important;
  right: 15px !important;
  top: unset !important;
  left: unset !important;
  width: auto;
  height: auto !important;
  background: #fff !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  border-radius: 10px;
  overflow: hidden;
  display: none;
}

/* Inner form adjustments */
.pop-up-form[data-popup-display="chatbot"] .form-content,
.pop-up-form[data-popup-display="chatbot"] .popup-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  overflow-y: auto;
  min-width: 300px;
  box-sizing: border-box;
}

/* Close (X) button inside modal */
.pop-up-form[data-popup-display="chatbot"] .close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  z-index: 10;
}






/* Tablet */



@media screen and (max-width: 1000px) and (min-width: 580px) {



  .pop-up-form .gform_body {



    max-width: 100% !important;



  }







  .pop-up-form h3 {



    white-space: normal;



  }



}







/* Mobile Styling */



@media screen and (max-width: 580px) {







  .pop-up-form .popup-content:has(.gfield--width-half),



  .pop-up-form .popup-content:has(.api-error),



  .pop-up-form .popup-content,



  .pop-up-form .form-content:has(.gfield--width-half),



  .pop-up-form .form-content:has(.api-error),
  .pop-up-form .form-content:has(form),


  .pop-up-form .form-content {



    width: 100vw;

    max-width: 99vw;

    max-height: 90vh;

    min-width: unset;



  }







  .pop-up-form .gform_body {



    max-width: 100% !important;



  }







  .pop-up-form .popup-content:has(.api-error),



  .pop-up-form .form-content:has(.api-error) {



    padding: 20px;



  }







  .pop-up-form .api-error {



    font-size: 15px;



  }







  .pop-up-form h3 {



    white-space: normal;



  }



  .pop-up-form[data-popup-display="chatbot"] {
    position: fixed !important;
    bottom: 0px !important;
    right: 0px !important;
    top: unset !important;
    left: unset !important;
    width: 100%;
  }


}











