.trip-wizard { min-width: 0; text-align: start; }
html:has(.trip-wizard) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.trip-wizard, .wizard-actions { scroll-margin-bottom: 16px; }
.trip-wizard h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; margin-bottom: 24px; }
.trip-wizard form { min-width: 0; }
.wizard-build { max-width: 820px; margin: auto; padding: 28px 16px 40px; }
.wizard-build .trip-wizard { padding: 24px 18px; background: var(--customer-surface); border: 1px solid var(--customer-line); border-radius: 18px; }
.wizard-enhancement { display: none; }
.trip-wizard[data-enhanced=true] .wizard-enhancement { display: flex; }
.wizard-progress-heading { justify-content: space-between; gap: 12px; color: var(--customer-primary-ink); font-size: 13px; font-weight: 800; }
.wizard-progress-heading > span { display: none; }
.wizard-progress { margin-block: 14px 18px; height: 6px; border-radius: 99px; overflow: hidden; background: var(--customer-primary-light); }
.wizard-progress > span { background: var(--customer-primary); width: 16.666%; border-radius: inherit; }
.wizard-answers { gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 2px 12px; }
.wizard-answers:empty { display: none !important; }
.wizard-answers button { flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--customer-control); background: var(--customer-primary-light); color: var(--customer-primary-ink); border-radius: 99px; padding: 10px 14px; min-height: 44px; font-size: 12px; font-weight: 700; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-panel { margin-block: 24px; min-width: 0; }
.wizard-panel[hidden], .wizard-error[hidden] { display: none !important; }
.wizard-panel h2 { color: var(--customer-ink); font-size: 23px; font-weight: 900; margin-bottom: 24px; outline-offset: 6px; }
.trip-wizard[data-enhanced=true] .wizard-panel { min-height: 270px; }
.trip-wizard label { position: relative; }
.trip-wizard label:has(> input[type=radio]) > span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 99px; }
.trip-wizard label:has(> input[type=radio]):focus-within > span { outline: 2px solid var(--customer-primary); outline-offset: 3px; }
.trip-wizard label:has(> input[type=checkbox]) { cursor: pointer; border-radius: 14px; background: var(--customer-surface); }
.trip-wizard label:has(> input:checked) { border-color: var(--customer-primary); }
.trip-wizard label:has(> input[type=checkbox]:checked) { background: var(--customer-primary-light); }
.trip-wizard .form-checkbox { color: var(--customer-primary); }
.trip-wizard .flex:has(> label > input[type=radio]) { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; }
.trip-wizard .flex:has(> label > input[type=radio]) > label { flex: 0 0 auto; scroll-snap-align: start; }
.wizard-passengers { display: grid; gap: 24px; margin-bottom: 28px; }
.wizard-passengers button { min-width: 48px; min-height: 48px; color: var(--customer-primary-ink); }
.wizard-passengers input { min-height: 48px; }
.wizard-counter-value { position: relative; flex: 1; min-width: 0; }
.wizard-counter-value input { width: 100%; appearance: textfield; }
.wizard-counter-value input::-webkit-inner-spin-button { appearance: none; }
.wizard-counter-value output { display: none; }
[data-passenger-counter-min-value][data-enhanced=true] .wizard-counter-value input { color: transparent; caret-color: var(--customer-primary); }
[data-passenger-counter-min-value][data-enhanced=true] .wizard-counter-value output { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; pointer-events: none; font-weight: 900; }
.wizard-actions { justify-content: space-between; gap: 16px; border-top: 1px solid var(--customer-line); padding-top: 20px; margin-top: 28px; }
.wizard-anytime { border: 1px solid var(--customer-control); border-radius: 99px; padding: 10px 18px; min-height: 44px; color: var(--customer-primary-ink); }
.wizard-previous, .wizard-next { border-radius: 14px; min-height: 48px; padding: 12px 26px; font-weight: 800; }
.wizard-previous { border: 1px solid var(--customer-control); color: var(--customer-primary-ink); background: var(--customer-surface); }
.wizard-previous:disabled { opacity: .45; cursor: default; }
.wizard-next { background: var(--customer-accent); color: var(--customer-ink); min-width: 140px; }
.wizard-error { color: #9a3412; border: 1px solid #f0b5a2; padding: 12px; border-radius: 12px; }
.trip-wizard .wizard-canonical-date { display: block; width: 100%; }
.trip-wizard:not([data-enhanced=true]) [data-locale-date-target=display], .trip-wizard:not([data-enhanced=true]) [data-locale-date-target=status] { display: none; }
.trip-wizard[data-enhanced=true] .wizard-canonical-date { display: none; }
@media (min-width: 768px) {
    html:has(.trip-wizard) { scroll-padding-bottom: 16px; }
    .wizard-build { padding-block: 44px 60px; }
    .wizard-build .trip-wizard { padding: 32px; }
    .wizard-progress-heading > span { display: inline; color: var(--customer-muted); }
    .trip-wizard .flex:has(> label > input[type=radio]) { flex-wrap: wrap; }
    .wizard-passengers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
