/* Appointment booking: location first, published clinicians, then live availability. */
#customBookingModal { z-index: 1060; color: #243c37; }
#customBookingModal [hidden] { display: none !important; }
#customBookingModal .modal-dialog { max-width: 960px; margin: 24px auto; min-height: calc(100% - 48px); }
#customBookingModal .modal-content {
    border: 1px solid #e2ebe7; border-radius: 24px; overflow: hidden;
    box-shadow: 0 24px 90px #092f3040; max-height: calc(100dvh - 48px);
    display: flex; flex-direction: column; background: #fff;
}
#customBookingModal .modal-header {
    padding: 24px 28px 18px; background: #fff; border: 0; flex-shrink: 0; align-items: flex-start;
}
#customBookingModal .modal-title { font: 600 25px/1.25 'DM Sans', sans-serif; color: #163f36; text-align: left; margin: 0; }
.booking-eyebrow { font: 700 10px/1.4 'Inter', sans-serif; letter-spacing: 1.8px; color: #527e70; margin: 0 0 8px; }
.booking-header-note { color: #687a75; font-size: 13px; margin: 7px 0 0; }
#customBookingModal .btn-close { flex-shrink: 0; padding: 10px; margin: 0 0 0 16px; background-color: #f1f5f3; border-radius: 50%; background-size: 11px; opacity: .75; }
#customBookingModal .modal-body { padding: 0; overflow-y: auto; min-height: 0; background: #f6f8f7; overscroll-behavior: contain; }
.booking-steps { display: flex; align-items: center; gap: 12px; padding: 0 28px 20px; background: #fff; flex-shrink: 0; border-bottom: 1px solid #e6ece9; }
.booking-step-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #778780; }
.booking-step-num { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #eef2f0; font-size: 11px; }
.booking-step-item.active { color: #006655; }
.booking-step-item.active .booking-step-num { background: #006655; color: #fff; }
.booking-step-item.completed .booking-step-num { background: #d7eee4; color: #006655; }
.booking-step-connector { height: 1px; width: 44px; background: #dee7e2; }
.booking-step-connector.completed { background: #84baa6; }
.booking-step-content { display: none; padding: 22px 28px 0; }
.booking-step-content.active { display: block; }
.booking-step-content[data-step="2"], .booking-step-content[data-step="3"] { max-width: 670px; margin: auto; padding-bottom: 24px; }
.consultation-toggle { display: flex; gap: 4px; padding: 4px; border: 1px solid #e0e8e3; border-radius: 12px; background: #eaf0ed; margin-bottom: 22px; }
.consultation-toggle-btn { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 12px; min-height: 44px; border: 0; border-radius: 9px; font: 600 13px/1.4 'DM Sans', sans-serif; color: #5d7169; background: transparent; transition: background .15s; }
.consultation-toggle-btn.active { background: #fff; color: #006655; box-shadow: 0 2px 5px #163f3610; }
.booking-section-title { font: 700 15px/1.4 'DM Sans', sans-serif; color: #243c37; margin: 0; }
.booking-section-note { color: #708078; font: 400 11px/1.6 'Inter', sans-serif; margin: 6px 0 16px; }
.booking-location-section { margin-bottom: 22px; }
.booking-location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.booking-location-card { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid #dce5df; border-radius: 12px; background: #fff; text-align: left; color: #506b60; min-height: 72px; transition: border-color .15s, background .15s; }
.booking-location-card > i { font-size: 17px; color: #709d88; }
.booking-location-card strong { display: block; color: #294b3e; font-size: 13px; line-height: 1.4; }
.booking-location-card span span { display: block; color: #708078; font-size: 11px; margin-top: 3px; }
.booking-location-card[aria-pressed="true"], .booking-clinician-card[aria-pressed="true"] { background: #edf7f2; border-color: #00715b; box-shadow: 0 0 0 1px #00715b; }
.booking-location-card:hover, .booking-clinician-card:hover { border-color: #568b75; }
.booking-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.booking-panel { background: #fff; border: 1px solid #e1e9e4; border-radius: 16px; padding: 18px; min-width: 0; }
.booking-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.booking-count { background: #edf3ef; color: #5b7b68; border-radius: 7px; padding: 2px 7px; font-size: 11px; }
.booking-count:empty { display: none; }
.booking-clinician-list { display: grid; gap: 8px; max-height: 334px; overflow-y: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #c5d6ca transparent; overscroll-behavior: contain; }
.booking-clinician-card { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border: 1px solid #e1e8e3; border-radius: 11px; background: #fff; text-align: left; color: #294537; }
.booking-clinician-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; background: #edf1e9; font: 600 13px 'DM Sans', sans-serif; color: #5f7967; }
.booking-clinician-copy { flex: 1; min-width: 0; }
.booking-clinician-copy strong { display: block; font-size: 13px; line-height: 1.4; }
.booking-clinician-copy > span { display: block; color: #6b7c70; font-size: 11px; line-height: 1.5; margin-top: 2px; }
.booking-clinician-copy small { display: block; color: #417763; font-size: 10px; line-height: 1.5; margin-top: 4px; }
.booking-clinician-copy .booking-call-badge { color: #956629; }
.booking-choice-marker { border: 1.5px solid #cbd8ce; border-radius: 50%; width: 17px; height: 17px; flex-shrink: 0; }
[aria-pressed="true"] > .booking-choice-marker { border: 5px solid #00715b; background: #fff; }
.booking-empty-state { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 140px; padding: 12px; color: #769282; }
.booking-empty-state > i { font-size: 24px; padding: 12px; border-radius: 50%; background: #f0f5f1; margin-bottom: 10px; }
.booking-empty-state strong { font-size: 14px; color: #506b5c; }
.booking-empty-state p { max-width: 250px; color: #7b8a80; font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.booking-choice-message { grid-column: 1/-1; padding: 24px 12px; text-align: center; font-size: 12px; color: #77887d; background: #f7f9f7; border-radius: 10px; }
.booking-choice-message p { margin: 0; font-size: 12px; line-height: 1.6; }
.booking-retry { border: 0; background: none; text-decoration: underline; color: #006655; font-weight: 600; margin-top: 10px; padding: 6px; }
.booking-call-info { font-size: 13px; line-height: 1.7; color: #5b7465; background: #f3f8f3; border-radius: 12px; padding: 20px; }
.booking-call-info > i { display: block; color: #00715b; margin-bottom: 12px; font-size: 20px; }
.booking-call-info strong { display: block; color: #284b39; }
.booking-call-info p { margin: 8px 0 20px; }
.booking-call-info a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.booking-calendar { margin-bottom: 15px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; }
.calendar-nav-btn { width: 34px; height: 34px; border: 1px solid #e1e8e3; background: #fff; color: #36634b; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.calendar-nav-btn:disabled { opacity: .35; }
.calendar-month-label { font-size: 13px; font-weight: 700; color: #355541; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-day-header { text-align: center; font-size: 10px; font-weight: 600; color: #819084; padding: 4px 0 8px; }
.calendar-day { display: grid; place-items: center; position: relative; aspect-ratio: 1; min-height: 32px; border: 1px solid transparent; border-radius: 8px; background: #f1f6f2; color: #345d42; font: 500 12px 'Inter', sans-serif; }
.calendar-day.empty, .calendar-day.disabled { background: none; color: #aeb9b1; }
.calendar-day.today:not(.selected) { border-color: #92b69c; }
.calendar-day:not(.disabled):not(.empty):hover { border-color: #00715b; }
.calendar-day.selected { background: #006655; color: #fff; }
.time-slots-label { color: #395e46; font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.time-slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7em, 1fr)); gap: 7px; font-size: 12px; max-height: 150px; overflow-y: auto; padding: 2px; scrollbar-width: thin; overscroll-behavior: contain; }
.time-slot-btn { min-height: 38px; padding: 8px 5px; background: #fff; border: 1px solid #d7e2da; border-radius: 8px; color: #4e6b57; font-size: inherit; white-space: nowrap; }
.time-slot-btn:hover { border-color: #00715b; }
.time-slot-btn.selected { background: #006655; color: #fff; border-color: #006655; }
.no-slots-message { padding: 20px 10px; text-align: center; color: #6e8273; font-size: 12px; }
.no-slots-message > i { display: block; font-size: 22px; margin-bottom: 10px; }
.no-slots-next { display: block; margin-top: 8px; }
.no-slots-jump { border: 0; padding: 0; background: none; color: #006655; text-decoration: underline; }
.booking-fee-display { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #cfe1d6; border-radius: 12px; background: #eaf5ed; padding: 16px 18px; margin-top: 18px; }
.booking-fee-label { font-size: 12px; font-weight: 700; color: #235f3e; }
.booking-fee-amount { font: 700 23px 'DM Sans', sans-serif; color: #006655; white-space: nowrap; }
.booking-selection-summary { font-size: 12px; color: #456451; margin: 5px 0; }
#bookingDuration { margin: 4px 0 0; }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; position: sticky; bottom: 0; z-index: 5; background: #f6f8f7; margin-top: 6px; }
.booking-continue-hint { flex: 1; font-size: 12px; line-height: 1.5; color: #748579; margin: 0; }
.booking-btn-continue { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; min-height: 46px; border: 0; border-radius: 10px; background: #006655; color: #fff; font: 600 13px/1.4 'DM Sans', sans-serif; margin-left: auto; }
.booking-btn-continue:hover:not(:disabled) { background: #004e41; }
.booking-btn-continue:disabled { background: #e0e8e3; color: #7d9184; cursor: not-allowed; }
.booking-btn-back { padding: 12px 16px; border: 1px solid #d3dfd6; border-radius: 10px; color: #456851; background: #fff; font-size: 13px; font-weight: 600; }
.booking-form-group { margin-bottom: 18px; }
.booking-form-group label { display: block; font-size: 13px; color: #46604d; font-weight: 600; margin-bottom: 7px; }
.booking-form-group input, .booking-form-group select { width: 100%; padding: 13px 15px; min-height: 46px; border: 1px solid #d9e3dc; border-radius: 10px; background: #fff; color: #243c37; font: 400 15px 'Inter', sans-serif; }
.booking-form-group input:focus { outline: 2px solid #00715b; outline-offset: 2px; }
#customBookingModal button:focus-visible, #customBookingModal a:focus-visible { outline: 2px solid #00715b; outline-offset: 3px; }
.booking-hold-timer { background: #edf1ed; border-radius: 8px; padding: 10px; color: #657b68; font-size: 12px; line-height: 1.6; }
.booking-error { display: none; background: #fff1ef; color: #a03e2f; border: 1px solid #f1cec6; border-radius: 10px; padding: 12px 15px; font-size: 13px; }
.booking-error.show { display: block; }
.booking-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 16px; font-size: 13px; color: #67806f; }
.booking-spinner { width: 28px; height: 28px; border: 3px solid #e2ece5; border-top-color: #00715b; border-radius: 50%; animation: bookingSpin .8s linear infinite; }
@keyframes bookingSpin { to { transform: rotate(360deg); } }
.booking-confirmation { text-align: center; padding: 20px 0; }
.booking-confirmation-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; background: #006655; color: #fff; font-size: 24px; }
.booking-confirmation h4 { color: #006655; font-size: 22px; }
.booking-confirmation-details { background: #fff; border: 1px solid #e0e8e3; border-radius: 12px; padding: 18px; margin-top: 20px; text-align: left; }
.booking-confirmation-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #edf2ee; font-size: 13px; }
.booking-confirmation-row:last-child { border-bottom: 0; }
.booking-confirmation-row .label { color: #78877c; }
.booking-confirmation-row .value { color: #345c41; font-weight: 600; }
body.modal-open .sticky-mobile-booking { display: none !important; }
@media (max-width: 991px) {
    #customBookingModal .modal-dialog { margin: 16px; min-height: calc(100% - 32px); }
    #customBookingModal .modal-content { max-height: calc(100dvh - 32px); }
}
@media (max-width: 700px) {
    #customBookingModal { width: 100vw; padding: 0 !important; overflow: hidden; }
    #customBookingModal .modal-dialog { margin: 0; min-height: 100%; max-width: none; }
    #customBookingModal .modal-content { border: 0; border-radius: 0; height: 100dvh; max-height: 100dvh; }
    #customBookingModal .modal-header { padding: 20px 18px 16px; }
    #customBookingModal .modal-title { font-size: 21px; }
    .booking-header-note { display: none; }
    .booking-steps { padding: 0 18px 16px; gap: 8px; justify-content: space-between; }
    .booking-step-item { font-size: 11px; gap: 6px; }
    .booking-step-connector { flex: 1; min-width: 8px; max-width: 28px; }
    .booking-step-content { padding: 18px 16px 0; }
    .consultation-toggle { margin-bottom: 18px; }
    .consultation-toggle-btn { font-size: 12px; padding: 10px 5px; gap: 6px; }
    .booking-location-grid { gap: 7px; }
    .booking-location-card { padding: 12px 8px; gap: 5px; flex-direction: column; align-items: flex-start; }
    .booking-location-card > i { font-size: 13px; margin-bottom: 3px; }
    .booking-location-card strong { font-size: 12px; }
    .booking-workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .booking-panel { padding: 16px; }
    .booking-clinician-list { max-height: 255px; }
    .booking-empty-state { min-height: 100px; padding: 12px; }
    .booking-empty-state > i { display: none; }
    .booking-section-note { margin-bottom: 12px; }
    .calendar-day { max-height: 46px; }
    .time-slots-grid { max-height: 170px; }
    .booking-actions { flex-direction: column; align-items: stretch; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); gap: 8px; }
    .booking-continue-hint { text-align: center; font-size: 11px; }
    .booking-btn-continue, .booking-btn-back { width: 100%; margin: 0; }
    .booking-fee-display { padding: 14px; gap: 12px; }
    .booking-fee-amount { font-size: 21px; }
    .booking-confirmation-row { flex-direction: column; gap: 3px; }
}
/* The site's mobile stylesheet forces large padding on every button and
   headline. Scope these exceptions to booking controls so cards and the
   seven-column calendar retain usable touch targets without overflowing. */
@media (max-width: 768px) {
    #customBookingModal .modal-title { font-size: 21px !important; }
    #customBookingModal .booking-section-title { font-size: 15px !important; }
    #customBookingModal .btn-close { width: 22px; height: 22px; min-height: 22px !important; padding: 10px !important; }
    #customBookingModal .consultation-toggle-btn { padding: 10px 5px !important; min-height: 44px !important; font-size: 12px !important; }
    #customBookingModal .booking-location-card { padding: 12px 8px !important; min-height: 72px !important; }
    #customBookingModal .booking-clinician-card { padding: 12px !important; min-height: 72px !important; }
    #customBookingModal .calendar-nav-btn { width: 40px; height: 40px; min-height: 40px !important; padding: 0 !important; font-size: 11px !important; }
    #customBookingModal .calendar-day { min-height: 34px !important; padding: 0 !important; font-size: 12px !important; }
    #customBookingModal .time-slot-btn { min-height: 42px !important; padding: 8px 5px !important; font-size: 12px !important; }
    #customBookingModal .booking-btn-continue, #customBookingModal .booking-btn-back { min-height: 46px !important; padding: 13px 16px !important; font-size: 13px !important; }
    #customBookingModal .booking-retry, #customBookingModal .no-slots-jump { min-height: 40px !important; padding: 6px !important; font-size: 13px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #customBookingModal *, #customBookingModal { transition: none !important; scroll-behavior: auto !important; }
}
