.booking-form {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 3vw, 30px);
    color: #172033;
    background: #ffffff;
}

.booking-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid #d9e0ea;
    border-radius: 14px;
    background: #f4f1f7;
}

.booking-progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4c596c;
    font: inherit;
    cursor: pointer;
}

.booking-progress-step span {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #aeb9c8;
    border-radius: 50%;
    background: #ffffff;
    font-size: .78rem;
    font-weight: 900;
}

.booking-progress-step strong {
    font-size: .82rem;
}

.booking-progress-step.is-active {
    background: #641f82;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(100, 31, 130, .2);
}

.booking-progress-step.is-active span {
    border-color: #ffffff;
    color: #641f82;
}

.booking-progress-step.is-complete:not(.is-active) {
    color: #321043;
}

.booking-progress-step.is-complete:not(.is-active) span {
    border-color: #641f82;
    color: #641f82;
}

.booking-progress-step:focus-visible,
.booking-step-back:focus-visible,
.booking-step-next:focus-visible {
    outline: 3px solid rgba(100, 35, 130, .3);
    outline-offset: 2px;
}

.booking-progress-step:disabled {
    cursor: default;
    opacity: .62;
}

.booking-step-panel {
    display: grid;
    gap: 20px;
    scroll-margin-top: 96px;
}

.booking-step-panel[hidden] {
    display: none !important;
}

.booking-step-panel:focus {
    outline: 0;
}

.booking-step-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e7ee;
}

.booking-step-heading span {
    display: block;
    margin-bottom: 3px;
    color: #641f82;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.booking-step-heading h3 {
    margin: 0;
    color: #07111f;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    line-height: 1.25;
}

.booking-step-actions {
    display: grid;
    grid-template-columns: minmax(120px, .38fr) minmax(220px, 1fr);
    gap: 12px;
    padding-top: 4px;
}

.booking-step-actions--end {
    grid-template-columns: minmax(220px, 1fr);
}

.booking-step-actions--submit {
    align-items: stretch;
}

.booking-step-back,
.booking-step-next {
    min-height: 52px;
    padding: 11px 16px;
    border-radius: 11px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.booking-step-back {
    border: 2px solid #641f82;
    background: #ffffff;
    color: #641f82;
}

.booking-step-next {
    border: 0;
    background: #641f82;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(100, 31, 130, .2);
}

.booking-step-next:hover,
.booking-step-next:focus-visible {
    background: #4d1766;
}

.booking-step-status {
    display: none;
    padding: 12px 14px;
    border: 1px solid #c92a2a;
    border-radius: 10px;
    background: #fff0f0;
    color: #741616;
    line-height: 1.45;
}

.booking-step-status.is-visible {
    display: block;
}

.booking-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.booking-form legend {
    width: 100%;
    margin: 0 0 14px;
    color: #07111f;
    font-size: 1.05rem;
    font-weight: 900;
}

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

.booking-field {
    grid-column: span 6;
    min-width: 0;
}

.booking-field--third {
    grid-column: span 4;
}

.booking-field--full {
    grid-column: 1 / -1;
}

.booking-field label,
.booking-field-label {
    display: block;
    margin-bottom: 7px;
    color: #111827;
    font-size: .9rem;
    font-weight: 800;
}

.booking-required {
    color: #9b1c1c;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #aeb9c8;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    line-height: 1.35;
}

.booking-field textarea {
    min-height: 112px;
    resize: vertical;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus,
.booking-choice input:focus-visible + span,
.booking-check input:focus-visible + span {
    outline: 3px solid rgba(100, 35, 130, .28);
    outline-offset: 2px;
    border-color: #641f82;
}

.booking-field input:disabled,
.booking-field select:disabled,
.booking-field textarea:disabled {
    color: #657184;
    background: #edf1f6;
}

.booking-help {
    display: block;
    margin-top: 6px;
    color: #536174;
    font-size: .8rem;
    line-height: 1.45;
}

.booking-inline-choices,
.booking-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.booking-choice,
.booking-check {
    position: relative;
    display: block;
}

.booking-choice input,
.booking-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.booking-choice span,
.booking-check span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid #c8d1dd;
    border-radius: 10px;
    background: #ffffff;
    color: #182234;
    font-weight: 850;
    text-align: center;
    cursor: pointer;
}

.booking-choice input:checked + span,
.booking-check input:checked + span {
    border-color: #641f82;
    background: #641f82;
    color: #ffffff;
}

.booking-conditional {
    padding: 18px;
    border: 1px solid #d9e0ea;
    border-radius: 14px;
    background: #f8f6fb;
}

.booking-direction-note {
    padding: 14px 16px;
    border-left: 4px solid #641f82;
    border-radius: 8px;
    background: #f4edf8;
    color: #321043;
    line-height: 1.55;
}

.booking-direction-note strong {
    display: block;
    margin-bottom: 3px;
}

.booking-price {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #d5dce6;
    border-radius: 14px;
    background: #f8fafc;
}

.booking-price span {
    color: #526075;
}

.booking-price output {
    color: #07111f;
    font-size: 1.45rem;
    font-weight: 950;
}

.booking-price output[hidden] {
    display: none;
}

.booking-form-status {
    display: none;
    padding: 14px 16px;
    border-radius: 10px;
    line-height: 1.5;
}

.booking-form-status.is-visible {
    display: block;
}

.booking-form-status.is-error {
    border: 1px solid #c92a2a;
    background: #fff0f0;
    color: #741616;
}

.booking-form-status.is-info {
    border: 1px solid #9270a6;
    background: #f7f1fa;
    color: #321043;
}

.booking-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: #641f82;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(100, 31, 130, .24);
}

.booking-submit:hover,
.booking-submit:focus-visible {
    background: #4d1766;
}

.booking-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.booking-form[aria-busy="true"] {
    opacity: .82;
}

@media (max-width: 720px) {
    .booking-form {
        gap: 15px;
        padding: 16px 14px 22px;
    }

    .booking-progress {
        gap: 4px;
        padding: 5px;
    }

    .booking-progress-step {
        display: grid;
        gap: 3px;
        min-width: 0;
        min-height: 58px;
        padding: 6px 3px;
    }

    .booking-progress-step span {
        justify-self: center;
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .booking-progress-step strong {
        max-width: 100%;
        overflow: hidden;
        font-size: .67rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-step-panel {
        gap: 17px;
        scroll-margin-top: 76px;
    }

    .booking-step-actions,
    .booking-step-actions--submit {
        grid-template-columns: 1fr;
    }

    .booking-step-actions--submit .booking-submit {
        grid-row: 1;
    }

    .booking-step-actions--submit .booking-step-back {
        grid-row: 2;
    }

    .booking-field,
    .booking-field--third {
        grid-column: 1 / -1;
    }

    .booking-inline-choices,
    .booking-checks {
        grid-template-columns: 1fr;
    }

    .booking-price {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-form * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
