/* ============================================================
   po-booking — Multi-step wizard styles.
   ============================================================ */

.po-wizard {
    max-width: 680px;
    margin-inline: auto;
    font-family: var(--po-font-body, sans-serif);
}

/* ---- Progress ---- */
.po-wizard__progress {
    background: rgba(56, 110, 153, 0.12);
    border-radius: 9999px;
    height: 6px;
    margin-block-end: 0.5rem;
    overflow: hidden;
}
.po-wizard__progress-bar {
    height: 100%;
    background: var(--po-primary, #386e99);
    border-radius: inherit;
    transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.po-wizard__step-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--po-text-muted, #5a5a5a);
    margin-block-end: 2rem;
}

/* ---- Steps ---- */
.po-wizard__step {
    animation: step-in 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.po-wizard [hidden],
.po-wizard__step[hidden] {
    display: none !important;
}

@keyframes step-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard-step__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--po-navy, #1c3c63);
    margin-block-end: 0.5rem;
}
.wizard-step__desc {
    font-size: 1rem;
    color: var(--po-text-muted, #5a5a5a);
    margin-block-end: 1.5rem;
}

/* ---- Inputs ---- */
.wizard-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(56, 110, 153, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--po-white, #fff);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    appearance: none;
}
.wizard-input:focus {
    outline: none;
    border-color: var(--po-primary, #386e99);
    box-shadow: 0 0 0 3px rgba(56, 110, 153, 0.15);
}
.wizard-input--file {
    padding-block: 0.75rem;
}
.wizard-field-hint {
    font-size: 0.8125rem;
    color: var(--po-text-muted, #5a5a5a);
}
.po-wizard__step p {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-block-end: 1rem;
}
.po-wizard__step label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--po-text-muted, #5a5a5a);
}

.wizard-fee-notice {
    background: #f8fafc;
    border: 1px solid rgba(56, 110, 153, 0.18);
    border-left: 4px solid var(--po-primary, #386e99);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-block-end: 1.5rem;
}
.wizard-fee-notice h3 {
    color: var(--po-navy, #1c3c63);
    font-size: 1rem;
    margin: 0 0 0.35rem;
}
.wizard-fee-notice p {
    margin: 0;
}

/* ---- Mode / recurrence option tiles ---- */
.wizard-mode-options,
.wizard-recurrence-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-block-end: 1.5rem;
}
.wizard-mode-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem;
    background: var(--po-white, #fff);
    border: 2px solid var(--po-primary, #386e99);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.wizard-mode-option input { position: absolute; opacity: 0; }
.wizard-mode-option:hover,
.wizard-mode-option:active,
.wizard-mode-option:has(input:checked) {
    color: var(--po-white, #fff);
    background: var(--po-primary, #386e99);
    border-color: var(--po-primary, #386e99);
    box-shadow: 0 0 0 3px rgba(28, 60, 99, 0.1);
}
.wizard-mode-option__label { font-weight: 700; color: var(--po-navy, #1c3c63); }
.wizard-mode-option__desc  { font-size: 0.875rem; color: var(--po-text-muted, #5a5a5a); }
.wizard-mode-option__fee {
    margin-top: 0.25rem;
    color: var(--po-primary, #386e99);
    font-size: 0.875rem;
    font-weight: 700;
}
.wizard-mode-option:hover .wizard-mode-option__label,
.wizard-mode-option:hover .wizard-mode-option__desc,
.wizard-mode-option:hover .wizard-mode-option__fee,
.wizard-mode-option:active .wizard-mode-option__label,
.wizard-mode-option:active .wizard-mode-option__desc,
.wizard-mode-option:active .wizard-mode-option__fee,
.wizard-mode-option:has(input:checked) .wizard-mode-option__label,
.wizard-mode-option:has(input:checked) .wizard-mode-option__desc,
.wizard-mode-option:has(input:checked) .wizard-mode-option__fee {
    color: var(--po-white, #fff) !important;
}

/* ---- Screening ---- */
.wizard-screening { display: flex; flex-direction: column; gap: 1.5rem; }
.wizard-screening__q { font-weight: 600; color: var(--po-navy, #1c3c63); margin: 0; }
.wizard-screening__options { display: flex; gap: 2rem; }
.wizard-screening__options label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 400; }
.wizard-screening__redirect { margin-top: 0.5rem; }

/* ---- Slots ---- */
.wizard-slots { margin-block: 1rem; }
.wizard-slot-calendar { width: 100%; }
.wizard-week-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.75rem;
    margin-block-end: 1rem;
}
.wizard-week-nav__range {
    color: var(--po-navy, #1c3c63);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}
.wizard-week-nav__button {
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--po-navy, #1c3c63);
    background: var(--po-white, #fff);
    border: 1px solid var(--po-navy, #1c3c63);
    border-radius: 6px;
    cursor: pointer;
}
.wizard-week-nav__button span { display: block; font-size: 1.75rem; line-height: 1; transform: translateY(-1px); }
.wizard-week-nav__button:hover:not(:disabled) { color: var(--po-white, #fff); background: var(--po-navy, #1c3c63); }
.wizard-week-nav__button:disabled { cursor: default; opacity: 0.3; }
.wizard-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
}
.wizard-day-column { min-width: 0; }
.wizard-day-column__heading {
    min-height: 48px;
    margin: 0 0 0.625rem;
    color: var(--po-text-muted, #5a5a5a);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}
.wizard-day-column__heading span,
.wizard-day-column__heading strong { display: block; }
.wizard-day-column__heading strong { color: var(--po-navy, #1c3c63); font-size: 0.8125rem; }
.wizard-day-column__times { display: flex; flex-direction: column; gap: 0.5rem; }
.po-wizard button.wizard-slot-btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.625rem 0.25rem;
    background: var(--po-white, #fff);
    border: 1px solid var(--po-primary, #386e99);
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.2;
    color: var(--po-navy, #1c3c63);
    cursor: pointer;
    text-align: center;
    transition: border-color 200ms ease, background 200ms ease;
}
.po-wizard button.wizard-slot-btn:hover,
.po-wizard button.wizard-slot-btn:active,
.po-wizard button.wizard-slot-btn.is-selected {
    color: var(--po-white, #fff) !important;
    border-color: var(--po-primary, #386e99);
    background: var(--po-primary, #386e99) !important;
}
.po-wizard button.wizard-slot-btn.is-selected { box-shadow: 0 0 0 2px rgba(28, 60, 99, 0.12); }
.wizard-day-column__empty {
    min-height: 42px;
    margin: 0;
    color: var(--po-text-muted, #5a5a5a);
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
}
.wizard-mobile-slots { display: none; }

@media (max-width: 640px) {
    .wizard-week-grid { display: none; }
    .wizard-mobile-slots { display: block; }
    .wizard-date-tabs {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.25rem;
        margin-block-end: 1rem;
    }
    .wizard-date-tab {
        min-width: 0;
        min-height: 54px;
        padding: 0.4rem 0.1rem;
        color: var(--po-navy, #1c3c63);
        background: var(--po-white, #fff);
        border: 1px solid var(--po-primary, #386e99);
        border-radius: 6px;
        cursor: pointer;
    }
    .wizard-date-tab span,
    .wizard-date-tab strong { display: block; font-size: 0.6875rem; line-height: 1.35; }
    .wizard-date-tab strong { font-size: 0.875rem; }
    .po-wizard button.wizard-date-tab:hover:not(:disabled),
    .po-wizard button.wizard-date-tab:active:not(:disabled),
    .po-wizard button.wizard-date-tab.is-active { color: var(--po-white, #fff) !important; background: var(--po-primary, #386e99) !important; border-color: var(--po-primary, #386e99); }
    .wizard-date-tab:disabled { cursor: default; opacity: 0.35; }
    .wizard-mobile-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
    .wizard-mobile-times .wizard-day-column__empty { grid-column: 1 / -1; }
}

/* ---- Wait list ---- */
.wizard-waitlist {
    margin-block-start: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid rgba(56, 110, 153, 0.2);
    border-left: 4px solid var(--po-primary, #386e99);
    border-radius: 8px;
}
.wizard-waitlist__form h3 { margin-block: 0 0.5rem; color: var(--po-navy, #1c3c63); }
.wizard-waitlist__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.wizard-waitlist__fields .wizard-input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
.wizard-waitlist__message { min-height: 1.25rem; color: var(--po-navy, #1c3c63); font-weight: 700; }
.wizard-waitlist .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--po-white, #fff);
    background: var(--po-primary, #386e99);
    border: 1px solid var(--po-primary, #386e99);
    border-radius: 6px;
    cursor: pointer;
}
.wizard-waitlist .btn:hover { background: var(--po-navy, #1c3c63); border-color: var(--po-navy, #1c3c63); }

@media (max-width: 600px) {
    .wizard-waitlist__fields { grid-template-columns: 1fr; }
}

/* ---- Consent / checkbox ---- */
.wizard-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.9375rem;
    cursor: pointer;
    color: var(--po-text, #1a1a1a);
}
.wizard-checkbox input { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; cursor: pointer; }

.wizard-booking-summary {
    margin-block-start: 2rem;
    padding-block: 1.25rem;
    border-block: 1px solid rgba(56, 110, 153, 0.24);
}
.wizard-booking-summary h3 {
    margin: 0 0 1rem;
    color: var(--po-navy, #1c3c63);
    font-size: 1.125rem;
}
.wizard-booking-summary dl { margin: 0; }
.wizard-booking-summary dl > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
    gap: 1rem;
    padding-block: 0.55rem;
}
.wizard-booking-summary dt {
    color: var(--po-text-muted, #5a5a5a);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.wizard-booking-summary dd {
    margin: 0;
    color: var(--po-navy, #1c3c63);
    font-weight: 700;
}

@media (max-width: 520px) {
    .wizard-booking-summary dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---- Nav ---- */
.po-wizard__nav { display: flex; gap: 1rem; margin-block-start: 2rem; flex-wrap: wrap; align-items: center; }
.po-wizard__nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--po-navy, #1c3c63);
    background: transparent;
    border: 1px solid var(--po-navy, #1c3c63);
    border-radius: 6px;
    cursor: pointer;
}
.po-wizard__nav .btn--primary {
    color: var(--po-white, #fff);
    background: var(--po-primary, #386e99);
    border-color: var(--po-primary, #386e99);
}
.po-wizard__nav .btn:hover {
    color: var(--po-white, #fff);
    background: var(--po-navy, #1c3c63);
    border-color: var(--po-navy, #1c3c63);
}

/* ---- Confirmation in progress ---- */
.po-wizard__confirming {
    min-height: 300px;
    padding: 3rem 1.5rem;
    text-align: center;
}
.po-wizard__confirming h2 {
    margin: 1.25rem 0 0.75rem;
    color: var(--po-navy, #1c3c63);
    font-size: 1.5rem;
}
.po-wizard__confirming p {
    max-width: 520px;
    margin: 0 auto 0.75rem;
    color: var(--po-text, #1a1a1a);
    line-height: 1.6;
}
.po-wizard__confirming .po-wizard__confirming-note {
    color: var(--po-text-muted, #5a5a5a);
    font-size: 0.875rem;
}
.po-wizard__spinner {
    display: block;
    width: 48px;
    height: 48px;
    margin-inline: auto;
    border: 4px solid rgba(56, 110, 153, 0.2);
    border-top-color: var(--po-primary, #386e99);
    border-radius: 50%;
    animation: po-spinner 900ms linear infinite;
}
@keyframes po-spinner {
    to { transform: rotate(360deg); }
}

/* ---- Result ---- */
.po-wizard__success { text-align: center; padding: 3rem; }
.po-wizard__success-icon { font-size: 4rem; margin-inline: auto; margin-block-end: 1rem; }
.po-wizard__success h2 { color: var(--po-navy, #1c3c63); }

/* ---- Error ---- */
.po-wizard__error {
    background: #fef2f2;
    color: #991b1b;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-block-start: 1rem;
    font-size: 0.9375rem;
}

/* ---- Notice ---- */
.notice { border-radius: 12px; padding: 1rem 1.25rem; }
.notice--warning { background: #fff7ed; color: #92400e; border-left: 4px solid #f59e0b; }

@media (prefers-reduced-motion: reduce) {
    .po-wizard__step { animation: none; }
    .po-wizard__progress-bar { transition: none; }
    .po-wizard__spinner { animation: none; }
}
