﻿@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

{
    color-scheme: light;
    --tm2u-ink: #303e4e;
    --tm2u-accent: #5571c6;
    --tm2u-canvas: #f9fafd;
}

html, body {
    margin: 0;
    font-size: 17px;
    font-family: "Rubik", "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--tm2u-canvas);
    color: var(--tm2u-ink);
    height: 100%;
    overflow: hidden;
}

body {
    top: 0 !important;
}

h1, h2, h3 {
    margin-top: 0;
}

a {
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
}

.skiptranslate iframe,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-te-spinner,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.goog-te-gadget, .goog-logo-link, .goog-te-gadget span, .goog-te-combo {
    display: none !important;
}

.patient-booking-shell {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url('/images/booking/backgroundLogo.png') left 0 top 172px / 64% no-repeat,#fff;
    overflow: hidden;
}

.patient-booking-translate-host {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

#google_translate_element,
#google_translate_element * {
    max-width: 0 !important;
}

.goog-te-gadget-simple,
.goog-te-gadget-icon,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd * {
    display: none !important;
    visibility: hidden !important;
}

.patient-booking-alert {
    background: #272a69;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    padding: 16px 28px;
    box-shadow: 0 2px 8px rgba(26, 33, 87, 0.2);
}

.patient-booking-header {
    padding: 28px 34px 0.35rem;
}

.patient-booking-header-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    align-items: start;
    gap: 34px;
}

.patient-booking-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.patient-booking-partner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.patient-booking-header-center {
    min-width: 0;
    padding-top: 0.3rem;
}

.brand-logo {
    width: 150px;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
}

.brand-copy {
    color: #272a69;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    text-align: left;
}

.partner-logo {
    width: 240px;
    max-width: 240px;
    height: auto;
    object-fit: contain;
}

.patient-booking-content {
    flex: 1;
    padding: 0 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.patient-booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 0 34px;
    background: #f6f6f6;
    border-top: 1px solid #dbdbdb;
    color: #000;
    font-size: 18px;
    font-weight: 500;
}

.patient-booking-footer-actions-slot {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: fit-content;
}

.booking-progress {
    display: grid;
    grid-template-columns: repeat(var(--booking-progress-columns, 4), minmax(0, 1fr));
    gap: 0;
    margin: 0;
    width: 100%;
}

.booking-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.booking-progress-track {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .booking-progress-track::after {
        content: "";
        position: absolute;
        left: 50%;
        width: calc(100% - 20px);
        height: 1px;
        background: #d1d1d1;
    }

    .booking-progress-track.track-end::after {
        display: none;
    }

.booking-progress-dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 3px solid #cfcfcf;
    background: #fff;
}

    .booking-progress-dot.active, .booking-progress-dot.complete {
        border-color: #272a69;
    }

    .booking-progress-dot.active {
        box-shadow: inset 0 0 0 4px #fff;
        background: #272a69;
    }

    .booking-progress-dot.complete {
        background: #272a69;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .booking-progress-dot.complete::after {
            content: "";
            width: 5px;
            height: 9px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg) translateY(-1px);
        }

.booking-progress-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.booking-progress-label {
    color: #303e4e;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    line-height: 1.35;
    max-width: none;
}

.translated-ltr .booking-progress-label {
    white-space: normal;
    font-size: 12px;
    line-height: 1.2;
    word-break: break-word;
}

.booking-progress-mobile {
    display: none;
    color: #303e4e;
    font-size: 12px;
    font-weight: 500;
}

.patient-booking-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 0 1.5rem;
}

.language-screen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    padding-top: 2rem;
}

.language-screen-panel {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

    .language-screen-panel h1 {
        margin: 0 0 1.75rem;
        color: #303e4e;
        font-size: 32px;
        font-weight: 400;
        line-height: 1.18;
        user-select: none;
        -webkit-user-select: none;
    }

    .language-screen-panel h1,
    .language-screen-panel h1 *,
    .language-screen-panel h1 font,
    .language-screen-panel h1 span {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

.language-panel {
    display: grid;
    gap: 20px;
    width: 350px;
    margin: 0 auto;
}

.registration-choice-screen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    padding-top: 2.1rem;
}

.registration-choice-panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

    .registration-choice-panel h1 {
        margin: 0 0 1.9rem;
        color: #303e4e;
        font-size: 32px;
        font-weight: 400;
        line-height: 1.18;
    }

.new-patient-intake-screen {
    display: flex;
    justify-content: center;
    padding-top: 1.4rem;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.new-patient-intake-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

    .new-patient-intake-shell h1 {
        margin: 0 0 2rem;
        text-align: center;
        color: #303e4e;
        font-size: 32px;
        font-weight: 400;
        line-height: 1.18;
    }

.new-patient-intake-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    padding: 24px 36px 20px;
    box-sizing: border-box;
    flex: 0 1 auto;
}

.new-patient-intake-outer-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 30px 25px;
    box-sizing: border-box;
}

.new-patient-intake-card-scroll {
    height: 335px;
    max-height: 335px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 36px 20px;
    box-sizing: border-box;
}

    .new-patient-intake-card-scroll h2 {
        margin: 0 0 1.6rem;
        color: #303e4e;
        font-size: 24px;
        font-weight: 400;
    }

.new-patient-intake-section-break {
    grid-column: 1 / -1;
    height: 1px;
    background: #d8d8d8;
    margin: 0.25rem 0 0.1rem;
}

.new-patient-intake-section-title {
    grid-column: 1 / -1;
    color: #303e4e;
    font-size: 24px;
    font-weight: 400;
}

.new-patient-intake-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem 1.25rem;
}

.new-patient-intake-field {
    grid-column: span 6;
    display: grid;
    gap: 0.55rem;
}

.new-patient-intake-field-wide {
    grid-column: span 12;
}

.new-patient-intake-field-quarter {
    grid-column: span 3;
}

.new-patient-intake-field-city {
    grid-column: span 2;
}

.new-patient-intake-field-state {
    grid-column: span 4;
}

.new-patient-intake-field-zip {
    grid-column: span 2;
}

.new-patient-intake-field-timezone {
    grid-column: span 4;
}

.new-patient-intake-field-three-quarter {
    grid-column: span 9;
}

.new-patient-intake-field-dob {
    grid-column: span 3;
}

/* ── DOB text field wrapper ───────────────────────────────────── */
.dob-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.dob-input-wrapper .field {
    padding-right: 2.5rem;
}

.dob-calendar-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #667689;
    display: flex;
    align-items: center;
    line-height: 0;
}

.dob-calendar-btn:hover {
    color: #303e4e;
}

/* ── DOB custom calendar popup (matches MUI KeyboardDatePicker inline) */
.dob-cal-popup {
    position: fixed;
    z-index: 1300;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 5px -3px rgba(0,0,0,.2),
                0 8px 10px 1px rgba(0,0,0,.14),
                0 3px 14px 2px rgba(0,0,0,.12);
    min-width: 280px;
    padding-bottom: 8px;
    opacity: 0;
    transform: scaleY(0.92);
    transform-origin: top center;
    transition: opacity 0.13s ease, transform 0.13s ease;
    pointer-events: none;
    user-select: none;
}

.dob-cal-popup.dob-cal-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.dob-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    min-height: 48px;
}

.dob-cal-nav {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 26px;
    color: rgba(0,0,0,.54);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.1s;
}

.dob-cal-nav:hover {
    background: rgba(0,0,0,.06);
}

.dob-cal-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0,0,0,.87);
    flex: 1;
    text-align: center;
}

.dob-cal-grid {
    padding: 0 8px;
}

.dob-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 2px;
}

.dob-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    color: rgba(0,0,0,.38);
    font-weight: 600;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.dob-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.dob-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 13px;
    color: rgba(0,0,0,.87);
    cursor: pointer;
    margin: 1px auto;
    transition: background-color 0.1s;
    box-sizing: border-box;
}

.dob-cal-blank {
    cursor: default;
    pointer-events: none;
}

.dob-cal-day:not(.dob-cal-blank):not(.dob-cal-disabled):not(.dob-cal-selected):hover {
    background-color: rgba(85, 113, 198, 0.12);
}

.dob-cal-disabled {
    color: rgba(0,0,0,.26);
    cursor: default;
    pointer-events: none;
}

.dob-cal-today {
    border: 1px solid rgba(0,0,0,.38);
    font-weight: 600;
}

.dob-cal-selected {
    background-color: #5571C6 !important;
    color: #fff !important;
    font-weight: 600;
}

.new-patient-intake-field-phone {
    grid-column: span 3;
}

.new-patient-intake-field-email {
    grid-column: span 6;
}

.new-patient-intake-field-sex {
    grid-column: span 3;
}

.new-patient-intake-field-insurance {
    grid-column: span 9;
}

/* Patient Information / Address section wrappers (match React container / container2) */ .np-intake-section {
    width: 100%;
    margin-bottom: 17px;
}

.np-intake-section-address {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #cfcfcf;
    margin-bottom: 0;
}

.np-intake-section-header {
    color: #303e4e;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 1rem;
}

.new-patient-intake-field label {
    color: #303e4e;
    font-size: 17px;
    font-weight: 450;
}

.new-patient-intake-field > label > span {
    color: #ff2f2f;
    margin-left: 2px;
}

.new-patient-intake-field-phone label {
    white-space: normal;
    word-break: break-word;
}

.new-patient-intake-field .field {
    height: 30px;
    font-size: 16px;
}

/* Outer wrapper div for the Insurance radio group */
.new-patient-intake-radio-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    min-height: 50px;
    padding: 8px 20px;
    border: 1px solid #bfbfbf;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* InputRadioGroup renders as a div inside the box — make it a transparent flex row */
.new-patient-intake-radio-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 40px;
    width: 100%;
    background: transparent;
}

.new-patient-intake-radio {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    font-size: 17px;
    cursor: pointer;
}

    .new-patient-intake-radio span, .new-patient-intake-radio-row label span, .new-patient-intake-radio-row span {
        color: #303e4e !important;
        font-weight: 400;
    }

    .new-patient-intake-radio input[type="radio"] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #5571c6;
        flex-shrink: 0;
    }

.new-patient-intake-consent {
    width: min(920px, 100%);
    margin: 22px auto 0;
    padding: 0 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.new-patient-intake-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #303e4e;
    font-size: 18px;
    line-height: 1.45;
}

    .new-patient-intake-consent-check input {
        width: 24px;
        height: 24px;
        margin-top: 3px;
        accent-color: #5571c6;
        flex: 0 0 auto;
    }

    .new-patient-intake-consent-check a {
        color: #5571c6;
        text-decoration: underline;
    }

.registration-choice-options {
    width: 441px;
}

.registration-choice-screen-dim {
    opacity: 1;
    pointer-events: none;
}

.registered-modal-shell {
    position: fixed;
    top: 57px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
}

    .registered-modal-shell .registration-choice-screen {
        padding-top: 6.4rem;
    }

    .registered-modal-shell .registration-choice-panel h1 {
        margin-bottom: 2.2rem;
    }

.registered-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.registered-record-modal {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 690px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    z-index: 2;
    max-height: calc(100vh - 315px);
}

.registered-record-modal-compact {
    max-width: 580px;
}

.registered-record-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5b76cb;
    padding: 12px 16px;
}

    .registered-record-modal-header h2 {
        margin: 0;
        color: #fff;
        font-size: 22px;
        font-weight: 500;
    }

.registered-record-modal-close {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.registered-record-modal-body {
    padding: 14px 12px 14px;
    overflow: auto;
}

    .registered-record-modal-body p {
        margin: 0 0 12px;
        color: #111;
        font-size: 17px;
        line-height: 1.20;
    }

.registered-record-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    padding: 12px 16px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
}

.registered-record-field {
    display: grid;
    gap: 6px;
}

    .registered-record-field label {
        color: #303e4e;
        font-size: 16px;
        font-weight: 500;
    }

        .registered-record-field label span {
            color: #ff2f2f;
            margin-left: 2px;
        }

    .registered-record-field .field {
        height: 44px;
        font-size: 15px;
    }

.registered-record-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.registered-record-modal-actions-center {
    justify-content: center;
}

.registered-record-enter-btn {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    background: #90a4e4;
    height: 50px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.registered-modal-shell-loading .registered-record-enter-btn {
    cursor: default;
}

.registered-record-enter-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: registered-record-spin 0.7s linear infinite;
}

@keyframes registered-record-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.registered-record-status {
    text-align: center;
    padding: 8px 24px 16px;
}

.registered-record-status-intro {
    margin-bottom: 24px !important;
    color: #1f1f1f;
    font-size: 20px !important;
    font-weight: 450;
}

.registered-record-status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    box-sizing: border-box;
}

.registered-record-status-copy {
    margin-bottom: 4px !important;
    font-size: 20px !important;
}

.registered-record-status-phone {
    margin: 0 !important;
    color: #1f1f1f;
    font-size: 20px !important;
    font-weight: 450;
}

.registered-record-action-btn {
    min-width: 150px;
    background: #15a452 !important;
    color: #fff !important;
}

.registered-record-new-patient-btn {
    background: #5571c6 !important;
}

.registered-modal-shell.standalone {
    position: relative;
    padding: 1.5rem 0 0;
}

    .registered-modal-shell.standalone .registered-record-modal {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        max-height: none;
    }

.registered-patient-page {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.registered-patient-result-card {
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #dbe2f3;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(41, 61, 113, 0.08);
}

.registered-patient-result-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

    .registered-patient-result-header h2 {
        margin: 0;
        color: #223252;
        font-size: 1.5rem;
    }

    .registered-patient-result-header p {
        margin: 0.35rem 0 0;
        color: #5a6885;
    }

.registered-patient-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #e7f7ec;
    color: #14703b;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.registered-patient-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

    .registered-patient-result-grid div {
        display: grid;
        gap: 0.25rem;
    }

    .registered-patient-result-grid strong {
        color: #223252;
        font-size: 0.95rem;
    }

    .registered-patient-result-grid span {
        color: #4c5874;
    }

.registered-patient-appointment {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e7f3;
}

    .registered-patient-appointment h3 {
        margin: 0 0 0.5rem;
        color: #223252;
        font-size: 1.05rem;
    }

    .registered-patient-appointment p {
        margin: 0.2rem 0;
        color: #4c5874;
    }

.language-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 50px;
    padding: 0 1.35rem;
    border: 1px solid #5571c6;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    color: #303e4e;
    font-size: 18px;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

/* Reset native button appearance so .language-option styles apply cleanly */
button.language-option {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

button.language-option:focus-visible {
    outline: 2px solid #5571c6;
    outline-offset: 2px;
}

    .language-option input {
        width: 24px;
        height: 24px;
        accent-color: #5571c6;
        margin: 0;
        pointer-events: none;
    }

    .language-option.selected,
    .language-option:has(input:checked) {
        border-color: #5571c6;
        background: #f0f3fd;
        box-shadow: 0 0 0 2px rgba(85, 113, 198, 0.15);
    }

.registration-choice-link {
    text-decoration: none;
}

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

.content-card {
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    box-shadow: none;
    padding: 24px 24px 26px;
}

.patient-form-outline {
    padding: 25px 25px 25px 37px;
}

.section-heading h1, .section-heading h2, .section-heading h3 {
    margin: 0;
    color: #303e4e;
    font-weight: 500;
}

.section-heading p {
    margin: 12px 0 0;
    color: #667689;
    line-height: 24px;
}

.section-heading.compact {
    margin-bottom: 1rem;
}

.react-heading h1 {
    font-size: 30px;
    line-height: 38px;
}

.react-heading h2 {
    font-size: 22px;
    line-height: 30px;
}

.field-stack {
    display: grid;
    gap: 20px;
}

.field-row {
    display: grid;
    gap: 6px;
}

    .field-row label {
        color: #303e4e;
        font-size: 18px;
        font-weight: 500;
        line-height: 140%;
    }

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.field, select.field, textarea.field {
    width: 100%;
    min-height: 45px;
    border: 1px solid #bfbfbf;
    border-radius: 5px;
    background: #fff;
    padding: 0.7rem 0.95rem;
    color: #303e4e;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 140%;
}

select.field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
    cursor: pointer;
}

.patient-type-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 0.65rem 1rem;
    border: 1px solid #5571c6;
    border-radius: 5px;
    background: #fff;
}

.divider {
    height: 1px;
    background: #d0d0d0;
    margin: 1.5rem 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 1rem;
}

.care-card {
    align-self: start;
}

.looking-for-panel {
    min-height: 540px;
}

.action-btn {
    width: 100%;
    margin-top: 1rem;
}

.primary-btn, .secondary-btn {
    min-height: 49px;
    border: 0;
    border-radius: 5px;
    padding: 0.8rem 1.1rem;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
}

.primary-btn {
    background: #5571c6;
    color: #fff;
}

.continue-btn {
    min-width: 224px;
    height: 49px;
    border-radius: 5px;
    background: #15a452;
}

.footer-continue-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 224px !important;
    min-width: 224px !important;
    max-width: 224px !important;
    height: 49px !important;
    text-decoration: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.booking-footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto !important;
    flex: 0 0 auto;
}

.booking-footer-back, .booking-footer-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 224px !important;
    min-width: 224px !important;
    max-width: 224px !important;
    height: 49px !important;
    text-decoration: none;
    flex: 0 0 auto !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.booking-footer-next {
    background: #15a452;
}

    .booking-footer-next.disabled {
        pointer-events: none;
        opacity: 0.5;
    }

.secondary-btn {
    background: #5571c6;
    color: #fff;
}

.action-search-btn {
    min-width: 160px;
}

.care-pill-list {
    display: grid;
    gap: 12px;
    margin: 1rem 0 1.1rem;
}

.care-pill {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    background: #fcfcfc;
    border: 1px solid #d0d0d0;
}

    .care-pill strong {
        color: #303e4e;
        font-size: 16px;
    }

    .care-pill span {
        color: #667689;
        text-align: right;
    }

@media (max-width: 900px) {
    /* On mobile the layout grows with content, so re-enable page scroll. */
    html, body {
        height: auto;
        overflow: auto;
    }

    .patient-booking-shell {
        height: auto;
        min-height: 100vh;
        background: #fff;
        overflow: visible;
    }

    .patient-booking-alert {
        text-align: center;
        padding: 0.9rem 1rem;
    }

    .patient-booking-header {
        padding: 1.5rem 1rem 1rem;
    }

    .patient-booking-header-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1rem;
    }

    .patient-booking-header-center {
        padding-top: 0;
    }

    .patient-booking-content {
        padding: 0 1rem 1.5rem;
        overflow: visible;
    }

    .patient-booking-footer {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        justify-content: center;
    }

    .patient-booking-footer-actions-slot {
        width: 100%;
        justify-content: stretch;
    }

    .booking-progress {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .booking-progress-track::after {
        display: none;
    }

    .language-screen-panel {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 0;
        padding-top: 2.1rem;
    }

    .registration-choice-panel {
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .registered-record-modal {
        top: 80px;
        max-width: calc(100% - 24px);
    }

    .registered-record-form {
        grid-template-columns: 1fr;
    }

    .registered-record-modal-body p {
        font-size: 18px;
    }

    .registered-patient-result-grid {
        grid-template-columns: 1fr;
    }

    .registered-patient-result-header {
        flex-direction: column;
    }

    .language-panel {
        width: 100%;
        max-width: 350px;
    }

    .registration-choice-options {
        width: 100%;
        max-width: 350px;
    }

    .language-screen-panel h1 {
        margin-bottom: 1.5rem;
        font-size: 28px;
        line-height: 34px;
    }

    .registration-choice-panel h1 {
        margin-bottom: 1.5rem;
        font-size: 28px;
        line-height: 34px;
    }

    .booking-grid,
    .form-grid,
    .search-row {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 1.25rem;
    }

    .patient-form-outline {
        padding: 1.25rem;
    }

    .booking-progress-label {
        max-width: none;
    }

    .booking-progress-mobile {
        display: inline;
    }

    .continue-btn {
        width: 100%;
        min-width: 0;
    }

    .footer-continue-btn {
        width: 100%;
    }

    .booking-footer-actions {
        width: 100%;
        flex-direction: column;
    }

    .booking-footer-back,
    .booking-footer-next {
        width: 100%;
        min-width: 0;
    }
}

.new-patient-intake-field-insurance {
    grid-column: span 9;
}

.new-patient-intake-radio-box {
    width: 100%;
    min-height: 50px;
    border: 1px solid #bfbfbf;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .new-patient-intake-radio-box > div {
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 16px 2rem;
    }

.new-patient-intake-radio {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    margin: 0;
}

.new-patient-intake-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #5571c6;
}

.insurance-form-screen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    min-height: 0;
    padding-top: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #b8bbc4 transparent;
}

.insurance-form-screen::-webkit-scrollbar {
    width: 8px;
}

.insurance-form-screen::-webkit-scrollbar-track {
    background: transparent;
}

.insurance-form-screen::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b8bbc4;
}

.insurance-form-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.provider-search-screen {
    position: relative;
    min-height: 520px;
}

.provider-upcoming-modal-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.provider-upcoming-modal-card {
    position: relative;
    width: min(1160px, calc(100% - 40px));
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: none;
    padding: 26px 28px 14px;
    box-sizing: border-box;
}

.provider-upcoming-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #6c86dd;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.provider-upcoming-modal-layout {
    display: grid;
    grid-template-columns: 315px 1px minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
    min-height: 520px;
}

.provider-upcoming-provider-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px 0;
    text-align: center;
}

.provider-upcoming-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #cf1d57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
}

.provider-upcoming-provider-name {
    color: #303e4e;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 26px;
}

.provider-upcoming-provider-specialty {
    color: #303e4e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

/* Bio block in provider left pane — matches .description area in ProviderDetails.js */
.provider-upcoming-provider-bio {
    width: 100%;
    height: 230px;
    overflow-y: auto;
    margin-top: 10px;
    text-align: left;
}

.provider-upcoming-provider-bio-text {
    margin: 0;
    color: #3E3E3E;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

/* Fix name margin — remove excessive bottom gap */
.provider-upcoming-provider-name {
    margin-bottom: 6px !important;
}

.provider-upcoming-link {
    margin-top: auto;
    margin-bottom: 6px;
    border: 0;
    background: transparent;
    color: #5473c9;
    text-decoration: underline;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.provider-upcoming-divider {
    width: 1px;
    background: #d6d6d6;
}

.provider-upcoming-slots-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.provider-upcoming-slots-pane h2 {
    margin: 4px 0 10px;
    color: #111;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.provider-upcoming-slots-scroll {
    height: 394px;
    overflow-y: auto;
    border-top: 1px solid #d6d6d6;
    padding-top: 14px;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #b9bcc7 transparent;
}

.provider-upcoming-date-group + .provider-upcoming-date-group {
    margin-top: 20px;
}

.provider-upcoming-date-label {
    color: #111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
}

.provider-upcoming-date-label-active {
    color: #4765b8;
}

.provider-upcoming-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 20px;
}

.provider-upcoming-slot {
    min-height: 33px;
    border: 1px solid #83a4ff;
    border-radius: 8px;
    background: #fff;
    color: #4765b8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    padding: 6px 8px;
    cursor: pointer;
    min-width: 0;
}

.provider-upcoming-slot.selected {
    background: #4765b8;
    color: #fff;
    border-color: #4765b8;
}

.provider-upcoming-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    flex-wrap: wrap;
}

.provider-custom-step,
.provider-custom-results-step {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.provider-custom-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 1px 280px;
    gap: 28px;
    align-items: stretch;
    min-height: 430px;
}

.provider-custom-date-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.provider-custom-filter-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 74px;
    padding-top: 0;
    min-width: 280px;
}

.provider-custom-mobile-label {
    display: none;
    color: #303e4e;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.provider-custom-mobile-label span {
    color: #ff2f2f;
}

.provider-custom-step-title {
    color: #22395f;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
}

.provider-custom-step-divider {
    width: 1px;
    background: #d6d6d6;
    margin-top: 76px;
    margin-bottom: 88px;
}

.provider-custom-calendar-card {
    width: 420px;
    max-width: 100%;
    border: 1px solid #6d8ee8;
    border-radius: 22px;
    background: #eef3ff;
    box-shadow: 0 6px 14px rgba(72, 103, 188, 0.18);
    padding: 20px 20px 22px;
    box-sizing: border-box;
    margin-top: 12px;
}

.provider-custom-calendar-toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 90px 44px;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.provider-custom-calendar-nav {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #5f6a7a;
    font-size: 15px;
    cursor: pointer;
}

.provider-custom-calendar-month,
.provider-custom-calendar-year {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 10px;
    background: #fff;
    color: #21334f;
    font-size: 16px;
    font-weight: 600;
}

.provider-custom-calendar-weekdays,
.provider-custom-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.provider-custom-calendar-weekdays {
    margin-bottom: 10px;
}

.provider-custom-calendar-weekdays span {
    text-align: center;
    color: #1a2840;
    font-size: 14px;
    font-weight: 500;
}

.provider-custom-calendar-day {
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #15263f;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.provider-custom-calendar-day.preset {
    background: #fff;
    color: #15263f;
}

.provider-custom-calendar-day.selected {
    background: #5873c9;
    color: #fff;
}

.provider-custom-calendar-day.muted {
    background: transparent;
    color: #c4cde2;
}

.provider-custom-calendar-day:disabled {
    cursor: default;
}

.provider-custom-time-option {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #627694;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.provider-custom-time-option input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #4765b8;
}

.provider-custom-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    flex-wrap: wrap;
}

.provider-custom-link-button {
    border: 0;
    background: transparent;
    color: #5473c9;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.provider-custom-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 14px;
}

.provider-custom-date-chip {
    width: 160px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d7dce8;
    border-radius: 8px;
    background: #ebeff2;
    color: #303e4e;
    box-sizing: border-box;
}

.provider-custom-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.provider-custom-chip {
    min-height: 30px;
    border: 0;
    border-radius: 16px;
    background: #a4b1d7;
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.provider-custom-chip.selected {
    background: #4765b8;
}

.provider-custom-results-scroll {
    height: 328px;
}

.provider-upcoming-custom-link {
    border: 0;
    background: transparent;
    color: #6a7894;
    font-size: 16px;
    line-height: 1.35;
    padding: 0;
    cursor: pointer;
}

.provider-upcoming-custom-link span {
    text-decoration: underline;
}

.provider-upcoming-custom-link strong {
    color: #5473c9;
    font-weight: 500;
    text-decoration: underline;
    margin-left: 4px;
}

.provider-upcoming-continue {
    min-width: 124px;
    height: 50px;
    border: 0;
    border-radius: 5px;
    background: #9cb4f0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 0 24px;
}

.provider-upcoming-continue:not(.disabled) {
    background: #5571c6;
    cursor: pointer;
}

.provider-upcoming-continue.disabled {
    opacity: 0.72;
}

.booking-boxes {
    padding: 20px;
}

/* ── ReviewAppointment scrollable centered layout ──────────────────────── */
.review-appointment-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 40px;
}

.review-appointment-inner {
    width: 100%;
    max-width: 920px;
}

/* ── Modal animations (matches React MUI Dialog) ──────────────────── */
@keyframes modal-backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modal-card-in {
    from { opacity: 0; transform: scale(0.9) translateY(-12px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes sp-overlay-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── StateConfirmationModal ──────────────────────────────────────── */
.state-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.state-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    animation: modal-backdrop-in 0.2s ease;
}

.state-modal-card {
    position: relative;
    z-index: 1;
    width: min(600px, 95vw);
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 12px 36px rgba(26, 35, 64, 0.26);
    animation: modal-card-in 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.state-modal-header {
    background: #5571c6;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px 8px 0 0;
}

.state-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
}

.state-modal-close-btn {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.state-modal-body {
    padding: 20px 24px 24px;
    border-radius: 0 0 8px 8px;
    background: #fff;
    overflow: visible;
}

.state-modal-desc {
    font-size: 15px;
    color: #000;
    line-height: 1.55;
    margin: 0 0 16px;
}

.state-modal-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    border: none;
    margin: 0 0 18px;
}

.state-modal-divider-bottom {
    margin-top: 24px;
    margin-bottom: 18px;
}

.state-modal-field-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.state-modal-select-wrap {
    position: relative;
}

.state-modal-select {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid #c4c9d8;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.state-modal-select:focus {
    outline: none;
    border-color: #5571c6;
    box-shadow: 0 0 0 2px rgba(85, 113, 198, 0.18);
}

.state-modal-select-chevron {
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
}

/* ── Custom Select Component ─────────────────────────────── */
.custom-select-wrap {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    background: #fff;
    cursor: pointer;
    padding: 0 14px;
    height: 50px;
    border: 1px solid #bfbfbf;
    border-radius: 5px;
    font-size: 16px;
    color: #303e4e;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.custom-select-trigger:focus {
    border-color: #5571c6;
    box-shadow: 0 0 0 2px rgba(85, 113, 198, 0.15);
}

.custom-select-open .custom-select-trigger {
    border-color: #5571c6;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-placeholder span {
    color: #9ca3af;
}

.custom-select-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.custom-select-open .custom-select-chevron {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #5571c6;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #c5cdd8;
    border-radius: 3px;
}

.custom-select-option {
    padding: 12px 20px;
    font-size: 15px;
    color: #303e4e;
    cursor: pointer;
    transition: background 0.1s;
    line-height: 1.4;
}

.custom-select-option:hover {
    background: #f0f4ff;
}

.custom-select-option-selected {
    background: #f0f4ff;
}

.custom-select-option-placeholder {
    color: #9ca3af;
}
/* Inline mode — dropdown pushes content down (no clipping by overflow parents) */
.custom-select-inline .custom-select-dropdown {
    position: static;
    border-top: 1px solid #5571c6;
    border-radius: 0 0 5px 5px;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.custom-select-inline.custom-select-open .custom-select-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
/* ────────────────────────────────────────────────────────── */

.state-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.state-modal-cancel-btn {
    min-width: 100px;
    height: 40px;
    padding: 0 20px;
    border: 1.5px solid #5e7fdb;
    border-radius: 5px;
    background: transparent;
    color: #5e7fdb;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.state-modal-cancel-btn:hover {
    background: rgba(94, 127, 219, 0.06);
}

.state-modal-confirm-btn {
    min-width: 100px;
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #5e7fdb;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.state-modal-confirm-btn:hover:not(.disabled) {
    background: #4c67b2;
}

.state-modal-confirm-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .state-modal-body {
        padding: 16px 16px 20px;
    }

    .state-modal-footer {
        flex-direction: column-reverse;
    }

    .state-modal-cancel-btn,
    .state-modal-confirm-btn {
        width: 100%;
    }
}

/* ── SearchProviderModal overlay ─────────────────────────────────── */
.sp-overlay-shell {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: modal-backdrop-in 0.2s ease;
}

.sp-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.sp-overlay-card {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    max-height: 90vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(26, 35, 64, 0.28);
    overflow: hidden;
    padding: 26px 28px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: sp-overlay-in 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-overlay-card .provider-upcoming-modal-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sp-overlay-card .provider-upcoming-slots-pane {
    overflow-y: auto;
}

@media (max-width: 860px) {
    .sp-overlay-shell {
        padding: 10px 0 0;
        align-items: flex-start;
    }

    .sp-overlay-card {
        width: 100%;
        max-height: calc(100vh - 10px);
        border-radius: 10px 10px 0 0;
        padding: 44px 18px 18px;
    }
}

.success-section {
    text-align: center;
    margin-bottom: 30px;
}

.step-header {
    font-size: 24px;
    font-weight: 700;
}

.congrats-sub-heading {
    color: #667085;
    margin-top: 10px;
}

.appointment-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.body-section {
    flex: 1;
}

.section-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.provider-card {
    border: 1px solid #C4C4C4;
    border-radius: 8px;
    padding: 20px;
    min-height: 240px;
}

.provider-content,
.patient-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.provider-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #5571C6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.info-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.portal-text {
    margin-top: 25px;
    text-align:center;
    font-size:20px;
    font-weight:400;

}

    .portal-text a {
        color: #4C67B2;
        text-decoration: underline;
    }

.help-text {
    margin-top: 10px;
    font-weight: 500;
}

.post-booking-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(26, 35, 64, 0.18);
}

.post-booking-modal-card {
    width: min(980px, 96vw);
    height: min(640px, 90vh);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(26, 35, 64, 0.22);
}

.post-booking-modal-layout {
    flex: 1;
    min-height: 0;
    display: flex;
}

.post-booking-sidebar {
    width: 260px;
    min-width: 260px;
    background: #f4f6fb;
    border-right: 1px solid #e4e8f0;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.post-booking-sidebar-title {
    color: #1a2340;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.post-booking-sidebar-subtitle {
    color: #5b6b8b;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.post-booking-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: #dde3f4;
    overflow: hidden;
    margin-bottom: 20px;
}

.post-booking-progress-bar {
    height: 100%;
    background: #5571c6;
    border-radius: 6px;
}

.post-booking-sidebar-caption {
    color: #1a2340;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-booking-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #eef1f6;
}

.post-booking-step-item.current {
    background: #5c73b7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-booking-step-item.completed {
    background: #fff;
}

.post-booking-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: #4caf50;
    flex: 0 0 auto;
}

.post-booking-step-item.current .post-booking-step-icon {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 8px;
    letter-spacing: 1px;
}

.post-booking-step-item:not(.current):not(.completed) .post-booking-step-icon {
    background: #e6ecfa;
    border: 2px solid #c7d0ea;
    color: transparent;
}

.post-booking-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #000;
}

.post-booking-step-item.current .post-booking-step-label {
    color: #fff;
}

.post-booking-sidebar-footnote {
    margin-top: auto;
    padding-top: 16px;
    color: #8892a4;
    font-size: 12px;
    font-weight: 400;
}

.post-booking-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.post-booking-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.post-booking-header {
    padding: 24px 24px 0;
}

.post-booking-header h2 {
    margin: 0 0 6px;
    color: #1a2340;
    font-size: 20px;
    font-weight: 600;
}

.post-booking-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.post-booking-reason-body {
    padding: 16px 24px 24px;
    flex: 1;
    min-height: 0;
}

.post-booking-reason-textarea {
    width: 100%;
    height: 97%;
    min-height: 300px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    box-sizing: border-box;
    padding: 16px;
    resize: none;
    outline: none;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #1a2340;
}

.post-booking-reason-textarea::placeholder {
    color: #9ca3af;
}

.post-booking-verify-stack {
    padding: 14px 18px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.post-booking-header-verify {
    padding: 22px 18px 0;
}

.post-booking-header-verify h2 {
    margin: 0 0 4px;
    color: #111827;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.post-booking-header-verify p {
    margin: 0;
    color: #667085;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.post-booking-info-card {
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.post-booking-info-card-personal {
    min-height: 122px;
}

.post-booking-info-card-address {
    min-height: 82px;
}

.post-booking-info-card-insurance {
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.post-booking-insurance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.post-booking-insurance-col {
    border: 1px solid #eaeff7;
    border-radius: 10px;
    padding: 10px 12px;
}

.post-booking-insurance-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.post-booking-file-link {
    color: #5571c6;
    font-weight: 500;
}

.post-booking-upload-label {
    cursor: pointer;
    text-decoration: underline;
    color: #5571c6;
}

.post-booking-warn {
    color: #d97706;
}

.post-booking-warn-note {
    font-size: 12px;
    font-weight: 500;
    color: #d97706;
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .post-booking-insurance-grid {
        grid-template-columns: 1fr;
    }
}

.post-booking-info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eaeff7;
}

.post-booking-info-card-header span {
    color: #111827;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.post-booking-info-card-header button {
    border: 0;
    background: transparent;
    color: #5571c6;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.post-booking-info-card-body {
    padding: 12px 14px;
    font-family: "Inter", sans-serif;
}

.post-booking-info-name {
    color: #111827;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-booking-info-row {
    margin-bottom: 7px;
    color: #667085;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.post-booking-info-row strong {
    margin-left: 6px;
    color: #111827;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.post-booking-info-address {
    color: #111827;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VERIFY-YOUR-DEMOGRAPHICS  detail pane  (matches React DemographModal)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Detail pane wrapper ── */
.demo-verify-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

/* ── Title row ── */
.demo-verify-title-row {
    padding: 18px 30px 16px;
    border-bottom: 1px solid #dbe4f0;
    flex-shrink: 0;
}

.demo-verify-title {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f2b5b;
    margin: 0;
}

/* ── Scrollable field list ── */
.demo-fields-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 4px;
}

/* ── Individual field row ── */
.demo-field-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 12px;
}

.demo-field-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-field-label {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #667689;
    font-weight: 400;
    line-height: 1.35;
}

.demo-field-value {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: #303e4e;
    font-weight: 700;
    line-height: 1.4;
}

.demo-field-subvalue {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #667689;
    font-weight: 400;
}

.demo-field-preferred {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #5571c6;
    font-weight: 500;
    margin-top: 2px;
}

/* ── Divider between rows ── */
.demo-field-divider {
    height: 1px;
    background: #d6dde8;
}

/* ── Pencil/edit circle icon button ── */
.demo-edit-icon-btn {
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    opacity: 0.80;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: 10px;
}
.demo-edit-icon-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.demo-edit-icon-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    overflow: visible;
}

/* ── "Add Preferred Name" link ── */
.demo-add-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: none;
    color: #5571c6;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    padding: 3px 0;
    font-family: "Inter", sans-serif;
    margin-top: 0;
    transition: color 0.15s;
}
.demo-add-link:hover { color: #3d5ab8; }

/* ── Inline edit container ── */
.demo-inline-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.demo-inline-edit-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.demo-inline-edit-row .demo-inline-input {
    min-width: 0;
}

/* Two inputs side-by-side (First + Last name) */
.demo-inline-inputs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Base input / select style */
.demo-inline-input {
    flex: 1;
    min-width: 120px;
    border: 1.5px solid #d0d8ef;
    border-radius: 7px;
    padding: 8px 11px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    color: #111827;
    background: #fafbff;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.demo-inline-input:focus {
    border-color: #5571c6;
    background: #fff;
}

/* Full-width block input (address lines, timezone) */
.demo-inline-input-block {
    flex: unset;
    width: 100%;
}

/* Compact zip input */
.demo-inline-input-zip {
    flex: 0 0 110px;
    min-width: 110px;
}

/* Save / Cancel action row */
.demo-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.demo-inline-actions-icons {
    flex-shrink: 0;
    align-items: center;
    padding-top: 0;
}

.demo-inline-cancel {
    border: 1.5px solid #d0d8ef;
    background: #fff;
    color: #6b7280;
    border-radius: 7px;
    padding: 6px 16px;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.demo-inline-cancel:hover {
    border-color: #aab5d8;
    color: #374151;
}

.demo-inline-save {
    border: none;
    background: #5571c6;
    color: #fff;
    border-radius: 7px;
    padding: 6px 16px;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.demo-inline-save:hover { background: #3d5ab8; }

/* Icon-only X / ✓ buttons (used in address edit) */
.demo-inline-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    border: 1.5px solid #d0d8ef;
    background: #fff;
    font-size: 17px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.demo-inline-icon-cancel {
    color: #6b7280;
}
.demo-inline-icon-cancel:hover {
    background: #f3f4f6;
    border-color: #aab5d8;
    color: #374151;
}
.demo-inline-icon-save {
    background: #5571c6;
    border-color: #5571c6;
    color: #fff;
}
.demo-inline-icon-save:hover {
    background: #3d5ab8;
    border-color: #3d5ab8;
}

/* Edit button */
.post-booking-edit-btn {
    border: 1.5px solid #5571c6;
    background: transparent;
    color: #5571c6;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 14px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

/* Inline edit form */
.post-booking-edit-form {
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-booking-edit-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 10px;
}

.post-booking-edit-row label {
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.post-booking-edit-input {
    border: 1.5px solid #d0d8ef;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    color: #111827;
    background: #fafbff;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.post-booking-edit-input:focus {
    border-color: #5571c6;
    background: #fff;
}

.post-booking-edit-input-full {
    grid-column: 1 / -1;
}

/* Full-width row variant (used for address lines) */
.post-booking-edit-row-full {
    grid-template-columns: 1fr !important;
}

.post-booking-edit-row-full label {
    margin-bottom: -4px;
}

/* Reason-for-visit extras */
.post-booking-reason-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.post-booking-reason-required {
    color: #e53e3e;
    margin-left: 2px;
}

/* ── Intake Form Step ────────────────────────────────────── */
.intake-pane .post-booking-header {
    padding-bottom: 4px;
}

.intake-pane .post-booking-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a2340;
    margin: 0 0 4px;
}

.intake-pane .post-booking-header p {
    font-size: 15px;
    color: #667689;
    margin: 0;
}

.intake-body {
    padding: 16px 24px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Single white card wrapping all questions */
.intake-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 4px 0;
}

.intake-section-header {
    padding: 14px 24px 10px;
    font-size: 16px;
    color: #667689;
    font-style: normal;
    line-height: 1.55;
    font-weight: 400;
}

.intake-question {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f2f5;
}

.intake-question:last-child {
    border-bottom: none;
}

.intake-question-text {
    display: block;
    font-size: 17px;
    color: #1a2340;
    line-height: 1.55;
    margin-bottom: 14px;
    font-weight: 400;
}

.intake-required {
    color: #e53e3e;
    margin-left: 2px;
}

.intake-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Native-style circular radio with label */
.intake-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #303e4e;
    cursor: pointer;
    user-select: none;
}

.intake-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #b0b8c4;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s;
    position: relative;
}

.intake-radio input[type="radio"]:checked {
    border-color: #5571c6;
    border-width: 6px;
    background: #fff;
}

.intake-radio.selected {
    color: #303e4e;
    font-weight: 400;
}

/* Square selector for the "Past / Current / Never" screeners (single-select, styled as a checkbox). */
.intake-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #303e4e;
    cursor: pointer;
    user-select: none;
}

.intake-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #b0b8c4;
    border-radius: 5px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
}

.intake-check input[type="checkbox"]:checked {
    border-color: #5571c6;
    background: #5571c6;
}

.intake-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.intake-crisis-alert {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #c53030;
    line-height: 1.5;
}

.intake-samhsa-warning {
    margin-top: 12px;
    font-size: 14px;
    color: #c53030;
    line-height: 1.6;
}

/* ── Crisis / emergency safety interstitial ─────────────────────────
   Shown over the intake form when a patient reports past or current thoughts of harm. */
.intake-crisis-modal {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.28);
}

.intake-crisis-modal-head {
    background: #f8ebec;
    padding: 20px 32px;
}

.intake-crisis-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #9b2c2c;
    line-height: 1.35;
}

.intake-crisis-modal-body {
    padding: 24px 32px 28px;
}

.intake-crisis-lead {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #1a2340;
}

.intake-crisis-text {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1a2340;
    line-height: 1.6;
}

.intake-crisis-list {
    margin: 0;
    padding-left: 22px;
    list-style: disc;
}

.intake-crisis-list li {
    font-size: 16px;
    color: #1a2340;
    line-height: 1.5;
    margin-bottom: 14px;
}

.intake-crisis-list li strong {
    font-weight: 700;
}

.intake-crisis-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.intake-crisis-actions .ss-modal-save {
    padding: 0 20px;
}
/* ── Consent Form Step ──────────────────────────────────── */

.consent-pane .post-booking-header {
    padding: 20px 28px 10px 28px;
    flex-shrink: 0;
}

.consent-pane .post-booking-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px 0;
}

.consent-pane .post-booking-header p {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
}

.consent-body {
    padding: 0 24px 12px 24px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.consent-scroll-box {
    border: 1px solid #d9dde7;
    border-radius: 14px;
    background: #fafafb;
    padding: 20px 22px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.consent-section-heading {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.consent-subheading {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 16px 0 6px 0;
}

.consent-text {
    font-size: 17px;
    font-weight: 200;
    color: #111;
    line-height: 1.7;
    margin-bottom: 14px;
    word-break: break-word;
}

.consent-link {
    color: #5571c6;
    text-decoration: underline;
}

.consent-checkbox-row {
    padding: 10px 24px 14px 24px;
    flex-shrink: 0;
    background: #fff;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #1a2340;
    cursor: pointer;
    line-height: 1.5;
}

.consent-checkbox {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #5571c6;
    flex-shrink: 0;
}

/* Consent step hosted inside the appointment-details modal: the scroll box relies on a fixed-height
   flex parent, which .ss-appt-content isn't, so bound it explicitly and space the acknowledgement. */
.ss-appt-consent-box {
    flex: none;
    max-height: 380px;
}

.ss-appt-consent-ack {
    margin-top: 16px;
    padding: 0;
    background: transparent;
}

/* ────────────────────────────────────────────────────────── */

.post-booking-reason-count {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
}

.post-booking-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e5eaf3;
}

.post-booking-edit-cancel {
    border: 1.5px solid #d0d8ef;
    background: #fff;
    color: #667085;
    border-radius: 7px;
    padding: 7px 20px;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    font-weight: 500;
}

.post-booking-edit-cancel:hover {
    border-color: #b0bcd8;
    color: #374151;
}

.post-booking-edit-save {
    border: 0;
    background: #5571c6;
    color: #fff;
    border-radius: 7px;
    padding: 7px 20px;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    font-weight: 600;
}

.post-booking-edit-save:hover {
    background: #3d5ab8;
}

.post-booking-footer {
    height: 72px;
    border-top: 1px solid #e8ecf6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px;
    flex-shrink: 0;
}

.post-booking-back-btn,
.post-booking-primary-btn {
    height: 44px;
    border-radius: 8px;
    padding: 9px 28px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.post-booking-back-btn {
    border: 1.5px solid #5571c6;
    background: #fff;
    color: #5571c6;
    font-weight: 500;
    cursor: pointer;
    min-width: 112px;
}

.post-booking-primary-btn {
    border: 0;
    background: #5571c6;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    min-width: 112px;
}

.post-booking-primary-btn.disabled {
    background: #b8c4e8;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .provider-upcoming-modal-layout {
        grid-template-columns: 330px 1px minmax(0, 1fr);
        gap: 24px;
    }

    .provider-custom-grid {
        grid-template-columns: minmax(360px, 1fr) 1px 250px;
    }

    .provider-custom-calendar-card {
        width: 100%;
    }

    .provider-upcoming-slot-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 860px) {
    .provider-upcoming-modal-shell {
        padding: 12px 0 0;
    }

    .provider-upcoming-modal-card {
        width: calc(100% - 16px);
        padding: 44px 18px 18px;
    }

    .provider-upcoming-modal-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
    }

    .provider-upcoming-provider-pane {
        padding: 0;
    }

    .provider-upcoming-divider {
        width: 100%;
        height: 1px;
    }

    .provider-custom-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 18px;
    }

    .provider-custom-step-divider {
        display: none;
    }

    .provider-custom-mobile-label {
        display: block;
    }

    .provider-custom-filter-column {
        padding-top: 0;
        gap: 18px;
    }

    .provider-custom-step-title {
        display: none;
    }

    .provider-custom-step-divider {
        display: none;
    }

    .provider-custom-calendar-card {
        width: 100%;
    }

    .provider-custom-actions {
        justify-content: center;
    }

    .provider-upcoming-slots-scroll {
        height: auto;
        max-height: 420px;
        padding-right: 0;
    }

    .provider-upcoming-slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .provider-upcoming-actions {
        justify-content: center;
    }

    .post-booking-modal-card {
        width: 96vw;
        height: auto;
        max-height: 90vh;
    }

    .post-booking-sidebar {
        display: none;
    }

    .post-booking-reason-textarea {
        min-height: 240px;
    }
}
.verify-container {
    padding: 20px;
    background: white;
}

.title {
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    color: #667085;
    margin-bottom: 20px;
}

.card {
    border: 1px solid #E5EAF3;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #EAEFF7;
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.edit-btn {
    border: none;
    background: none;
    color: #5571C6;
    cursor: pointer;
    font-weight: 600;
}

.row-item {
    margin-bottom: 10px;
}

.label {
    color: #667085;
    margin-right: 6px;
}

.value {
    color: #111827;
    font-weight: 500;
}

.insurance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insurance-box {
    border: 1px solid #EAEFF7;
    border-radius: 10px;
    padding: 14px;
}

.upload-link {
    color: #5571C6;
    font-weight: 500;
}
@media (max-width: 560px) {
    .provider-upcoming-modal-close {
        font-size: 32px;
        top: 8px;
        right: 10px;
    }

    .provider-upcoming-provider-name {
        font-size: 21px;
    }

    .provider-upcoming-provider-specialty {
        font-size: 18px;
    }

    .provider-upcoming-slots-pane h2,
    .provider-upcoming-date-label {
        font-size: 18px;
    }

    .provider-upcoming-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .provider-upcoming-link,
    .provider-upcoming-custom-link {
        font-size: 15px;
    }

    .provider-custom-toolbar {
        align-items: flex-start;
    }
}

.insurance-form-shell h1 {
    margin: 0 0 1.9rem;
    color: #303e4e;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.18;
    text-align: center;
}

.insurance-form-outer-scroll {
    padding: 0 70px 25px;
    box-sizing: border-box;
    width: 100%;
}

.insurance-form-card {
    background: #fff;
    border: 1px solid #cfd8ee;
    border-radius: 22px;
    box-shadow: none;
    padding: 28px 36px 28px;
    width: 100%;
    max-width: 935px;
    margin: 0 auto;
    box-sizing: border-box;
}

.insurance-form-grid {
    display: grid;
    gap: 20px;
}

.insurance-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.insurance-form-row-top {
    align-items: start;
}

.insurance-form-col {
    grid-column: auto;
    min-width: 0;
}

.insurance-field-meta {
    display: flex;
    align-items: flex-start;
}

.insurance-select-wrap {
    position: relative;
}

.insurance-select-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    padding-right: 3.35rem;
}

.insurance-select-field::-ms-expand {
    display: none;
}

.insurance-select-has-clear {
    padding-right: 5.5rem;
}

.insurance-select-clear {
    position: absolute;
    top: 50%;
    right: 2.9rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #7e7e7e;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.insurance-select-clear:hover {
    color: #5f5f5f;
}

.insurance-select-chevron {
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 11px;
    height: 11px;
    border-right: 2px solid #7e7e7e;
    border-bottom: 2px solid #7e7e7e;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.insurance-autocomplete-wrap {
    position: relative;
}

.insurance-autocomplete-input {
    width: 100%;
    padding-right: 2.8rem;
    cursor: text;
}

.insurance-autocomplete-has-clear {
    padding-right: 5rem;
}

.insurance-chevron-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.insurance-chevron-btn svg {
    transition: transform 0.2s ease;
}

.insurance-chevron-open svg {
    transform: rotate(180deg);
}

.insurance-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.insurance-autocomplete-option {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #303e4e;
}

.insurance-autocomplete-option:hover {
    background: #f0f4ff;
}

.insurance-autocomplete-selected {
    background: #e8eeff;
    font-weight: 500;
}

.insurance-autocomplete-no-options {
    padding: 8px 14px;
    font-size: 14px;
    color: #999;
}

.insurance-form-help {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    color: #687992;
    max-width: 380px;
}

.insurance-form-upload-field {
    grid-column: auto;
    align-self: start;
    /* Override new-patient-intake-field's display:grid — upload column uses flex */
    display: flex;
    flex-direction: column;
    /* label height (~20px) + new-patient-intake-field gap (0.55rem ≈ 9px) = ~29px
       keeps the upload button top-aligned with the Relationship select */
    padding-top: 29px;
}

.insurance-upload-label-spacer {
    /* Spacer hidden — padding-top on the wrapper handles alignment */
    display: none;
}

.insurance-upload-slot {
    min-height: 52px;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.insurance-upload-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 1px solid #5571c6;
    border-radius: 5px;
    color: #4c67b2;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 8px;
    text-align: center;
}

.insurance-upload-launch.disabled {
    opacity: 0.5;
    cursor: default;
}

.insurance-upload-launch-icon {
    font-size: 16px;
    line-height: 1;
}

.insurance-upload-summary {
    display: grid;
    gap: 8px;
    min-height: 62px;
    align-content: end;
}

.insurance-upload-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
}

.insurance-upload-summary-item-tight {
    margin-top: 5px;
}

.insurance-upload-summary-main {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.insurance-upload-file-icon {
    font-size: 18px;
    line-height: 1;
}

.insurance-upload-file-name {
    font-size: 15px;
    font-weight: 450;
    color: #4765b8;
    padding: 0 7px;
    border-right: 1px solid #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insurance-upload-link,
.insurance-upload-secondary,
.insurance-upload-remove,
.insurance-modal-close,
.insurance-card-clear {
    border: none;
    background: transparent;
    padding: 0;
}

.insurance-upload-link {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
}

.insurance-upload-secondary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #4765b8;
    font-size: 15px;
    font-weight: 450;
    cursor: pointer;
    width: fit-content;
}

.insurance-upload-remove {
    color: #444;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.insurance-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.insurance-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 30, 44, 0.32);
}

.insurance-modal-card {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(48, 62, 78, 0.18);
}

.insurance-modal-close-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px 0;
}

.insurance-modal-close {
    color: #838383;
    font-size: 22px;
    cursor: pointer;
}

.insurance-modal-body {
    padding: 0 33px 33px;
}

.insurance-card-grid {
    display: flex;
    gap: 38px;
    justify-content: flex-start;
}

.insurance-card-box {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 0;
}

.insurance-card-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    color: #454545;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
}

.insurance-card-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 35px;
    border: 2px dashed #5473c9;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    background: #fff;
}

.insurance-card-input {
    display: none;
}

.insurance-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.insurance-card-select-text {
    color: #000;
    font-size: 13px;
    font-weight: 500;
}

.insurance-card-select-text span {
    color: #5473c9;
}

.insurance-card-support-text {
    color: #7f7e7e;
    font-size: 11px;
    font-weight: 500;
}

.insurance-card-file-state {
    margin-top: 7px;
    border: 1px solid #a7a7a7;
    border-radius: 5px;
}

.insurance-card-file-state-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 5px 0 14px;
}

.insurance-card-file-state-name {
    color: #000;
    font-size: 11px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.insurance-card-complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #15a452;
    color: #fff;
    font-size: 11px;
}

.insurance-card-clear {
    font-size: 15px;
    color: #444;
    cursor: pointer;
}

.insurance-card-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px 5px 14px;
}

.insurance-card-progress-track {
    flex: 1 1 auto;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #d9d9d9;
}

.insurance-card-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: #5473c9;
}

/* =========================================
   PAGE
========================================= */

.specialty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.specialty-page-heading {
    font-weight: 600 !important;
    font-size: 19px !important;
    font-family: "Inter" !important;
    font-style: normal !important;
    color: #000000 !important;
    text-align: center;
    line-height: 24px !important;
}

/* =========================================
   OUTER SCROLL CONTAINER
========================================= */

.specialty-card-scroll {
    width: 100%;
    max-width: 1080px;
    height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #d9dce5;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #bfc3cd transparent;
}

    /* Chrome */

    .specialty-card-scroll::-webkit-scrollbar {
        width: 7px;
    }

    .specialty-card-scroll::-webkit-scrollbar-thumb {
        background: #bfc3cd;
        border-radius: 20px;
    }

/* =========================================
   GRID
========================================= */

.specialty-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 179px);
    gap: 10px;
    justify-content: center;
}

/* =========================================
   CARD
========================================= */

.specialty-card {
    width: 179px;
    min-height: 98px;
    border: 1.5px solid #5473C9 !important;
    border-radius: 6px;
    background: #EFF4FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s ease;
    padding: 2px;
    box-sizing: border-box;
}

/* Selected card like original */

.specialty-card-selected {
    background: #4C67B2;
    border-color: #4C67B2;
}

    .specialty-card-selected:hover {
        background: #4C67B2;
    }

/* =========================================
   ICON
========================================= */

.specialty-card-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* =========================================
   TEXT
========================================= */

.specialty-card-name {
    color: #1C41A6 !important;
    font-size: 20px !important;
    text-align: center !important;
    font-family: Inter !important;
    font-weight: 500;
    line-height: 1.15;
}

/* Selected */

.specialty-card-selected .specialty-card-name {
    color: #ffffff !important;
}

.specialty-card-subname {
    color: #1C41A6 !important;
    font-size: 16px !important;
    margin-top: 4px;
    text-align: center !important;
    font-family: Inter !important;
    font-weight: 500;
}

.specialty-card-selected .specialty-card-subname {
    color: rgba(255,255,255,0.9) !important;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {
    .specialty-card-grid {
        grid-template-columns: repeat(4, 179px);
    }
}

@media (max-width: 768px) {
    .specialty-card-grid {
        grid-template-columns: repeat(3, 179px);
    }

    .specialty-card {
        width: 260px;
        min-height: 70px;
        padding: 5px 0;
    }

    .specialty-card-name {
        font-size: 18px !important;
    }

    .specialty-card-subname {
        font-size: 14px !important;
    }
}

@media (max-width: 560px) {
    .specialty-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.insurance-card-progress-value {
    color: #000;
    font-size: 7px;
    font-weight: 500;
}

.insurance-modal-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.insurance-modal-complete {
    min-width: 120px;
    min-height: 42px;
    border-radius: 5px;
    background: #5571c6;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.insurance-modal-complete.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.validation-message {
    display: block;
    margin-top: 8px;
    color: #ff4b39;
    font-size: 11px;
    font-weight: 600;
}

.field.validation-message,
.validation-message.field {
    margin-top: 0;
}

input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error,
input.invalid,
select.invalid,
textarea.invalid {
    border-color: #ff3f33;
    box-shadow: none;
}

@media (max-width: 768px) {
    .insurance-form-shell {
        max-width: 100%;
    }

    .insurance-form-shell h1 {
        font-size: 28px;
    }

    .insurance-form-screen {
        flex: none;
        overflow-y: visible;
    }

    .insurance-form-outer-scroll {
        padding: 0 0 25px;
    }

    .insurance-form-card {
        padding: 22px;
        border-radius: 14px;
    }

    .insurance-modal-shell {
        padding: 14px;
    }

    .insurance-modal-body {
        padding: 0 18px 24px;
    }

    .insurance-card-grid {
        flex-direction: column;
        gap: 16px;
    }

    .insurance-card-dropzone {
        padding: 24px 18px;
    }

    .insurance-upload-summary-item {
        align-items: flex-start;
    }

    .insurance-upload-summary-main {
        flex-wrap: wrap;
    }

    .insurance-upload-file-name {
        white-space: normal;
    }

    .insurance-form-upload-field {
        grid-column: auto;
    }

    .insurance-form-row {
        grid-template-columns: 1fr;
    }

    .insurance-upload-slot {
        min-height: 0;
    }

    .insurance-form-upload-field {
        padding-top: 0;
    }
}

@media (max-width: 1024px) {
    .insurance-form-shell {
        max-width: 100%;
    }

    .insurance-form-outer-scroll {
        padding: 0 24px 25px;
    }

    .insurance-form-card {
        max-width: 100%;
        padding: 24px 24px 28px;
    }

    .insurance-form-row {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .insurance-form-row {
        grid-template-columns: 1fr;
    }

    .insurance-form-help {
        max-width: none;
    }

    .insurance-upload-launch {
        min-height: 56px;
    }
}

/* Hide top Google translate banner */
.goog-te-banner-frame {
    display: none !important;
}

/* Remove extra top spacing Google adds */
body {
    top: 0px !important;
}

.modal-preview-screen {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
}

.verify-modal-shell {
    width: 100%;
    max-width: 780px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(48, 62, 78, 0.18);
}

.verify-modal-header {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 18px 26px;
    background: #f0f4ff;
    border-bottom: 1px solid #d6e0ff;
}

.verify-modal-header h1 {
    margin: 0;
    color: #1a2340;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.verify-modal-body {
    padding: 22px 26px 28px;
    background: #fff;
}

.verify-modal-section {
    border: 1px solid #e6ebf5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.verify-modal-row {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 20px 22px;
}

.verify-modal-row-address,
.verify-modal-row-upload {
    align-items: center;
}

.verify-modal-divider {
    height: 1px;
    background: #eaecf0;
}

.verify-modal-label-group {
    display: grid;
    gap: 6px;
}

.verify-modal-label {
    color: #667689;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.verify-modal-value {
    color: #303e4e;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.verify-modal-subvalue {
    color: #303e4e;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.verify-modal-note {
    color: #667689;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 220px;
}

.verify-modal-editor {
    display: grid;
    gap: 12px;
}

.verify-modal-editor-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verify-modal-editor-address {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.verify-modal-editor-span {
    grid-column: 1 / -1;
}

.verify-modal-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.verify-modal-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #303e4e;
    font-size: 16px;
    font-weight: 450;
}

.verify-modal-upload-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #5571c6;
    border-radius: 5px;
    background: #fff;
    color: #4c67b2;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.verify-modal-upload-trigger img {
    width: 16px;
    height: 16px;
}

.verify-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 22px;
}

.verify-modal-primary-btn {
    min-width: 250px;
    min-height: 49px;
    background: #15a452 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 550 !important;
    text-transform: none !important;
}

@media (max-width: 768px) {
    .modal-preview-screen {
        padding: 1rem 0.75rem 1.5rem;
    }

    .verify-modal-body {
        padding: 18px;
    }

    .verify-modal-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .verify-modal-editor-two,
    .verify-modal-editor-address {
        grid-template-columns: 1fr;
    }

    .verify-modal-note {
        max-width: none;
    }

    .verify-modal-footer {
        justify-content: stretch;
    }

    .verify-modal-primary-btn {
        width: 100%;
        min-width: 0;
    }
}
/* Hide tooltip that shows original text */
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

/* Remove Google Translate blue hover highlight on translated text */
.goog-text-highlight,
.goog-text-highlight:hover,
.goog-text-highlight * {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    color: inherit !important;
}

/* Prevent Google Translate's <font> wrappers from capturing mouse events.
   GT wraps every translated text node in <font> elements and fires a mouseover
   handler on them to show the blue highlight balloon. Setting pointer-events:none
   stops that handler from ever firing, so no highlight appears. Clicks still
   reach the underlying interactive element (label, button, etc.) normally. */
.translated-ltr font,
.translated-rtl font {
    pointer-events: none !important;
}

/* Prevent popup iframe tooltip */
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    font-size: 0px !important;
}

.registered-record-status-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 20px auto;
}

/* ───────────────────────────────────────────
   Select Provider — full screen page (.pla-*)
   Mirrors React: .booking_boxes.provider_component
─────────────────────────────────────────── */

/* Outer scrollable area — matches .booking_boxes */
.pla-booking-boxes {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 35px;
    width: 100%;
    height: calc(100vh - 315px);
    min-height: calc(100vh - 305px);
    overflow-y: auto;
}

/* Provider-specific gap override — matches .provider_component */
.pla-provider-component {
    gap: 20px !important;
}

/* Heading — matches .step-headers */
.pla-step-headers {
    color: #303e4e;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

/* Inner column — matches .body inside .provider_component */
.pla-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Provider card container — matches .provider_card_container */
.pla-provider-card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 930px;
}

/* Individual card — matches .provider_card */
.pla-provider-card {
    padding: 1px;
    margin-bottom: 10px;
    width: 677px;
    border: 1px solid #5473C9;
    border-radius: 10px;
    background-color: #fff;
}

/* Card inner — matches .card_content */
.pla-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Provider info row — matches .provider_card_content */
.pla-provider-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left section — matches .left_section */
.pla-left-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Avatar — matches nameAvatar() style in React */
.pla-avatar {
    border-radius: 80px;
    border: 2px solid #D8D8D8;
    width: 63px;
    height: 63px;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About doctor — matches .about_doctor */
.pla-about-doctor {
    display: flex;
    flex-direction: column;
}

/* Provider name — matches .name */
.pla-name {
    color: #575757;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

/* Specialty — matches .practice */
.pla-practice {
    color: #575757;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

/* Bio link — matches .providerBioButton */
.pla-provider-bio-button {
    color: #5473C9;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
}

/* Bio text — matches .description_new */
.pla-description-new {
    color: #667689;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

/* Bio collapse arrow */
.pla-bio-collapse {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    color: #5473C9;
    font-size: 14px;
}

/* Divider between info and slots */
.pla-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0;
}

/* Time slots container — matches .time_select_container with inline height+overflow */
.pla-time-select-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: 0;
    padding: 0 8px;
    height: 138px;
    overflow: auto;
    align-content: flex-start;
}

/* Individual slot — matches .time_item */
.pla-time-item {
    width: 106px;
    height: 28px;
    border-radius: 5px;
    border: 0.8px solid #c6cad6;
    background: #fff;
    color: #5571c6;
    text-align: center;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin: 8px 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

/* Selected slot — matches .time_item_selected */
.pla-time-item-selected {
    border: 0.8px solid #4d64aa !important;
    background: #5571c6 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .pla-booking-boxes {
        height: unset;
        overflow-y: unset;
        padding: 16px;
    }

    .pla-provider-card {
        width: 100%;
    }

    .pla-step-headers {
        font-size: 22px;
    }
}

/* ───────────────────────────────────────────
   Provider List — INT design (.pla-*)
   Exact mirror of React: SelectAProviderInt.js + PatientAppointment.scss
─────────────────────────────────────────── */

/* Card: background #FCFCFC, border #D0D0D0 — matches inline style in SelectAProviderInt */
.pla-provider-card-int {
    background: #FCFCFC !important;
    border: 1px solid #D0D0D0 !important;
}

/* Provider name in INT cards — matches inline style={{ color: '#3E3E3E' }} */
.pla-provider-card-int .pla-name {
    color: #3E3E3E !important;
}

/* Specialty in INT cards — matches inline style={{ color: '#3E3E3E' }} */
.pla-provider-card-int .pla-practice {
    color: #3E3E3E !important;
}

/* Description in INT cards — matches .description_new + inline color #3E3E3E */
.pla-provider-card-int .pla-description-new {
    color: #3E3E3E !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    margin: 0;
}

/* Provider count header — exact match of React .provider_header */
.pla-provider-header {
    padding: 8px 12px;
    background: #F1FAF1;
    border: 1px solid #9FD89F;
    display: flex;
    align-items: center;
    border-radius: 4px;
    gap: 5px;
    width: max-content;
}

.pla-provider-header p {
    margin: 0;
    color: #303e4e !important;
    font-family: 'Libre Franklin', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    letter-spacing: -0.064px !important;
}

/* Phone number text — exact match of React .phoneNumberSelectProvider */
.pla-phone-number-text {
    margin: 0;
    color: #303e4e !important;
    font-family: 'Libre Franklin', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    letter-spacing: -0.064px !important;
}

.pla-phone-number-text span {
    color: #5571c6;
    font-weight: 500;
}

/* Book button row — right-aligned, matches inline justifyContent: 'flex-end' */
.pla-book-button-row {
    display: flex;
    justify-content: flex-end;
}

/* See Appointment Times button — exact match of React .book_buttonNew */
.pla-book-button-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(85, 113, 198) !important;
    color: #fff !important;
    text-transform: capitalize !important;
    height: 25px !important;
    border-radius: 5px !important;
    padding: 15px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 13px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.pla-book-button-new:hover {
    background: rgb(70, 95, 175) !important;
}

/* ── ReviewAppointment loading screen ────────────────────────────────────── */
.booking-loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 24px;
}

.booking-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #5571c6;
    border-radius: 50%;
    animation: booking-spin 0.9s linear infinite;
}

@keyframes booking-spin {
    to { transform: rotate(360deg); }
}

.booking-loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #303e4e;
    text-align: center;
    max-width: 340px;
}

@media (max-width: 768px) {
    .pla-provider-header {
        width: 100%;
        box-sizing: border-box;
    }

    .pla-book-button-new {
        width: 100%;
    }

    .pla-book-button-row {
        justify-content: stretch;
    }
}

/* ── Provider loading / error / no-provider states ── */

.pla-provider-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
}

.pla-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #d0d0d0;
    border-top-color: #5571c6;
    border-radius: 50%;
    animation: pla-spin 0.75s linear infinite;
}

@keyframes pla-spin {
    to { transform: rotate(360deg); }
}

.pla-searching-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #303e4e;
    text-align: center;
    margin: 0;
}

.pla-provider-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #c0392b;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    text-align: center;
}

/* Provider avatar image (when base64 photo is available) */
.pla-avatar-img {
    border-radius: 80px;
    border: 2px solid #D8D8D8;
    height: 63px;
    width: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── No-provider / Not-credentialed dialog ── */
/* Matches React <Dialog> centered overlay */

.pla-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
}

.pla-dialog {
    background: #fff;
    border-radius: 4px;
    width: calc(100% - 64px);
    box-shadow: 0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12);
    overflow: hidden;
}

/* maxWidth='md' — matches MUI Dialog maxWidth="md" (900px) */
.pla-dialog--md {
    max-width: 900px;
}

/* maxWidth='sm' (default) — matches MUI Dialog default (600px) */
.pla-dialog--sm {
    max-width: 600px;
}

.pla-dialog-close-row {
    display: flex;
    justify-content: flex-end;
    padding: 5px 5px 0;
}

.pla-dialog-x {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.pla-dialog-x:hover {
    background: rgba(0,0,0,0.06);
}

.pla-dialog-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 32px 32px;
    gap: 20px;
    text-align: center;
}

/* "We couldn't find..." — matches .searchingProviderMessageText */
.pla-dialog-title {
    margin: 0;
    color: #303e4e !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    text-align: center;
}

/* "Please give us a call..." — matches .noProviderFoundNew */
.pla-dialog-sub-wrap {
    width: 80%;
}

.pla-dialog-sub {
    margin: 0;
    color: #303e4e !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    text-align: center;
}

/* "Try Again" / action button — matches React Button background #5571C6 */
.pla-dialog-btn {
    background: #5571C6;
    color: #fff;
    border: none;
    border-radius: 4px;
    height: 35px;
    width: 300px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    cursor: pointer;
    transition: background 0.15s;
}

.pla-dialog-btn:hover {
    background: #4560b0;
}

@media (max-width: 600px) {
    .pla-dialog {
        width: calc(100% - 32px);
    }

    .pla-dialog-btn {
        width: 100%;
    }

    .pla-dialog-sub-wrap {
        width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════
   Insurance Modal — React-matching design  (.ins-*)
══════════════════════════════════════════════════════════════ */
.ins-modal-body {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.ins-header {
    background: #f0f4ff;
    border-bottom: 1px solid #d6e0ff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ins-header-title {
    font-size: 18px;
    font-family: Inter, sans-serif;
    color: #1a2340;
    font-weight: 600;
}

/* Loading state */
.ins-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.ins-field-error {
    color: #d32f2f;
}

/* Scrollable content */
.ins-scroll-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 26px 10px;
}

/* Field row */
.ins-field-container {
    padding: 20px 0;
    position: relative;
}

.ins-field-label {
    color: #667689;
    font-family: Rubik, sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 5px;
    display: block;
}

.ins-field-value {
    color: #303e4e;
    font-family: Rubik, sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    line-height: 1.2;
}

.ins-field-note {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 400;
    font-family: Inter, sans-serif;
    color: #667689;
}

/* Pencil edit icon */
.ins-edit-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid #5571c6;
    background-color: rgba(118, 193, 193, 0.19);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.ins-edit-icon:hover {
    background-color: rgba(118, 193, 193, 0.30);
}

/* Inline edit row */
.ins-edit-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.ins-input {
    flex: 1;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: Rubik, sans-serif;
    color: #303e4e;
    outline: none;
    background: #fff;
}

.ins-input:focus {
    border-color: #5571c6;
}

/* Cancel / Confirm icon buttons */
.ins-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d0d5dd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.ins-icon-btn:hover {
    background: #f5f5f5;
}

.ins-icon-cancel {
    color: #667689;
}

.ins-icon-confirm {
    color: #5571c6;
    border-color: #5571c6;
}

/* Field divider */
.ins-divider {
    height: 1px;
    background: #e0e0e0;
}

/* Insurance card section */
.ins-card-section {
    padding: 20px 0;
}

/* Upload button (no files yet) */
.ins-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #5473c9;
    border-radius: 5px;
    color: #4c67b2;
    background: none;
    cursor: pointer;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 14px;
    font-family: Rubik, sans-serif;
    width: 100%;
}

.ins-upload-btn:hover {
    background: #f3f6ff;
}

.ins-upload-btn-icon {
    width: 18px;
    height: 18px;
}

/* Uploaded file display */
.ins-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 15px;
}

.ins-file-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ins-file-name {
    font-family: Inter, sans-serif;
    font-weight: 450;
    font-size: 15px;
    color: #4765b8;
    padding: 0 7px;
    border-right: 1px solid #333;
}

.ins-replace-btn {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #333;
    padding: 0 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.ins-replace-btn:hover {
    text-decoration: underline;
}

.ins-remove-btn {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Secondary upload (when one card is uploaded) */
.ins-secondary-upload {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    cursor: pointer;
}

.ins-secondary-upload-icon {
    width: 18px;
    height: 18px;
    margin-left: -3px;
}

/* Footer */
.ins-footer {
    padding: 10px 26px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ins-back-btn {
    background: none;
    border: 1px solid #5e7fdb;
    color: #5e7fdb;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: Rubik, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.ins-back-btn:hover {
    background: #f3f6ff;
}

.ins-submit-btn {
    background-color: #5e7fdb;
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    border: none;
    font-family: Rubik, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.ins-submit-btn:hover {
    background-color: #4968c4;
}

.ins-submit-btn:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ins-scroll-content {
        padding: 0 18px 10px;
    }

    .ins-header {
        padding: 14px 18px;
    }

    .ins-footer {
        padding: 10px 18px;
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .ins-back-btn,
    .ins-submit-btn {
        width: 100%;
        text-align: center;
    }
}

/* ════════════════════════════════════════════════════════════════════
   FULL RESPONSIVE COVERAGE — additions for screens not handled above
════════════════════════════════════════════════════════════════════ */

/* ── Tablet / large phone  (≤ 900 px) ── */
@media (max-width: 900px) {

    /* Base font slightly smaller */
    html, body { font-size: 15px; }

    /* ── New-patient intake ── */
    .new-patient-intake-card {
        padding: 16px 18px;
        border-radius: 8px;
    }

    /* Unlock fixed heights so content isn't clipped */
    .new-patient-intake-outer-scroll {
        height: auto;
        max-height: none;
        padding: 0 16px 20px;
    }

    .new-patient-intake-card-scroll {
        height: auto;
        max-height: none;
        padding: 16px 18px;
    }

    /* Collapse 12-col grid to 6-col — fields stay half-width on tablets */
    .new-patient-intake-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .new-patient-intake-field            { grid-column: span 6; }
    .new-patient-intake-field-wide       { grid-column: span 6; }
    .new-patient-intake-field-quarter    { grid-column: span 3; }
    .new-patient-intake-field-dob        { grid-column: span 3; }
    .new-patient-intake-field-phone      { grid-column: span 3; }
    .new-patient-intake-field-sex        { grid-column: span 3; }
    .new-patient-intake-field-email      { grid-column: span 6; }
    .new-patient-intake-field-insurance  { grid-column: span 6; }
    .new-patient-intake-field-three-quarter { grid-column: span 6; }
    .new-patient-intake-field-timezone   { grid-column: span 6; }
    .new-patient-intake-field-city       { grid-column: span 2; }
    .new-patient-intake-field-state      { grid-column: span 2; }
    .new-patient-intake-field-zip        { grid-column: span 2; }

    .new-patient-intake-consent {
        margin-top: 14px;
        padding: 0 2px;
    }

    /* ── Patient booking page ── */
    .patient-booking-page {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* ── ReviewAppointment page ── */
    .appointment-container {
        flex-direction: column;
    }

    .review-appointment-scroll {
        padding: 16px 14px 24px;
    }

    /* ── Registered modal — allow scrolling on short viewports ── */
    .registered-record-modal {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    /* ── Post-booking footer wrap ── */
    .post-booking-footer {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 16px;
        gap: 10px;
    }
}
.provider-no-slots-message {
    margin-top: 135px;
    font-size: 17px;
    color: #222;
    line-height: 1.5;
    font-weight: 500;
}

    .provider-no-slots-message strong {
        font-weight: 700;
    }

/* ── Phone  (≤ 640 px) ── */
@media (max-width: 640px) {

    /* ── Intake grid → 2-col; everything full width ── */
    .new-patient-intake-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .new-patient-intake-field,
    .new-patient-intake-field-wide,
    .new-patient-intake-field-quarter,
    .new-patient-intake-field-dob,
    .new-patient-intake-field-phone,
    .new-patient-intake-field-sex,
    .new-patient-intake-field-email,
    .new-patient-intake-field-insurance,
    .new-patient-intake-field-three-quarter,
    .new-patient-intake-field-timezone   { grid-column: span 2; }

    /* city / state / zip stay side-by-side */
    .new-patient-intake-field-city  { grid-column: span 1; }
    .new-patient-intake-field-state { grid-column: span 1; }
    .new-patient-intake-field-zip   { grid-column: span 2; }

    .new-patient-intake-card {
        padding: 14px;
    }

    /* ── Insurance radio box: wrap options ── */
    .new-patient-intake-radio-box {
        height: auto;
        min-height: 50px;
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 10px;
    }

    .new-patient-intake-radio-box > div {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .new-patient-intake-radio {
        margin-right: 0;
    }

    /* ── Post-booking modal — slide up from bottom ── */
    .post-booking-modal-shell {
        padding: 0;
        align-items: flex-end;
    }

    .post-booking-modal-card {
        width: 100%;
        height: 96vh;
        max-height: 96vh;
        border-radius: 18px 18px 0 0;
    }

    .post-booking-back-btn,
    .post-booking-primary-btn {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    /* ── Registered record modal ── */
    .registered-record-modal {
        max-width: 100%;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .registered-record-modal-body {
        padding: 12px 10px;
    }

    /* ── Provider upcoming modal — full width ── */
    .provider-upcoming-modal-card {
        width: 100%;
        padding: 44px 14px 14px;
        border-radius: 0;
    }

    /* ── ReviewAppointment ── */
    .review-appointment-scroll {
        padding: 12px 10px 20px;
    }

    .provider-card {
        padding: 14px;
        min-height: auto;
    }

    .portal-text {
        font-size: 16px;
        margin-top: 16px;
    }

    /* ── Insurance form heading ── */
    .insurance-form-shell h1 {
        font-size: 22px;
    }

    /* ── Alert banner ── */
    .patient-booking-alert {
        font-size: 13px;
        padding: 10px 12px;
        line-height: 1.4;
    }

    /* ── Brand copy ── */
    .brand-copy { font-size: 12px; }

    /* ── Booking progress labels ── */
    .booking-progress-label { font-size: 11px; }

    /* ── Specialty cards ── */
    .specialty-card {
        width: 100%;
        min-height: 70px;
    }

    /* ── Provider card (provider list) ── */
    .pla-provider-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ── Small phone  (≤ 420 px) ── */
@media (max-width: 420px) {

    /* Intake zip full width on very small screens */
    .new-patient-intake-field-city  { grid-column: span 2; }
    .new-patient-intake-field-state { grid-column: span 2; }
    .new-patient-intake-field-zip   { grid-column: span 2; }

    /* Registered record form — single column */
    .registered-record-form {
        grid-template-columns: 1fr;
    }

    /* Partner logo smaller */
    .partner-logo {
        width: 160px;
    }

    .brand-logo {
        width: 120px;
    }

    /* Footer text */
    .patient-booking-footer {
        font-size: 13px;
    }

    /* Post-booking footer — stack vertically */
    .post-booking-footer {
        flex-direction: column-reverse;
    }

    .post-booking-back-btn,
    .post-booking-primary-btn {
        width: 100%;
    }

    /* Provider slot grid → 2 columns */
    .provider-upcoming-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

