/* Popup Modal Styles */
.therapist-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.therapist-popup-overlay.active {
  display: flex;
}

.therapist-popup-overlay .therapist-popup-content {
  position: relative;
  background: #fff;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.3s ease-out;
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #314143;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-close:hover {
  background-color: #f1f5f9;
  color: #d1aa4f;
  transform: rotate(90deg);
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner {
  padding: 40px;
  color: #31313f;
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner h1,
.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner h2,
.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner h3,
.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner h4,
.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner h5,
.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner h6 {
  color: #314143;
  margin-bottom: 20px;
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner p {
  color: #31313f;
  margin-bottom: 15px;
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner a {
  color: #d1aa4f;
  text-decoration: underline;
}

.therapist-popup-overlay .therapist-popup-content .therapist-popup-inner a:hover {
  color: #d1aa4f;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.therapist-popup-overlay .therapist-popup-inner .popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.therapist-popup-overlay .therapist-popup-inner .popup-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 33554400px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-family: "Overpass", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 10px 30px -10px rgba(49, 65, 67, 0.4);
}

.therapist-popup-overlay .therapist-popup-inner .popup-btn-client,
.therapist-popup-overlay .therapist-popup-inner .popup-btn-book {
  background: #314143;
  color: #fff;
  border: 1px solid transparent;
}

.therapist-popup-overlay .therapist-popup-inner .popup-btn-client:hover,
.therapist-popup-overlay .therapist-popup-inner .popup-btn-book:hover {
  background: #fff;
  color: #45556c;
  border: 1px solid #e2e8f0;
}

/* Gravity Forms Styling */
.gform_wrapper { font-family: "Overpass", sans-serif !important; }
.gform_wrapper .gform_heading { margin-bottom: 30px !important; }
.gform_wrapper .gform_title { color: #314143 !important; font-family: "Yeseva One", serif !important; font-size: 36px !important; margin-bottom: 12px !important; }
.gform_wrapper .gform_description { color: #62748e !important; font-size: 16px !important; line-height: 1.6 !important; margin-bottom: 20px !important; }
.gform_wrapper .gsection_title { color: #314143 !important; font-family: "Yeseva One", serif !important; font-size: 24px !important; margin-bottom: 20px !important; margin-top: 30px !important; }
.gform_wrapper .gsection_description { color: #62748e !important; font-size: 15px !important; margin-bottom: 20px !important; }
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label { color: #314143 !important; font-size: 16px !important; font-weight: 600 !important; margin-bottom: 8px !important; display: block !important; }
.gform_wrapper .gform-field-label--type-sub { color: #62748e !important; font-size: 14px !important; }
.gform_wrapper .gfield_required { color: #d1aa4f !important; margin-left: 4px !important; }
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="date"],
.gform_wrapper input[type="time"],
.gform_wrapper input[type="password"],
.gform_wrapper input.form-control {
  background: transparent !important; height: 55px !important; line-height: 55px !important; padding: 0 15px !important;
  border: 1px solid #ebebeb !important; color: #1b1d1f !important; font-size: 16px !important;
  font-family: "Overpass", sans-serif !important; border-radius: 5px !important; width: 100% !important;
  box-sizing: border-box !important; transition: border-color 0.3s ease !important;
}
.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper input[type="url"]:focus,
.gform_wrapper input[type="date"]:focus,
.gform_wrapper input[type="time"]:focus,
.gform_wrapper input[type="password"]:focus,
.gform_wrapper input.form-control:focus { border-color: #d1aa4f !important; outline: none !important; }
.gform_wrapper select,
.gform_wrapper .gfield_select,
.gform_wrapper select.form-control {
  background: transparent !important; height: 55px !important; padding: 0 15px !important;
  border: 1px solid #ebebeb !important; color: #1b1d1f !important; font-size: 16px !important;
  font-family: "Overpass", sans-serif !important; border-radius: 5px !important; width: 100% !important;
  cursor: pointer !important;
}
.gform_wrapper select:focus,
.gform_wrapper .gfield_select:focus { border-color: #d1aa4f !important; outline: none !important; }
.gform_wrapper textarea,
.gform_wrapper textarea.form-control {
  background: transparent !important; min-height: 145px !important; padding: 15px !important;
  border: 1px solid #ebebeb !important; color: #1b1d1f !important; font-size: 16px !important;
  font-family: "Overpass", sans-serif !important; border-radius: 5px !important; width: 100% !important;
}
.gform_wrapper textarea:focus { border-color: #d1aa4f !important; outline: none !important; }
.gform_wrapper .ginput_complex { display: flex !important; flex-wrap: wrap !important; gap: 15px !important; }
.gform_wrapper .gfield_radio,
.gform_wrapper .gfield_checkbox { margin-top: 10px !important; }
.gform_wrapper .gfield_radio li,
.gform_wrapper .gfield_checkbox li { margin-bottom: 12px !important; list-style: none !important; }
.gform_wrapper .gfield_radio label,
.gform_wrapper .gfield_checkbox label { color: #31313f !important; font-size: 16px !important; cursor: pointer !important; margin: 0 !important; }
.gform_wrapper input[type="file"] { padding: 10px !important; border: 1px solid #ebebeb !important; border-radius: 5px !important; }
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"],
.gform_wrapper .gform_button.btn-main {
  background: #314143 !important; color: #fff !important; font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 2.4px !important; text-transform: uppercase !important; padding: 16px 32px !important;
  border-radius: 33554400px !important; cursor: pointer !important; border: 1px solid transparent !important;
  font-family: "Overpass", sans-serif !important; transition: all 0.3s ease !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button[type="submit"]:hover { background: #fff !important; color: #45556c !important; border: 1px solid #e2e8f0 !important; }
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform-footer .gform_button,
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"] { background: #314143 !important; color: #fff !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 2.4px !important; text-transform: uppercase !important; padding: 16px 32px !important; border-radius: 33554400px !important; border: 1px solid transparent !important; font-family: "Overpass", sans-serif !important; }
.gform_wrapper .gform_footer .gform_button:hover,
.gform_wrapper .gform-footer .gform_button:hover,
.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover { background: #fff !important; color: #45556c !important; border: 1px solid #e2e8f0 !important; }
.gform_wrapper .gfield_description { color: #62748e !important; font-size: 13px !important; margin-top: 6px !important; }
.gform_wrapper .gfield_validation_message { background: 0 !important; border: 0 !important; font-size: 13px !important; color: #d32f2f !important; }
.gform_wrapper .gform_confirmation_message { padding: 15px !important; background: #e8f5e9 !important; border-left: 4px solid #4caf50 !important; color: #2e7d32 !important; border-radius: 5px !important; }
.gform_wrapper .gfield { margin-bottom: 20px !important; }
.gform_wrapper .gform_fields { display: flex !important; flex-direction: column !important; gap: 20px !important; }
.gform_wrapper .gform_hidden { display: none !important; }
.therapist-popup-overlay .gform_wrapper { max-width: 100% !important; }
.therapist-popup-overlay .gform_wrapper .gform_title { font-size: 28px !important; }
.therapist-popup-overlay .gform_wrapper .gsection_title { font-size: 20px !important; margin-top: 25px !important; }
.gform-theme--framework .gf_progressbar .percentbar_blue { background: #87b38d !important; }
.gform-theme--framework input[type=radio]::before { background: #87b38d !important; }
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-appearance-card .gchoice:where(:has(input:checked))::after { background: #87b38d !important; }
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-appearance-card .gfield-image-choice-wrapper-outer { height: 265px !important; }
.gform_next_button { background: #87b38d !important; }
.btn-color-special:hover, .btn-color-special .btn-color:hover { color: #000 !important; }

/* Image choice card fields - form 1, 2, or any */
.therapist-popup-overlay .gform_page_fields,
.therapist-popup-overlay .gform_fields { margin-bottom: 0 !important; }
.therapist-popup-overlay .gfield--type-image_choice .gfield_radio { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 1rem !important; }
.therapist-popup-overlay .gfield--type-image_choice .gchoice { margin: 0 !important; }
.therapist-popup-overlay .gfield-image-choice-wrapper-outer { height: 265px !important; padding-bottom: 1em !important; display: flex !important; flex-direction: column !important; }
.therapist-popup-overlay .gfield-choice-image-wrapper { width: 100% !important; height: 180px !important; overflow: hidden !important; border-radius: 16px !important; }
.therapist-popup-overlay .gfield-choice-image { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.therapist-popup-overlay .gfield-image-choice-wrapper-inner { padding: 0.5em 0 !important; }
.therapist-popup-overlay .gform-field-label--type-inline { font-size: 14px !important; font-weight: 600 !important; text-align: center !important; display: block !important; }
.therapist-popup-overlay .gfield-choice-input { height: 38px !important; }
.therapist-popup-overlay .gfield--type-image_choice .gchoice { border-radius: 20px !important; overflow: hidden !important; }
.therapist-popup-overlay .gfield--type-image_choice .gchoice:has(input:checked) .gfield-image-choice-wrapper-outer { box-shadow: 0 0 0 2px #87b38d !important; border-radius: 20px !important; }
.therapist-popup-overlay .gfield--type-image_choice .gfield-image-choice-wrapper-outer { border-radius: 20px !important; }
.therapist-popup-overlay .gfield--type-image_choice input[type="radio"] { border-radius: 50% !important; }
.therapist-popup-overlay .gfield--type-image_choice .gfield_radio input[type="radio"] { appearance: none !important; -webkit-appearance: none !important; width: 20px !important; height: 20px !important; border: 2px solid #ccc !important; border-radius: 50% !important; }
.therapist-popup-overlay .gfield--type-image_choice .gfield_radio input[type="radio"]:checked { border-color: #87b38d !important; background: #87b38d !important; }

/* Page 2 & 3: selects, text inputs, name, consent - match page 1 styling */
.therapist-popup-overlay .gfield--type-select select,
.therapist-popup-overlay .gfield_select,
.therapist-popup-overlay .ginput_container_select select,
.therapist-popup-overlay select.large {
  background: transparent !important; height: 55px !important; min-height: 55px !important;
  padding: 17px 40px 17px 15px !important; border: 1px solid #ebebeb !important;
  color: #1b1d1f !important; font-size: 16px !important; font-family: "Overpass", sans-serif !important;
  border-radius: 5px !important; width: 100% !important; cursor: pointer !important;
  appearance: auto !important; -webkit-appearance: menulist !important;
  box-sizing: border-box !important; line-height: 1.2 !important;
}
.therapist-popup-overlay .gfield--type-select select:focus,
.therapist-popup-overlay .gfield_select:focus { border-color: #d1aa4f !important; outline: none !important; }
.therapist-popup-overlay .ginput_container_select { display: flex !important; align-items: center !important; }
.therapist-popup-overlay .selectric-wrapper .selectric {
  border: 1px solid #ebebeb !important; border-radius: 5px !important; height: 55px !important;
  display: flex !important; align-items: center !important;
}
.therapist-popup-overlay .selectric-wrapper .selectric .label {
  line-height: 1 !important; padding: 0 15px !important; font-size: 16px !important; color: #1b1d1f !important;
  display: flex !important; align-items: center !important; min-height: 55px !important;
}
.therapist-popup-overlay .selectric-wrapper:hover .selectric { border-color: #d1aa4f !important; }
.therapist-popup-overlay .selectric-open .selectric { border-color: #d1aa4f !important; }
.therapist-popup-overlay .gfield--type-text input[type="text"],
.therapist-popup-overlay .gfield--type-email input[type="email"],
.therapist-popup-overlay .gfield--type-phone input[type="tel"],
.therapist-popup-overlay .ginput_container_text input,
.therapist-popup-overlay .ginput_container_email input,
.therapist-popup-overlay .ginput_container_phone input {
  background: transparent !important; height: 55px !important; line-height: 55px !important; padding: 0 15px !important;
  border: 1px solid #ebebeb !important; color: #1b1d1f !important; font-size: 16px !important;
  font-family: "Overpass", sans-serif !important; border-radius: 5px !important; width: 100% !important;
  box-sizing: border-box !important;
}
.therapist-popup-overlay .gfield--type-text input:focus,
.therapist-popup-overlay .gfield--type-email input:focus,
.therapist-popup-overlay .gfield--type-phone input:focus { border-color: #d1aa4f !important; outline: none !important; }
.therapist-popup-overlay .gfield--type-name input,
.therapist-popup-overlay .ginput_container_name input {
  background: transparent !important; height: 55px !important; line-height: 55px !important; padding: 0 15px !important;
  border: 1px solid #ebebeb !important; color: #1b1d1f !important; font-size: 16px !important;
  font-family: "Overpass", sans-serif !important; border-radius: 5px !important; width: 100% !important;
  box-sizing: border-box !important;
}
.therapist-popup-overlay .gfield--type-name input:focus { border-color: #d1aa4f !important; outline: none !important; }
.therapist-popup-overlay .ginput_container_name { display: flex !important; flex-wrap: wrap !important; gap: 15px !important; }
.therapist-popup-overlay .ginput_container_name .name_first,
.therapist-popup-overlay .ginput_container_name .name_last { flex: 1 !important; min-width: 140px !important; }
.therapist-popup-overlay .gfield--type-consent input[type="checkbox"] {
  width: 20px !important; height: 20px !important; margin-right: 10px !important;
  accent-color: #87b38d !important; cursor: pointer !important; vertical-align: middle !important;
}
.therapist-popup-overlay .gfield--type-consent label { cursor: pointer !important; font-size: 15px !important; color: #31313f !important; line-height: 1.5 !important; }
.therapist-popup-overlay .gfield--width-half .ginput_container { width: 100% !important; }
.therapist-popup-overlay .gform-grid-row { display: flex !important; flex-wrap: wrap !important; gap: 15px !important; }
.therapist-popup-overlay .gform-grid-col--size-auto { flex: 1 !important; min-width: 0 !important; }
.therapist-popup-overlay .gform_fields { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 20px !important; }
.therapist-popup-overlay .gform_fields .gfield { flex: 1 1 100% !important; margin-bottom: 0 !important; }
@media (min-width: 600px) {
  .therapist-popup-overlay .gform_fields .gfield--width-half { flex: 1 1 calc(50% - 10px) !important; min-width: 180px !important; }
}

@media (max-width: 768px) {
  .therapist-popup-overlay .gfield--type-image_choice .gfield_radio { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8px 1.5rem !important; }
  .therapist-popup-overlay .gfield--type-image_choice .gchoice { padding: 0 !important; height: 230px !important; max-height: 230px !important; border-radius: 20px !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; }
  .therapist-popup-overlay .gfield--type-image_choice .gchoice:nth-child(3) { grid-column: 1 / -1 !important; width: 50% !important; margin: 0 auto !important; }
  .therapist-popup-overlay .gfield-choice-image-wrapper { height: 155px !important; border-radius: 16px !important; }
  .therapist-popup-overlay .gfield--width-half { width: 100% !important; }
}
