:root {
    color-scheme: light;
    --ink: #18324b;
    --muted: #647b91;
    --line: #d9e5f0;
    --blue: #2d6ea5;
    --blue-deep: #20547f;
    --blue-soft: #eaf3ff;
    --blue-pale: #f4f8fd;
    --paper: #ffffff;
    --coral: #c96c4b;
    --green: #347c70;
    --shadow: 0 18px 55px rgba(34, 75, 112, 0.09);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #f3f7fc;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(45, 110, 165, 0.35);
    outline-offset: 3px;
}

.page-wash {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(83, 133, 178, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 133, 178, 0.035) 1px, transparent 1px),
        linear-gradient(125deg, #e8f2ff 0%, #f8fbff 54%, #edf6fa 100%);
    background-size: 36px 36px, 36px 36px, auto;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.topbar {
    width: min(1180px, calc(100% - 64px));
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(93, 126, 158, 0.16);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: #fff;
    background: var(--blue-deep);
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 23px;
    line-height: 1;
}

.brand-name {
    display: grid;
    gap: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.brand-name span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.timezone-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #526d85;
    font-size: 12px;
    font-weight: 600;
}

.timezone-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5a9b91;
    box-shadow: 0 0 0 3px rgba(90, 155, 145, 0.13);
}

.timezone-code {
    padding: 4px 6px;
    border: 1px solid #d9e5f0;
    border-radius: 3px;
    color: var(--blue-deep);
    background: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.page-content {
    width: min(1180px, calc(100% - 64px));
    margin: 48px auto 28px;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.eyebrow,
.rail-label,
.section-index {
    margin: 0;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.45px;
}

.page-heading h1 {
    margin: 8px 0 0;
    color: #16324d;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.12;
}

.heading-note {
    margin: 0 1px 3px 0;
    color: #6e8498;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    text-align: right;
}

.booking-workspace {
    min-height: 610px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #d8e4ef;
    border-radius: 7px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.booking-rail {
    display: flex;
    flex-direction: column;
    padding: 30px 24px 22px;
    border-right: 1px solid #dce7f1;
    background: linear-gradient(160deg, #f0f6fd, #eaf3fb 66%, #f4f8fa);
}

.rail-label {
    color: #71869a;
    font-size: 9px;
    letter-spacing: 1.25px;
}

.step-list {
    display: grid;
    gap: 7px;
    margin: 22px 0 25px;
    padding: 0;
    list-style: none;
}

.step-list li {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #8293a3;
    font-size: 12px;
    font-weight: 600;
    transition: color 160ms ease;
}

.step-number {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid #cfdae5;
    border-radius: 50%;
    color: #8293a3;
    background: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.step-list li[aria-current="step"] {
    color: #244d70;
}

.step-list li[aria-current="step"] .step-number {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(45, 110, 165, 0.1);
}

.step-list li.is-complete .step-number {
    border-color: #8bb7aa;
    color: #fff;
    background: #6b9f91;
}

.rail-rule {
    height: 1px;
    background: rgba(94, 126, 155, 0.2);
}

.summary-block {
    padding-top: 22px;
}

.summary-empty {
    margin: 13px 0 0;
    color: #899bab;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 16px;
    line-height: 1.45;
}

.summary-event {
    margin: 13px 0 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.summary-detail {
    margin: 4px 0;
    color: #6d8296;
    font-size: 11px;
    line-height: 1.5;
}

.rail-footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: #73899b;
    font-size: 10px;
}

.secure-mark {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #a7c7bd;
    border-radius: 50%;
    color: var(--green);
    font-size: 10px;
}

.booking-main {
    min-width: 0;
    padding: 36px 44px 32px;
}

.step-panel {
    animation: panel-enter 260ms ease both;
}

.step-intro {
    margin-bottom: 25px;
}

.step-intro h2 {
    margin: 8px 0 5px;
    color: #1a3650;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.2;
}

.step-intro p:not(.section-index) {
    max-width: 580px;
    margin: 0;
    color: #718499;
    font-size: 12px;
    line-height: 1.6;
}

.event-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.event-option {
    width: 100%;
    min-height: 105px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 20px;
    padding: 18px 16px 18px 19px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease;
}

.event-option:hover,
.event-option.is-selected {
    background: #f1f7ff;
}

.event-option.is-selected::before {
    width: 3px;
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--coral);
    content: "";
}

.event-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.event-name {
    color: #203b55;
    font-size: 14px;
    font-weight: 700;
}

.event-duration {
    flex: none;
    color: #668198;
    font-size: 10px;
    font-weight: 700;
}

.event-description {
    display: block;
    max-width: 610px;
    margin-top: 7px;
    color: #718499;
    font-size: 11px;
    line-height: 1.55;
}

.event-selector {
    width: 22px;
    height: 22px;
    justify-self: end;
    display: grid;
    place-items: center;
    border: 1px solid #bfcedb;
    border-radius: 50%;
    color: transparent;
    background: white;
    font-size: 11px;
}

.event-option.is-selected .event-selector {
    border-color: var(--blue);
    color: white;
    background: var(--blue);
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
}

.primary-button,
.secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.primary-button {
    color: white;
    background: var(--blue-deep);
}

.primary-button:hover:not(:disabled) {
    background: #173e60;
    transform: translateY(-1px);
}

.primary-button:disabled {
    color: #92a2b2;
    background: #e4ebf2;
    cursor: not-allowed;
}

.secondary-button {
    border-color: #d4e0eb;
    color: #526d85;
    background: #fff;
}

.secondary-button:hover {
    border-color: #a9c0d5;
    background: #f6f9fc;
}

.button-arrow {
    font-size: 17px;
    font-weight: 400;
    line-height: 0;
}

.schedule-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
}

.calendar-pane {
    min-width: 0;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.calendar-toolbar h3 {
    margin: 0;
    color: #29445d;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.month-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e4ef;
    border-radius: 4px;
    color: #42627f;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.month-button:hover:not(:disabled) {
    border-color: #a9c4dc;
    background: #f1f7fd;
}

.month-button:disabled {
    color: #c2ccd6;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.weekday-label {
    min-height: 26px;
    display: grid;
    place-items: center;
    color: #8698a9;
    font-size: 9px;
    font-weight: 700;
}

.calendar-day,
.calendar-empty {
    aspect-ratio: 1;
    min-width: 0;
}

.calendar-day {
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #34536f;
    background: #edf5fd;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}

.calendar-day:hover:not(:disabled) {
    border-color: #8fb5d6;
    background: #deedfb;
}

.calendar-day.is-selected {
    border-color: var(--blue-deep);
    color: #fff;
    background: var(--blue-deep);
    box-shadow: 0 3px 8px rgba(32, 84, 127, 0.18);
}

.calendar-day:disabled {
    color: #bdc8d2;
    background: transparent;
    cursor: not-allowed;
}

.calendar-day.is-past {
    text-decoration: line-through;
}

.availability-note {
    min-height: 33px;
    margin: 12px 0 0;
    color: #8193a4;
    font-size: 10px;
    line-height: 1.5;
}

.slot-pane {
    padding-left: 21px;
    border-left: 1px solid var(--line);
}

.slot-heading {
    min-height: 34px;
    margin: 0 0 15px;
    color: #536f88;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: 330px;
    overflow: auto;
    padding: 1px 3px 2px 1px;
}

.slot-option {
    min-height: 38px;
    border: 1px solid #d5e2ee;
    border-radius: 4px;
    color: #365977;
    background: white;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 130ms ease;
}

.slot-option:hover {
    border-color: #79a4c7;
    background: #f3f8fd;
}

.slot-option.is-selected {
    border-color: var(--blue-deep);
    color: white;
    background: var(--blue-deep);
}

.no-slots {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px 10px;
    border-left: 2px solid #d7a17f;
    color: #75899a;
    background: #f7f9fb;
    font-size: 11px;
    line-height: 1.5;
}

.selected-time {
    min-height: 34px;
    margin: 10px 0 0;
    color: #627c93;
    font-size: 10px;
    line-height: 1.5;
}

.details-form {
    max-width: 590px;
}

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

.form-field {
    display: grid;
    gap: 7px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field label {
    color: #425e78;
    font-size: 11px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #d4e0eb;
    border-radius: 3px;
    color: #203a53;
    background: #fbfdff;
    font-size: 12px;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a1afbc;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #81aaca;
    background: white;
}

.form-footnote {
    margin: 15px 0 0;
    color: #8798a7;
    font-size: 10px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.booking-message {
    margin: 18px 0 0;
    padding: 11px 13px;
    border-left: 3px solid var(--coral);
    color: #754831;
    background: #fff6f1;
    font-size: 12px;
    line-height: 1.5;
}

.booking-message.is-success {
    border-left-color: var(--green);
    color: #315f57;
    background: #f0f8f5;
}

.confirmation-panel {
    max-width: 570px;
    padding: 20px 0 10px;
}

.confirmation-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid #b6d3c9;
    border-radius: 50%;
    color: white;
    background: #6f9f91;
    box-shadow: 0 0 0 8px #edf6f2;
    font-size: 23px;
}

.confirmation-panel h2 {
    margin: 0 0 9px;
    color: #1b3851;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.confirmation-copy {
    margin: 0;
    color: #718499;
    font-size: 12px;
    line-height: 1.6;
}

.booking-reference {
    margin: 24px 0 0;
    padding: 15px 17px;
    border: 1px solid #d7e5f1;
    border-radius: 4px;
    background: #f3f8fd;
}

.booking-reference span {
    display: block;
    margin-bottom: 6px;
    color: #73899d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.booking-reference strong {
    color: #244e71;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
}

.confirmation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 22px;
    margin: 20px 0 25px;
}

.confirmation-details div {
    min-width: 0;
}

.confirmation-details dt {
    margin-bottom: 5px;
    color: #8496a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.confirmation-details dd {
    margin: 0;
    color: #344f68;
    font-size: 12px;
    line-height: 1.45;
}

.loading-state,
.empty-state {
    padding: 18px 0;
    color: #718499;
    font-size: 12px;
    line-height: 1.6;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 2px 0;
    color: #8193a4;
    font-size: 10px;
}

@media (min-width: 901px) and (max-height: 900px) {
    .page-content {
        margin-top: 24px;
        margin-bottom: 14px;
    }

    .page-heading {
        margin-bottom: 15px;
    }

    .page-heading h1 {
        margin-top: 6px;
        font-size: 36px;
    }

    .booking-workspace {
        min-height: 0;
    }

    .booking-rail {
        padding: 22px 20px 18px;
    }

    .booking-main {
        padding: 24px 32px 22px;
    }

    .step-intro {
        margin-bottom: 16px;
    }

    .step-intro h2 {
        font-size: 25px;
    }

    .schedule-layout {
        grid-template-columns: minmax(300px, 360px) minmax(185px, 1fr);
        gap: 22px;
    }

    .calendar-toolbar {
        margin-bottom: 10px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .weekday-label {
        min-height: 22px;
    }

    .availability-note {
        min-height: 24px;
        margin-top: 8px;
    }

    .slot-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 240px;
    }

    .step-actions {
        margin-top: 18px;
    }

    .form-grid {
        row-gap: 10px;
    }

    .form-field {
        gap: 5px;
    }

    .form-field input,
    .form-field textarea {
        min-height: 40px;
        padding: 8px 10px;
    }

    .form-field textarea {
        min-height: 76px;
    }

    .form-footnote {
        margin-top: 10px;
    }

    .primary-button,
    .secondary-button {
        min-height: 40px;
    }

    .page-footer {
        padding-top: 12px;
    }
}

[hidden] {
    display: none !important;
}

@keyframes panel-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .page-content,
    .topbar {
        width: min(100% - 40px, 760px);
    }

    .booking-workspace {
        grid-template-columns: 205px minmax(0, 1fr);
    }

    .booking-rail {
        padding-right: 18px;
        padding-left: 18px;
    }

    .booking-main {
        padding-right: 28px;
        padding-left: 28px;
    }

    .schedule-layout {
        grid-template-columns: minmax(0, 1fr) 185px;
        gap: 20px;
    }

    .slot-pane {
        padding-left: 16px;
    }
}

@media (max-width: 680px) {
    .topbar {
        width: calc(100% - 36px);
        min-height: 72px;
    }

    .timezone-label {
        gap: 7px;
        font-size: 10px;
    }

    .page-content {
        width: calc(100% - 28px);
        margin-top: 30px;
    }

    .page-heading {
        align-items: start;
        margin-bottom: 19px;
    }

    .page-heading h1 {
        max-width: 400px;
        font-size: 34px;
    }

    .heading-note {
        display: none;
    }

    .booking-workspace {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .booking-rail {
        padding: 17px 18px 14px;
        border-right: 0;
        border-bottom: 1px solid #dce7f1;
    }

    .booking-rail > .rail-label,
    .rail-rule,
    .rail-footnote {
        display: none;
    }

    .step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: start;
        gap: 10px;
        margin: 0;
    }

    .step-list li {
        min-width: 0;
        min-height: 28px;
        gap: 6px;
        font-size: 9px;
    }

    .step-number {
        width: 23px;
        height: 23px;
        font-size: 8px;
    }

    .step-list li:not([aria-current="step"]):not(.is-previous) {
        display: none;
    }

    .summary-block {
        display: none;
    }

    .booking-main {
        padding: 25px 20px 24px;
    }

    .step-intro {
        margin-bottom: 19px;
    }

    .step-intro h2 {
        font-size: 26px;
    }

    .event-option {
        min-height: 100px;
        grid-template-columns: minmax(0, 1fr) 26px;
        gap: 9px;
        padding: 15px 10px 15px 13px;
    }

    .event-title-row {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .event-name {
        font-size: 13px;
    }

    .schedule-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .slot-pane {
        padding: 15px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .slot-heading {
        min-height: 0;
        margin-bottom: 10px;
    }

    .slot-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 190px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .form-field--wide {
        grid-column: auto;
    }

    .step-actions {
        margin-top: 21px;
    }

    .primary-button,
    .secondary-button {
        min-height: 43px;
    }

    .page-footer {
        padding-top: 13px;
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .page-heading h1 {
        font-size: 30px;
    }

    .step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-list li {
        gap: 4px;
        font-size: 8px;
    }

    .calendar-grid {
        gap: 3px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}