@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

div.booking-request-page {
    --booking-ink: #172438;
    --booking-muted: #5f6f7f;
    --booking-canvas: #eef4f1;
    --booking-glass: rgba(255, 255, 255, 0.62);
    --booking-line: rgba(32, 64, 62, 0.13);
    --booking-teal: #087f78;
    --booking-teal-dark: #07645f;
    --booking-mint: #9ad8c8;
    --booking-coral: #f46f52;
    --booking-sun: #f4b942;
    --booking-shadow: 0 26px 70px rgba(27, 55, 59, 0.13);
    background:
        linear-gradient(90deg, rgba(16, 84, 78, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(16, 84, 78, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, #f8f2ec 0%, #eef7f3 48%, #e8f3f2 100%);
    background-size: 44px 44px, 44px 44px, auto;
    color: var(--booking-ink);
    display: flex;
    flex-direction: column;
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.booking-request-page,
.booking-request-page * {
    font-family: 'Manrope', sans-serif;
}

.booking-request-page::before {
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.62), transparent 38%, rgba(8, 127, 120, 0.06) 74%, transparent);
    content: '';
    height: 52rem;
    left: -8%;
    pointer-events: none;
    position: absolute;
    top: -17rem;
    transform: rotate(-5deg);
    width: 116%;
}

.booking-request-page .booking-header {
    backdrop-filter: blur(26px) saturate(145%);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 40px rgba(25, 60, 58, 0.1);
    color: var(--booking-ink);
    margin: 1rem auto 0;
    max-width: 1240px;
    position: sticky;
    top: 1rem;
    width: calc(100% - 2rem);
    z-index: 50;
}

.booking-request-page .booking-header-inner {
    align-items: center;
    background: transparent;
    display: flex;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0.65rem 0.7rem 0.65rem 1rem;
    position: relative;
}

.booking-request-page .booking-brand {
    align-items: center;
    color: var(--booking-ink);
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    gap: 0.7rem;
    margin: 0;
    text-shadow: none;
}

.booking-request-page .booking-brand img {
    filter: drop-shadow(0 5px 10px rgba(8, 127, 120, 0.14));
    height: 2.7rem;
    width: 2.7rem;
}

.booking-request-page .booking-home-nav {
    position: static;
}

.booking-request-page .booking-home-link {
    background-color: var(--booking-ink);
    background-size: 52% 52%;
    border: 1px solid var(--booking-ink);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(23, 36, 56, 0.18);
    display: block;
    height: 2.8rem;
    padding: 0;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 2.8rem;
}

.booking-request-page .booking-home-link:hover {
    background-color: var(--booking-teal-dark);
    border-color: var(--booking-teal-dark);
    box-shadow: 0 12px 26px rgba(27, 55, 59, 0.16);
    transform: translateY(-2px);
}

.booking-request-page .booking-home-link:focus-visible,
.booking-request-page .booking-form input:focus-visible,
.booking-request-page .booking-form textarea:focus-visible,
.booking-request-page button:focus-visible {
    outline: 3px solid rgba(244, 185, 66, 0.78);
    outline-offset: 3px;
}

.booking-request-page .booking-main {
    align-items: start;
    display: grid;
    flex: 1 0 auto;
    gap: 3rem;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    margin: 0 auto;
    max-width: 1240px;
    padding: 4.5rem 1rem 6rem;
    position: relative;
    width: 100%;
    z-index: 1;
}

.booking-request-page .booking-mark-panel {
    align-items: center;
    backdrop-filter: blur(24px) saturate(140%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(226, 244, 238, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--booking-shadow);
    display: flex;
    height: 32rem;
    justify-content: center;
    overflow: hidden;
    position: sticky;
    top: 7.5rem;
}

.booking-request-page .booking-mark-panel::before,
.booking-request-page .booking-mark-panel::after {
    border: 1px solid rgba(255, 255, 255, 0.76);
    content: '';
    pointer-events: none;
    position: absolute;
}

.booking-request-page .booking-mark-panel::before {
    background: rgba(154, 216, 200, 0.34);
    height: 34%;
    left: -1rem;
    top: -1rem;
    width: 42%;
}

.booking-request-page .booking-mark-panel::after {
    background: rgba(244, 185, 66, 0.25);
    bottom: -1rem;
    height: 28%;
    right: -1rem;
    width: 38%;
}

.booking-request-page .booking-mark {
    filter: drop-shadow(0 24px 34px rgba(8, 127, 120, 0.18));
    height: auto;
    max-height: 18rem;
    object-fit: contain;
    position: relative;
    width: min(72%, 18rem);
    z-index: 1;
}

.booking-request-page .booking-form-card {
    backdrop-filter: blur(24px) saturate(140%);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--booking-shadow);
    max-width: none;
    padding: 2.5rem;
    position: relative;
}

.booking-request-page .booking-form-card::before {
    background: linear-gradient(90deg, var(--booking-coral), var(--booking-sun));
    content: '';
    height: 4px;
    left: 2.5rem;
    position: absolute;
    top: 0;
    width: 4.5rem;
}

.booking-request-page .booking-form-title {
    color: var(--booking-ink);
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 2.25rem;
    text-align: left;
}

.booking-request-page .booking-form {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-request-page .booking-form > * {
    margin: 0;
    min-width: 0;
}

.booking-request-page .booking-field-wide,
.booking-request-page .booking-submit-row {
    grid-column: 1 / -1;
}

.booking-request-page .booking-field label {
    color: var(--booking-ink);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.55rem;
}

.booking-request-page .booking-field label span {
    color: var(--booking-coral);
}

.booking-request-page .booking-form input,
.booking-request-page .booking-form textarea {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--booking-line);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset;
    color: var(--booking-ink);
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 0.85rem 0.95rem;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    width: 100%;
}

.booking-request-page .booking-form input {
    min-height: 3.25rem;
}

.booking-request-page .booking-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.booking-request-page .booking-form input::placeholder,
.booking-request-page .booking-form textarea::placeholder {
    color: #82909c;
}

.booking-request-page .booking-form input:hover,
.booking-request-page .booking-form textarea:hover {
    border-color: rgba(8, 127, 120, 0.34);
}

.booking-request-page .booking-form input:focus,
.booking-request-page .booking-form textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--booking-teal);
    box-shadow: 0 0 0 4px rgba(8, 127, 120, 0.09);
}

.booking-request-page .time-slot-container > .time-slot-row,
.booking-request-page .time-slot-added {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.booking-request-page .time-slot-container .time-slot-added {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.booking-request-page .time-slot-added .time-slot-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.booking-request-page .time-slot-added {
    margin-top: 0.5rem;
}

.booking-request-page .time-slot-input {
    cursor: pointer;
}

.booking-request-page button.add-more {
    align-items: center;
    background: rgba(8, 127, 120, 0.08);
    border: 1px solid rgba(8, 127, 120, 0.15);
    border-radius: 8px;
    color: var(--booking-teal-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.65rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

.booking-request-page button.add-more:hover:not([disabled]) {
    background: rgba(8, 127, 120, 0.14);
    text-decoration: none;
}

.booking-request-page button.add-more:disabled {
    color: var(--booking-muted);
    cursor: not-allowed;
    opacity: 0.55;
}

.booking-request-page .time-slot-remove-button {
    background-color: rgba(244, 111, 82, 0.1);
    background-image: url(/delete-blue.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem;
    border: 1px solid rgba(244, 111, 82, 0.18);
    border-radius: 8px;
    flex: 0 0 3.25rem;
    height: 3.25rem;
    margin: 0;
    width: 3.25rem;
}

.booking-request-page .booking-submit-row {
    padding-top: 0.5rem;
    text-align: left;
}

.booking-request-page .booking-submit-row button {
    background: var(--booking-ink);
    border: 1px solid var(--booking-ink);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 36, 56, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 3.2rem;
    padding: 0.75rem 1.25rem;
    transform: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.booking-request-page .booking-submit-row button:hover {
    background: var(--booking-teal-dark);
    border-color: var(--booking-teal-dark);
    box-shadow: 0 14px 30px rgba(7, 100, 95, 0.2);
    transform: translateY(-2px);
}

.booking-request-page > footer {
    background: rgba(23, 36, 56, 0.94);
    box-shadow: 0 -18px 50px rgba(23, 36, 56, 0.08);
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    padding: 2.5rem 1rem;
    position: relative;
    z-index: 1;
}

.booking-request-page > footer .booking-contact-footer-inner {
    background: transparent;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 1240px;
}

.booking-request-page > footer a {
    color: var(--booking-mint);
}

.booking-request-page .custom-picker-container {
    backdrop-filter: blur(24px) saturate(140%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: var(--booking-shadow);
    color: var(--booking-ink);
    max-height: calc(100vh - 2rem);
    max-width: min(25rem, calc(100vw - 2rem));
    overflow-y: auto;
    padding: 1rem;
    position: fixed;
    width: 100%;
}

.booking-request-page .calendar-month-label,
.booking-request-page .time-slots-heading {
    font-size: 1.125rem;
    font-weight: 700;
}

.booking-request-page .calendar-grid {
    margin-bottom: 1rem;
}

.booking-request-page .time-slots-heading {
    margin-bottom: 0.5rem;
    text-align: center;
}

.booking-request-page .time-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.booking-request-page .calendar-header button {
    align-items: center;
    background: rgba(8, 127, 120, 0.09);
    border: 1px solid rgba(8, 127, 120, 0.14);
    border-radius: 8px;
    color: var(--booking-teal-dark);
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.booking-request-page .calendar-day {
    border-radius: 6px;
    padding: 0.55rem 0.35rem;
}

.booking-request-page .calendar-day:hover:not(.disabled) {
    background: rgba(8, 127, 120, 0.1);
}

.booking-request-page .calendar-day.selected,
.booking-request-page .time-slot.selected {
    background: var(--booking-teal);
    color: #ffffff;
}

.booking-request-page .calendar-day.disabled,
.booking-request-page .time-slot.disabled {
    background: rgba(95, 111, 127, 0.08);
    color: #a9b2ba;
}

.booking-request-page .time-slot {
    background: rgba(8, 127, 120, 0.08);
    border: 1px solid rgba(8, 127, 120, 0.12);
    border-radius: 8px;
    color: var(--booking-teal-dark);
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
}

.booking-request-page .dialog-icon {
    display: block;
    height: 4rem;
    margin: 0 auto 1rem;
    width: 4rem;
}

.booking-request-page .dialog-icon-error,
.booking-request-page .dialog-title.dialog-title-error {
    color: #f87171;
}

.booking-request-page .dialog-icon-success,
.booking-request-page .dialog-title.dialog-title-success {
    color: #34d399;
}

.booking-request-page .dialog-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    margin: 0 0 0.5rem;
}

.booking-request-page .modal,
.booking-request-page .dialog-backdrop,
.booking-request-page .success-dialog-backdrop {
    backdrop-filter: blur(12px);
    background: rgba(23, 36, 56, 0.62);
}

.booking-request-page .modal-content,
.booking-request-page .dialog-container,
.booking-request-page .success-dialog-container {
    backdrop-filter: blur(24px) saturate(140%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: var(--booking-shadow);
    color: var(--booking-ink);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.booking-request-page .modal-content h3,
.booking-request-page .dialog-container h2,
.booking-request-page .success-dialog-container h2 {
    color: var(--booking-teal-dark);
}

.booking-request-page #dialog-message,
.booking-request-page #error-dialog-message,
.booking-request-page #success-dialog-message {
    color: var(--booking-muted);
}

.booking-request-page .error-close-button,
.booking-request-page .success-close-button,
.booking-request-page .modal-content > button {
    background: var(--booking-ink);
    border: 1px solid var(--booking-ink);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 36, 56, 0.18);
    color: #ffffff;
    font-weight: 800;
    padding: 0.7rem 1.5rem;
}

@media (max-width: 900px) {
    .booking-request-page .booking-main {
        gap: 1.25rem;
        grid-template-columns: 1fr;
        max-width: 760px;
        padding-top: 3.5rem;
    }

    .booking-request-page .booking-mark-panel {
        height: 14rem;
        position: relative;
        top: 0;
    }

    .booking-request-page .booking-mark {
        max-height: 10rem;
        width: 10rem;
    }
}

@media (max-width: 640px) {
    .booking-request-page .booking-header {
        margin-top: 0.65rem;
        top: 0.65rem;
        width: calc(100% - 1rem);
    }

    .booking-request-page .booking-header-inner {
        min-height: 4rem;
        padding: 0.55rem 0.6rem 0.55rem 0.75rem;
    }

    .booking-request-page .booking-brand {
        font-size: 0.88rem;
        gap: 0.5rem;
    }

    .booking-request-page .booking-brand img {
        height: 2.35rem;
        width: 2.35rem;
    }

    .booking-request-page .booking-home-link {
        height: 2.8rem;
        width: 2.8rem;
    }

    .booking-request-page .booking-main {
        padding: 2.75rem 0.75rem 4rem;
    }

    .booking-request-page .booking-mark-panel {
        height: 10.5rem;
    }

    .booking-request-page .booking-mark {
        max-height: 7.5rem;
        width: 7.5rem;
    }

    .booking-request-page .booking-form-card {
        padding: 1.4rem;
    }

    .booking-request-page .booking-form-card::before {
        left: 1.4rem;
    }

    .booking-request-page .booking-form-title {
        font-size: 2.6rem;
        margin-bottom: 1.75rem;
    }

    .booking-request-page .booking-form {
        grid-template-columns: 1fr;
    }

    .booking-request-page .booking-field-wide,
    .booking-request-page .booking-submit-row {
        grid-column: auto;
    }

    .booking-request-page .booking-submit-row button {
        width: 100%;
    }

    .booking-request-page > footer {
        padding: 2rem 1rem;
    }

    .booking-request-page .modal-content,
    .booking-request-page .dialog-container,
    .booking-request-page .success-dialog-container {
        padding: 1.25rem;
        width: calc(100% - 2rem);
    }

    .booking-request-page .custom-picker-container {
        max-width: calc(100vw - 1rem);
        width: calc(100vw - 1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-request-page *,
    .booking-request-page *::before,
    .booking-request-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reference layout: compact glass workspace */
div.booking-reference-layout {
    background:
        linear-gradient(90deg, rgba(17, 71, 72, 0.13) 1px, transparent 1px),
        linear-gradient(rgba(17, 71, 72, 0.13) 1px, transparent 1px),
        linear-gradient(rgba(239, 248, 245, 0.72), rgba(233, 244, 242, 0.72)),
        url(/post-operative-rehabiliation.png) center / cover fixed;
    background-size: 36px 36px, 36px 36px, auto, cover;
    min-height: 100vh;
}

.booking-reference-layout::before {
    background: linear-gradient(105deg, rgba(255, 245, 226, 0.42), transparent 36%, rgba(78, 191, 191, 0.14));
    height: 100%;
    inset: 0;
    transform: none;
    width: 100%;
}

.booking-reference-layout .booking-header {
    background: rgba(242, 248, 245, 0.7);
    margin-top: 2rem;
    max-width: 1180px;
    position: relative;
    top: 0;
    width: calc(100% - 2rem);
}

.booking-reference-layout .booking-back-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(23, 36, 56, 0.14);
    color: var(--booking-ink);
    display: flex;
    height: 2.9rem;
    justify-content: center;
    left: 1rem;
    position: absolute;
    text-decoration: none;
    top: 1rem;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 2.9rem;
    z-index: 2;
}

.booking-reference-layout .booking-back-button svg {
    fill: none;
    height: 1.45rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 1.45rem;
}

.booking-reference-layout .booking-back-button:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 36px rgba(23, 36, 56, 0.18);
    transform: translateY(-2px);
}

.booking-reference-layout .booking-header-inner {
    align-items: center;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 7.1rem;
    padding: 1rem 1.4rem 1.15rem;
}

.booking-reference-layout .booking-brand-link {
    color: var(--booking-ink);
    text-decoration: none;
}

.booking-reference-layout .booking-brand {
    font-size: 2.1rem;
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
}

.booking-reference-layout .booking-brand img {
    height: 4.2rem;
    width: 4.2rem;
}

.booking-reference-layout .booking-brand strong {
    color: #27396c;
    font-weight: 800;
}

.booking-reference-layout .booking-brand > span {
    color: #159566;
    white-space: nowrap;
}

.booking-reference-layout .booking-header-divider {
    background: rgba(23, 36, 56, 0.2);
    display: none;
    height: 3.8rem;
    width: 1px;
}

.booking-reference-layout .booking-page-title {
    color: #111b27;
    font-family: 'Fraunces', serif;
    font-size: 2.55rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

.booking-reference-layout .booking-main {
    display: block;
    margin: 0 auto;
    max-width: 1180px;
    padding: 1rem 0 2rem;
    width: calc(100% - 2rem);
}

.booking-reference-layout .booking-form-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.booking-reference-layout .booking-form-card::before {
    display: none;
}

.booking-reference-layout .booking-form {
    display: block;
}

.booking-reference-layout .booking-top-modules {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-reference-layout .booking-module {
    backdrop-filter: blur(24px) saturate(135%);
    background: rgba(239, 246, 242, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 18px 44px rgba(28, 51, 55, 0.16);
    padding: 1.15rem 1.3rem;
}

.booking-reference-layout .booking-module h3 {
    color: #172126;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.booking-reference-layout .booking-patient-module,
.booking-reference-layout .booking-appointment-module {
    min-height: 15.4rem;
}

.booking-reference-layout .booking-patient-module {
    display: grid;
    gap: 0.55rem;
    grid-template-rows: auto repeat(3, 1fr);
}

.booking-reference-layout .booking-field label {
    font-size: 0.77rem;
    margin-bottom: 0.28rem;
}

.booking-reference-layout .booking-form input,
.booking-reference-layout .booking-form textarea {
    background-color: rgba(250, 253, 252, 0.72);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset, 0 5px 15px rgba(33, 58, 58, 0.08);
    font-size: 0.82rem;
    padding: 0.58rem 0.75rem;
}

.booking-reference-layout .booking-form input {
    min-height: 2.35rem;
}

.booking-reference-layout .booking-field-name input,
.booking-reference-layout .booking-field-contact input,
.booking-reference-layout .booking-field-email input,
.booking-reference-layout .booking-field-address textarea,
.booking-reference-layout .booking-field-complaint textarea {
    background-position: 0.65rem 50%;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-left: 2.15rem;
}

.booking-reference-layout .booking-field-name input {
    background-image: url(/name.svg);
}

.booking-reference-layout .booking-field-contact input {
    background-image: url(/phone.svg);
}

.booking-reference-layout .booking-field-email input {
    background-image: url(/email.svg);
}

.booking-reference-layout .booking-field-address textarea {
    background-image: url(/states.svg);
}

.booking-reference-layout .booking-field-complaint textarea {
    background-image: url(/notes-blue.svg);
}

.booking-reference-layout .booking-field-address textarea,
.booking-reference-layout .booking-field-complaint textarea {
    background-position: 0.65rem 0.7rem;
}

.booking-reference-layout .booking-appointment-module {
    display: flex;
    flex-direction: column;
}

.booking-reference-layout .time-slot-container {
    align-items: end;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr) 2.55rem;
}

.booking-reference-layout .time-slot-container > label {
    grid-column: 1 / -1;
}

.booking-reference-layout .time-slot-container > .time-slot-row {
    grid-column: 1;
    min-width: 0;
}

.booking-reference-layout .time-slot-container > .time-slot-added {
    grid-column: 1 / -1;
}

.booking-reference-layout button.add-more {
    align-items: center;
    align-self: end;
    font-size: 0;
    grid-column: 2;
    height: 2.55rem;
    justify-content: center;
    margin: 0;
    min-height: 2.55rem;
    padding: 0;
    width: 2.55rem;
}

.booking-reference-layout button.add-more::before {
    content: '+';
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
}

.booking-reference-layout .booking-case-module {
    margin-top: 1rem;
}

.booking-reference-layout .booking-case-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-reference-layout .booking-form textarea {
    min-height: 6.3rem;
}

.booking-reference-layout .booking-submit-row {
    backdrop-filter: blur(24px) saturate(135%);
    background: rgba(239, 246, 242, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 18px 44px rgba(28, 51, 55, 0.16);
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
}

.booking-reference-layout .booking-submit-row button {
    background: linear-gradient(90deg, #0b7f61, #18a069);
    border: 1px solid rgba(7, 100, 76, 0.74);
    border-radius: 999px;
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    min-height: 2.85rem;
    text-transform: uppercase;
    width: min(26rem, 70%);
}

.booking-reference-layout .booking-submit-row button:hover {
    background: linear-gradient(90deg, #07644f, #10875a);
}

@media (max-width: 760px) {
    .booking-reference-layout .booking-header {
        margin-top: 0.75rem;
    }

    .booking-reference-layout .booking-back-button {
        height: 2.5rem;
        left: 0.7rem;
        top: 0.7rem;
        width: 2.5rem;
    }

    .booking-reference-layout .booking-back-button svg {
        height: 1.25rem;
        width: 1.25rem;
    }

    .booking-reference-layout .booking-header-inner {
        gap: 0.7rem;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.85rem;
    }

    .booking-reference-layout .booking-brand {
        font-size: 1.55rem;
    }

    .booking-reference-layout .booking-brand img {
        height: 3.2rem;
        width: 3.2rem;
    }

    .booking-reference-layout .booking-header-divider {
        height: 1px;
        width: min(15rem, 80%);
    }

    .booking-reference-layout .booking-page-title {
        font-size: 1.8rem;
    }

    .booking-reference-layout .booking-main {
        padding-top: 0.75rem;
    }

    .booking-reference-layout .booking-top-modules,
    .booking-reference-layout .booking-case-grid {
        grid-template-columns: 1fr;
    }

    .booking-reference-layout .booking-patient-module,
    .booking-reference-layout .booking-appointment-module {
        min-height: 0;
    }

    .booking-reference-layout .booking-module {
        padding: 1rem;
    }

    .booking-reference-layout .booking-patient-module {
        gap: 0.75rem;
    }

    .booking-reference-layout .booking-submit-row button {
        width: 100%;
    }
}

.booking-reference-layout .modal {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem;
}

.booking-reference-layout .modal-content {
    background: rgba(247, 249, 250, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(23, 36, 56, 0.24);
    color: var(--booking-ink);
    max-height: calc(100vh - 2rem);
    max-width: calc(100vw - 2rem);
    padding: 3rem 3.2rem 3.5rem;
    width: 28rem;
}

.booking-reference-layout .modal-content h3 {
    color: var(--booking-teal-dark);
    font-size: 2rem;
    line-height: 1;
    margin: 0 0 2rem;
}

.booking-reference-layout .modal-content #modalMessage {
    color: var(--booking-muted);
    font-size: 1rem;
    margin: 0 0 1rem;
}

.booking-reference-layout .modal-content #modalMessage:empty {
    display: none;
}

.booking-reference-layout .modal-content > div {
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(95, 111, 127, 0.13);
    border-radius: 8px;
    color: var(--booking-ink);
    margin: 0;
    padding: 1.4rem;
}

.booking-reference-layout .modal-content > div > p:first-child {
    color: var(--booking-teal-dark);
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0 0 1.15rem;
}

.booking-reference-layout .modal-content > div > div {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
}

.booking-reference-layout .modal-content > div > div:last-child {
    margin-bottom: 0;
}

.booking-reference-layout .modal-content > button {
    background: var(--booking-ink);
    border: 1px solid var(--booking-ink);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 36, 56, 0.2);
    color: #ffffff;
    font-size: 1rem;
    margin-top: 1.5rem;
    min-height: 3.25rem;
    min-width: 5rem;
    padding: 0.75rem 1.4rem;
}

@media (max-width: 480px) {
    .booking-reference-layout .modal {
        padding: 0.5rem;
    }

    .booking-reference-layout .modal-content {
        max-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
        padding: 2.5rem 2.35rem 2.4rem;
        width: calc(100vw - 1rem);
    }

    .booking-reference-layout .modal-content h3 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .booking-reference-layout .modal-content > div {
        padding: 1rem;
    }

    .booking-reference-layout .modal-content > div > p:first-child {
        font-size: 1.3rem;
    }

    .booking-reference-layout .modal-content > div > div {
        font-size: 0.98rem;
    }
}

/* Clinic note dialog */
.booking-reference-layout .modal-content.clinic-note-dialog {
    align-items: center;
    background: rgba(250, 251, 252, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: min(42rem, calc(100vh - 3rem));
    justify-content: space-between;
    max-height: calc(100vh - 3rem);
    padding: 2.25rem 2.75rem 2.5rem;
    position: relative;
    width: min(38rem, calc(100vw - 3rem));
}

.booking-reference-layout .clinic-note-dialog h3 {
    color: var(--booking-teal-dark);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.booking-reference-layout .clinic-note-dialog > button.clinic-note-close {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    height: 2.75rem;
    margin: 0;
    min-height: 0;
    min-width: 0;
    padding: 0;
    position: absolute;
    right: 1.5rem;
    top: 1.35rem;
    width: 2.75rem;
}

.booking-reference-layout .clinic-note-dialog > button.clinic-note-close::after,
.booking-reference-layout .clinic-note-dialog > button.clinic-note-close::before {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 2;
}

.booking-reference-layout .clinic-note-dialog > button.clinic-note-close::after {
    background: var(--booking-ink);
    border-radius: 6px;
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.5rem 0.65rem;
    transform: translateY(-0.2rem);
}

.booking-reference-layout .clinic-note-dialog > button.clinic-note-close::before {
    border-bottom: 0.35rem solid var(--booking-ink);
    border-left: 0.35rem solid transparent;
    border-right: 0.35rem solid transparent;
    content: '';
    right: 0.9rem;
    top: calc(100% + 0.05rem);
    transform: translateY(-0.2rem);
}

.booking-reference-layout .clinic-note-dialog > button.clinic-note-close:hover::after,
.booking-reference-layout .clinic-note-dialog > button.clinic-note-close:hover::before,
.booking-reference-layout .clinic-note-dialog > button.clinic-note-close:focus-visible::after,
.booking-reference-layout .clinic-note-dialog > button.clinic-note-close:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
}

.booking-reference-layout .clinic-note-close:hover {
    background: rgba(23, 36, 56, 0.06);
    transform: none;
}

.booking-reference-layout .clinic-note-close span::before,
.booking-reference-layout .clinic-note-close span::after {
    background: #5f6973;
    content: '';
    height: 2px;
    left: 0.55rem;
    position: absolute;
    top: 1.35rem;
    width: 1.65rem;
}

.booking-reference-layout .clinic-note-close span::before {
    transform: rotate(45deg);
}

.booking-reference-layout .clinic-note-close span::after {
    transform: rotate(-45deg);
}

.booking-reference-layout .clinic-note-dialog #modalMessage {
    margin-bottom: 1rem;
    width: 100%;
}

.booking-reference-layout .clinic-note-dialog #modalMessage:empty {
    display: none;
}

.booking-reference-layout .clinic-note-dialog .clinic-schedule {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(95, 111, 127, 0.14);
    border-radius: 8px;
    color: var(--booking-ink);
    margin: 0;
    display: grid;
    flex: 0 0 auto;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    padding: 0;
    width: 100%;
    height: 20rem;
}

.booking-reference-layout .clinic-note-dialog .clinic-schedule-row {
    display: grid;
    grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.1fr);
    margin: 0;
    min-height: 0;
}

.booking-reference-layout .clinic-note-dialog .clinic-schedule-row + .clinic-schedule-row {
    border-top: 1px solid rgba(95, 111, 127, 0.14);
}

.booking-reference-layout .clinic-schedule-day {
    align-items: center;
    border-right: 1px solid rgba(95, 111, 127, 0.14);
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    padding: 1.4rem 1.5rem;
}

.booking-reference-layout .clinic-schedule-day > svg,
.booking-reference-layout .clinic-calendar-icon {
    color: var(--booking-ink);
    flex: 0 0 2.4rem;
    height: 2.4rem;
    position: relative;
    width: 2.4rem;
}

.booking-reference-layout .clinic-schedule-day svg {
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 100%;
}

.booking-reference-layout .clinic-calendar-icon small {
    align-items: center;
    background: var(--booking-ink);
    border-radius: 999px;
    bottom: -0.15rem;
    color: #ffffff;
    display: flex;
    font-size: 0.55rem;
    font-style: normal;
    font-weight: 800;
    height: 1.1rem;
    justify-content: center;
    position: absolute;
    right: -0.25rem;
    width: 1.1rem;
}

.booking-reference-layout .clinic-schedule-day strong {
    color: #168c4f;
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.booking-reference-layout .clinic-schedule-times {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin: 0;
    padding: 1.4rem 1.65rem;
    text-align: left;
}

.booking-reference-layout .clinic-shift {
    margin: 0;
}

.booking-reference-layout .clinic-shift span,
.booking-reference-layout .clinic-shift strong {
    color: var(--booking-ink);
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.35;
}

.booking-reference-layout .clinic-shift strong {
    font-size: 1.25rem;
}

.booking-reference-layout .clinic-schedule-times em {
    color: #69727c;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.booking-reference-layout .clinic-note-dialog .clinic-note-ok {
    background: var(--booking-ink);
    border: 1px solid var(--booking-ink);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 36, 56, 0.2);
    color: #ffffff;
    font-size: 1.35rem;
    margin: 0;
    min-height: 4.2rem;
    min-width: 7rem;
    padding: 0.75rem 1.4rem;
}

@media (max-width: 520px) {
    .booking-reference-layout .modal-content.clinic-note-dialog {
        gap: 0.8rem;
        height: auto;
        justify-content: flex-start;
        max-height: calc(100vh - 5rem);
        max-width: calc(100vw - 2.5rem);
        padding: 1.35rem 0.85rem 1rem;
        width: calc(100vw - 2.5rem);
    }

    .booking-reference-layout .clinic-note-dialog h3 {
        font-size: 1.45rem;
        margin-bottom: 0;
    }

    .booking-reference-layout .clinic-note-dialog > button.clinic-note-close {
        height: 2.4rem;
        right: 0.55rem;
        top: 0.45rem;
        width: 2.4rem;
    }

    .booking-reference-layout .clinic-note-close span::before,
    .booking-reference-layout .clinic-note-close span::after {
        left: 0.48rem;
        top: 1.18rem;
        width: 1.45rem;
    }

    .booking-reference-layout .clinic-note-dialog .clinic-schedule-row {
        grid-template-columns: minmax(7.3rem, 0.88fr) minmax(0, 1.12fr);
        min-height: 0;
    }

    .booking-reference-layout .clinic-note-dialog .clinic-schedule {
        height: 14.5rem;
    }

    .booking-reference-layout .clinic-schedule-day {
        gap: 0.5rem;
        padding: 0.7rem 0.55rem;
    }

    .booking-reference-layout .clinic-schedule-day > svg,
    .booking-reference-layout .clinic-calendar-icon {
        flex-basis: 1.55rem;
        height: 1.55rem;
        width: 1.55rem;
    }

    .booking-reference-layout .clinic-schedule-day strong {
        font-size: 0.82rem;
    }

    .booking-reference-layout .clinic-schedule-times {
        gap: 0.4rem;
        padding: 0.7rem 0.6rem;
    }

    .booking-reference-layout .clinic-shift span,
    .booking-reference-layout .clinic-shift strong {
        font-size: 0.78rem;
    }

    .booking-reference-layout .clinic-shift strong {
        font-size: 0.86rem;
    }

    .booking-reference-layout .clinic-schedule-times em {
        font-size: 0.68rem;
        margin-top: 0.15rem;
        white-space: nowrap;
    }

    .booking-reference-layout .clinic-note-dialog .clinic-note-ok {
        font-size: 1.05rem;
        min-height: 3rem;
        min-width: 5.4rem;
        margin: 0;
        padding: 0.55rem 1.05rem;
    }
}
