/* ============================================================
   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;
}

@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 rgba(56, 110, 153, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.wizard-mode-option input { position: absolute; opacity: 0; }
.wizard-mode-option:has(input:checked) {
    border-color: var(--po-navy, #1c3c63);
    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); }

/* ---- 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-slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.wizard-slot-btn {
    padding: 0.75rem;
    background: var(--po-white, #fff);
    border: 2px solid rgba(56, 110, 153, 0.2);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--po-navy, #1c3c63);
    cursor: pointer;
    text-align: center;
    transition: border-color 200ms ease, background 200ms ease;
}
.wizard-slot-btn:hover,
.wizard-slot-btn.is-selected {
    border-color: var(--po-navy, #1c3c63);
    background: var(--po-cream, #feeae1);
}

/* ---- 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; }

/* ---- AIM sliders ---- */
.wizard-aim { display: flex; flex-direction: column; gap: 1.5rem; }
.wizard-aim__item label { display: block; font-weight: 600; margin-block-end: 0.5rem; color: var(--po-navy, #1c3c63); }
.wizard-aim__scale { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--po-text-muted, #5a5a5a); }
.wizard-aim__slider { width: 100%; accent-color: var(--po-primary, #386e99); }

/* ---- Payment ---- */
.po-payment-halaxy__iframe-wrap { aspect-ratio: 4/3; margin-block: 1rem; }
.po-payment-halaxy__iframe { width: 100%; height: 100%; border: 2px solid rgba(56, 110, 153, 0.2); border-radius: 12px; }
.po-medicare { border: none; padding: 0; margin-block-start: 1.5rem; }
.po-medicare legend { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--po-text-muted, #5a5a5a); margin-block-end: 0.75rem; }

/* ---- Nav ---- */
.po-wizard__nav { display: flex; gap: 1rem; margin-block-start: 2rem; flex-wrap: wrap; align-items: center; }

/* ---- 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; }
}
