.editorial-booking {
    --booking-field-line: #899483;
    --booking-field-surface: #fcfbf8;
    --booking-section-padding: clamp(18px, 3vw, 34px);
    max-width: 1120px;
    padding: clamp(30px, 5vw, 76px) 0 clamp(48px, 7vw, 96px);
    grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
    gap: clamp(28px, 7vw, 104px);
}

.editorial-booking .booking-intro {
    top: 112px;
    min-width: 0;
}

.editorial-booking .booking-intro h1,
.editorial-booking-confirmation h1 {
    color: var(--editorial-olive);
    font-size: var(--editorial-title);
}

.editorial-booking .booking-intro h1 { margin: 10px 0 13px; }
.editorial-booking .booking-intro p { max-width: 35ch; margin: 0; color: var(--editorial-muted); line-height: 1.65; }

.editorial-booking .booking-card {
    min-width: 0;
    border-color: var(--editorial-line);
    border-radius: 4px;
    background: var(--booking-field-surface);
    box-shadow: none;
}

.editorial-booking .form-section {
    display: block;
    padding: var(--booking-section-padding);
    border-color: var(--editorial-line);
    scroll-margin-top: 92px;
}

.editorial-booking .form-title h2 {
    margin: 0 0 18px;
    color: var(--editorial-olive);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.editorial-booking .booking-card label {
    margin-block: 13px 7px;
    color: var(--editorial-text);
    font-size: var(--editorial-small);
    font-weight: 600;
}

.editorial-booking .booking-card :is(input:not([type="hidden"], [type="checkbox"]), select, textarea, .mqc-calendar-control) {
    min-width: 0;
    min-height: 46px;
    border-color: var(--booking-field-line);
    border-radius: 4px;
    color: var(--editorial-text);
    background-color: var(--booking-field-surface);
    font-size: 1rem;
}

.editorial-booking .booking-card :is(input:not([type="checkbox"]), select, textarea):focus {
    border-color: var(--editorial-olive);
    box-shadow: none;
}

.editorial-booking .booking-card :is(input, select, textarea):focus-visible,
.editorial-booking .mqc-calendar-control:focus-within {
    outline: 2px solid var(--editorial-olive);
    outline-offset: 2px;
}

.editorial-booking .booking-card :is(input, textarea)::placeholder { color: var(--editorial-muted); }
.editorial-booking .booking-card textarea { min-height: 92px; }
.editorial-booking :is(input[data-booking-date], .mqc-calendar-control) { width: min(100%, 19rem); }
.editorial-booking .mqc-calendar-value { color: var(--editorial-text); font-size: 1rem; }

.editorial-booking .slot-label-row { align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-top: 10px; }
.editorial-booking .slot-label-row small { color: var(--editorial-muted); font-size: .8rem; }
.editorial-booking .slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr)); }
.editorial-booking .slots-empty {
    grid-column: 1 / -1;
    align-content: center;
    margin: 0;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--editorial-stone);
    color: var(--editorial-muted);
    font-size: var(--editorial-small);
}

.editorial-booking .slot {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border-color: var(--booking-field-line);
    border-radius: 4px;
    background: var(--booking-field-surface);
    color: var(--editorial-dark);
    font-size: .875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.editorial-booking .slot:hover { border-color: var(--editorial-olive); background: var(--editorial-stone); }
.editorial-booking .slot.selected {
    border-color: var(--editorial-olive);
    background: var(--editorial-olive);
    color: var(--editorial-paper);
}

.editorial-booking .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.editorial-booking label small,
.editorial-booking .form-note { color: var(--editorial-muted); font-size: .85rem; }
.editorial-booking .form-note { line-height: 1.55; text-align: left; }
.editorial-booking .form-note[data-booking-preparation]:not([hidden]) {
    padding: 10px 12px;
    border-inline-start: 2px solid var(--editorial-line);
    background: var(--editorial-stone);
}

.editorial-booking .booking-card .consent {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 20px 0 12px;
    padding: 12px;
    border: 1px solid var(--editorial-line);
    border-radius: 4px;
    background: var(--editorial-stone);
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.55;
    cursor: pointer;
}

.editorial-booking .consent input {
    width: 18px;
    height: 18px;
    accent-color: var(--editorial-olive);
}

.editorial-booking .field-validation { font-size: .85rem; }
.editorial-booking .field-validation:empty { display: none; }
.editorial-booking .validation-summary { margin-inline: var(--booking-section-padding); }
.editorial-booking :is(.booking-client-summary, .validation-summary, .consent.booking-invalid) { border-radius: 4px; }
.editorial-booking .mqc-calendar-control:has(> .booking-invalid) { border-color: var(--danger); }
.editorial-booking .submit-booking { gap: 12px; margin-top: 12px; justify-content: center; }
.editorial-booking .submit-booking:disabled { cursor: wait; }

.editorial-booking .booking-package-banner {
    display: grid;
    gap: 6px;
    margin: var(--booking-section-padding) var(--booking-section-padding) 0;
    padding: 12px 14px;
    border-color: var(--editorial-line);
    border-radius: 4px;
    background: var(--editorial-stone);
    box-shadow: none;
}

.editorial-booking .booking-package-badge {
    justify-content: start;
    padding: 0;
    background: transparent;
    color: var(--editorial-olive);
    font-size: .75rem;
}

.editorial-booking .booking-package-banner small { color: var(--editorial-muted); }

.editorial-booking .booking-known-patient {
    border-color: var(--editorial-line);
    border-radius: 4px;
    background: var(--editorial-stone);
}
.editorial-booking .booking-known-patient span,
.editorial-booking .booking-known-patient small { color: var(--editorial-muted); }
.editorial-booking .booking-known-patient strong { color: var(--editorial-text); }

.editorial-booking-confirmation {
    max-width: 680px;
    padding: clamp(35px, 6vw, 82px) 0 clamp(48px, 7vw, 88px);
}

.editorial-booking-confirmation h1 { margin-block: 8px 14px; }
.editorial-booking-confirmation > p { color: var(--editorial-muted); line-height: 1.65; }
.editorial-booking-confirmation .success-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border: 1px solid var(--editorial-line);
    background: var(--editorial-stone);
}

.editorial-booking-confirmation .success-mark span { color: var(--editorial-olive); background: transparent; }
.editorial-booking-confirmation .success-card {
    padding: 8px clamp(16px, 4vw, 26px);
    border-color: var(--editorial-line);
    border-radius: 4px;
    background: #fcfbf8;
    box-shadow: none;
}

.editorial-booking-confirmation .success-card div { border-color: var(--editorial-line); }
.editorial-booking-confirmation .success-card span { color: var(--editorial-muted); font-size: .875rem; }
.editorial-booking-confirmation .success-note { padding: 10px 12px; border-radius: 4px; background: var(--editorial-stone); }
.editorial-booking-confirmation .success-note p { color: var(--editorial-muted); font-size: .875rem; }

@media (max-width: 850px) {
    .editorial-booking { max-width: 640px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .editorial-booking .booking-intro { position: static; padding-inline: 0; }
    .editorial-booking .booking-intro h1 { margin-block: 4px 9px; }
}

@media (max-width: 520px) {
    .editorial-booking .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .editorial-booking .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
