/* =====================================================================
   UROSPOT booking form skin.
   Applies to every clinic booking Gravity Form (the plugin tags them with
   .urospot-booking-form at render time), both inline in #book-now and in the
   booking popup. Mirrors the popup design: 50px fields, tan focus ring,
   follow-up choices as chips, full-width tan button.
   ===================================================================== */
.urospot-booking-form_wrapper,
.location-page .form-box,
.bk-modal {
  --bk-tan: #E49D77;
  --bk-tan-hover: #d88b62;
  --bk-tan-deep: #c4774f;
  --bk-tan-tint: #fcf1ea;
  --bk-tan-ring: rgba(228, 157, 119, .38);
  --bk-ink: #1c1a19;
  --bk-body: #3b3735;
  --bk-muted: #7a726d;
  --bk-line: #e3ddd8;
  --bk-line-hover: #cbc3bd;
  --bk-danger: #b3261e;
}

/* ---------- Inline card on location pages ---------- */
body .location-page .form-box {
  max-width: 720px;
  margin: 0 auto !important;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04);
}
body .location-page .form-box > .row_col_wrap_12_inner > .wpb_column > .vc_column-inner {
  border-radius: 18px;
}
@media (max-width: 690px) {
  body .location-page .form-box > .row_col_wrap_12_inner > .wpb_column {
    padding: 28px 20px !important;
  }
}
/* With the brand panel beside the form (location pages): wider card, panel flush to the edges. */
body .location-page .form-box:has(.bk-inline) {
  max-width: 1040px;
  overflow: hidden;
}
body .location-page .form-box:has(.bk-inline) > .row_col_wrap_12_inner > .wpb_column,
body .location-page .form-box:has(.bk-inline) > .row_col_wrap_12_inner > .wpb_column > .vc_column-inner {
  padding: 0 !important;
}
body .location-page .form-box:has(.bk-inline) .wpb_wrapper { display: block; }

/* ---------- Layout ---------- */
.urospot-booking-form_wrapper { text-align: left; font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.urospot-booking-form_wrapper .gform_heading { display: none; }
.urospot-booking-form .gform_fields { row-gap: 18px !important; column-gap: 14px !important; }
.urospot-booking-form .gfield { margin: 0; padding: 0; }

/* ---------- Labels ---------- */
.urospot-booking-form .gfield_label,
.urospot-booking-form legend.gfield_label,
.urospot-booking-form .ginput_container_email .gform-field-label--type-sub {
  display: block !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: var(--bk-ink) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.urospot-booking-form .gfield_required,
.urospot-booking-form .gfield_required_asterisk { color: var(--bk-tan-deep) !important; font-size: 14px !important; padding-left: 2px; }
.urospot-booking-form .ginput_container_email .gform-field-label--type-sub::after { content: none !important; }

/* ---------- Text inputs ---------- */
.urospot-booking-form input[type="text"],
.urospot-booking-form input[type="tel"],
.urospot-booking-form input[type="email"],
.urospot-booking-form select,
.urospot-booking-form textarea {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  block-size: 50px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--bk-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--bk-ink) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  transition: border-color .15s, box-shadow .15s;
}
.urospot-booking-form textarea { height: auto !important; block-size: auto !important; min-height: 110px !important; padding: 12px 14px !important; }
.urospot-booking-form input::placeholder { color: #aba39e; opacity: 1; }
.urospot-booking-form input[type="text"]:hover,
.urospot-booking-form input[type="tel"]:hover,
.urospot-booking-form input[type="email"]:hover { border-color: var(--bk-line-hover) !important; }
.urospot-booking-form input[type="text"]:focus,
.urospot-booking-form input[type="tel"]:focus,
.urospot-booking-form input[type="email"]:focus,
.urospot-booking-form select:focus,
.urospot-booking-form textarea:focus {
  outline: none !important;
  border-color: var(--bk-tan) !important;
  box-shadow: 0 0 0 4px var(--bk-tan-ring) !important;
}

/* Email + confirm: two labelled columns; the field legend is kept for screen readers only. */
.urospot-booking-form .gfield--type-email > legend.gfield_label {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
}
.gform-theme--foundation .urospot-booking-form .gform-grid-row.ginput_container_email {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 18px 14px !important;
  margin: 0 !important;
}
.gform-theme--foundation .urospot-booking-form .gform-grid-row.ginput_container_email > .gform-grid-col {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gform-theme--foundation .urospot-booking-form .gform-grid-row.ginput_container_email > .gform-grid-col:first-child .gform-field-label--type-sub {
  display: block !important;
}
.urospot-booking-form .ginput_container_email .gf_clear { display: none; }
@media (min-width: 600px) {
  .gform-theme--foundation .urospot-booking-form .gform-grid-row.ginput_container_email { grid-template-columns: 1fr 1fr; }
}

/* ---------- Choice chips (follow-up method, branch) ---------- */
.urospot-booking-form .gfield--type-radio .gfield_radio,
.urospot-booking-form .gfield--type-checkbox .gfield_checkbox {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px !important;
}
.urospot-booking-form .gfield--type-radio .gchoice,
.urospot-booking-form .gfield--type-checkbox .gchoice {
  position: relative;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.urospot-booking-form .gchoice input.gfield-choice-input {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.urospot-booking-form .gchoice .gform-field-label--type-inline {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 6px 12px !important;
  border: 1.5px solid var(--bk-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bk-body) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s, color .15s;
}
/* Icon */
.urospot-booking-form .gchoice .gform-field-label--type-inline::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: #a1988f;
  -webkit-mask: var(--bk-chip-icon) center / contain no-repeat;
  mask: var(--bk-chip-icon) center / contain no-repeat;
  transition: background-color .15s;
  /* Default: map pin (clinic/branch choices). */
  --bk-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.urospot-booking-form .gchoice input[value="Phone Call"] + label::before,
.urospot-booking-form .gchoice input[value="Phone"] + label::before {
  --bk-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.urospot-booking-form .gchoice input[value="Email"] + label::before {
  --bk-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}
.urospot-booking-form .gchoice input[value="Text"] + label::before {
  --bk-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
/* Selection indicator */
.urospot-booking-form .gchoice .gform-field-label--type-inline::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cdc5bf;
  border-radius: 50%;
  background: #fff center / 12px no-repeat;
  transition: background-color .15s, border-color .15s;
}
.urospot-booking-form .gfield--type-checkbox .gchoice .gform-field-label--type-inline::after { border-radius: 5px; }
.urospot-booking-form .gchoice:hover .gform-field-label--type-inline { border-color: var(--bk-line-hover); }
.urospot-booking-form .gchoice input:checked + label {
  border-color: var(--bk-tan);
  background: var(--bk-tan-tint);
  color: var(--bk-ink) !important;
}
.urospot-booking-form .gchoice input:checked + label::before { background-color: var(--bk-tan-deep); }
.urospot-booking-form .gchoice input:checked + label::after {
  border-color: var(--bk-tan);
  background-color: var(--bk-tan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.urospot-booking-form .gchoice input:focus-visible + label { box-shadow: 0 0 0 4px var(--bk-tan-ring); }

@media (max-width: 760px) {
  /* Chips become a tappable list on phones */
  .urospot-booking-form .gfield--type-radio .gfield_radio,
  .urospot-booking-form .gfield--type-checkbox .gfield_checkbox { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 8px !important; }
  .urospot-booking-form .gchoice .gform-field-label--type-inline {
    flex-direction: row;
    gap: 12px;
    padding: 9px 44px 9px 10px !important;
    font-size: 15.5px !important;
    text-align: left;
  }
  .urospot-booking-form .gchoice .gform-field-label--type-inline { padding: 14px 44px 14px 14px !important; }
  .urospot-booking-form .gchoice .gform-field-label--type-inline::before { flex: none; width: 20px; height: 20px; }
  .urospot-booking-form .gchoice .gform-field-label--type-inline::after { top: 50%; right: 14px; width: 22px; height: 22px; margin-top: -11px; background-size: 14px; }
}

/* ---------- Errors ---------- */
.urospot-booking-form .gfield_error input[type="text"],
.urospot-booking-form .gfield_error input[type="tel"],
.urospot-booking-form .gfield_error input[type="email"] { border-color: var(--bk-danger) !important; }
.urospot-booking-form .gfield_error input:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .14) !important; }
.urospot-booking-form .gfield_error .gchoice .gform-field-label--type-inline,
.urospot-booking-form .gfield_error .gchoice .gform-field-label--type-inline::after { border-color: var(--bk-danger); }
.urospot-booking-form .gfield_validation_message,
.urospot-booking-form .validation_message {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--bk-danger) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
.urospot-booking-form .gfield_validation_message::before,
.urospot-booking-form .validation_message::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.urospot-booking-form_wrapper .gform_validation_errors {
  margin: 0 0 16px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fdecea !important;
  box-shadow: none !important;
  outline: none !important;
}
.urospot-booking-form_wrapper .gform_validation_errors ol { margin: 6px 0 0 !important; padding: 0 0 0 18px !important; }
.urospot-booking-form_wrapper .gform_validation_errors li,
.urospot-booking-form_wrapper .gform_validation_errors a { color: var(--bk-danger) !important; font-size: 13px !important; line-height: 1.5 !important; }
.urospot-booking-form_wrapper .gform_validation_errors .gform_submission_error {
  margin: 0 !important;
  color: var(--bk-danger) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
.urospot-booking-form_wrapper .gform_validation_errors .gform-icon { display: none; }

/* ---------- Submit ---------- */
.urospot-booking-form .gform_footer {
  display: block !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
}
body .urospot-booking-form .gform_footer .gform_button,
body[data-form-submit] .container-wrap .gform_wrapper .urospot-booking-form .gform_footer button.gform_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--bk-tan) !important;
  color: #000 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color .15s, transform .08s !important;
}
body .urospot-booking-form .gform_footer .gform_button:hover { background: var(--bk-tan-hover) !important; }
body .urospot-booking-form .gform_footer .gform_button:active { transform: translateY(1px) !important; }
body .urospot-booking-form .gform_footer .gform_button:focus-visible { outline: none !important; box-shadow: 0 0 0 4px var(--bk-tan-ring) !important; }
.urospot-booking-form .gform_footer .bk-fine {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  text-align: center;
  color: var(--bk-muted);
  font-size: 13px;
  line-height: 1.4;
}
.urospot-booking-form .gform-loader,
.urospot-booking-form .gform_ajax_spinner { margin: 12px auto 0 !important; }

/* Popup on phones: keep the button in reach while the sheet scrolls. */
@media (max-width: 760px) {
  .bk-modal .urospot-booking-form .gform_footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 18px -20px 0 !important;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom)) !important;
    background: #fff;
    box-shadow: 0 -1px 0 var(--bk-line);
  }
  .bk-modal .urospot-booking-form .gform_footer .bk-fine { margin-top: 8px !important; font-size: 12px; }
}
