/*
 * Onboarding Wizard — inline multi-step registration flow
 */

/* ── Container ───────────────────────────────────────────────────── */
.wizard-container {
    padding-bottom: 2rem;
}

/* ── Card chrome ─────────────────────────────────────────────────── */
.wizard-modal {
    border: 1px solid var(--sj-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(107, 79, 54, 0.15);
    background: var(--sj-white, #fff);
}

/* ── Progress bar ────────────────────────────────────────────────── */
.wizard-progress {
    height: 4px;
    background: var(--sj-border);
}
.wizard-progress-bar {
    height: 100%;
    background: var(--sj-honey);
    transition: width 0.4s ease;
    border-radius: 0 2px 2px 0;
}

/* ── Body ────────────────────────────────────────────────────────── */
.wizard-body {
    padding: 2rem 2rem 1rem;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Step transitions ────────────────────────────────────────────── */
.wizard-step {
    animation: wizardFadeIn 0.3s ease;
}
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Headings ────────────────────────────────────────────────────── */
.wizard-heading {
    color: var(--sj-warm-brown);
    font-weight: 700;
    font-size: 1.35rem;
}

/* ── Footer / navigation ────────────────────────────────────────── */
.wizard-footer {
    padding: 1rem 2rem;
    background: var(--sj-cream);
    display: flex;
    align-items: center;
}

/* ── Pricing card (step 2) ───────────────────────────────────────── */
.wizard-pricing-card {
    background: var(--sj-white);
    border: 1px solid var(--sj-border);
    border-radius: 12px;
    padding: 1.25rem;
}

/* ── Legal summary (steps 3 & 4) ───────────────────────────────── */
.wizard-legal-summary {
    background: var(--sj-honey-bg);
    border: 1px solid var(--sj-honey-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.wizard-legal-summary p {
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
}

/* ── Search results (step 5) ────────────────────────────────────── */
.wizard-search-results {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 10px;
}
.wizard-search-results .list-group-item {
    border-color: var(--sj-border);
    padding: 0.65rem 0.85rem;
}
.wizard-search-results .list-group-item:hover,
.wizard-search-results .list-group-item:focus {
    background: var(--sj-honey-bg);
}
.wizard-search-results .list-group-item.active {
    background: var(--sj-honey-light);
    border-color: var(--sj-honey);
    color: var(--sj-warm-brown);
}

/* ── Pension detail card ────────────────────────────────────────── */
.wizard-pension-detail .card {
    border-radius: 10px;
}

/* ── Form switches (step 8) ─────────────────────────────────────── */
.wizard-step .form-check-input:checked {
    background-color: var(--sj-honey);
    border-color: var(--sj-honey);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .wizard-body {
        padding: 1.5rem 1.25rem 0.75rem;
        min-height: 460px;
    }
    .wizard-footer {
        padding: 0.75rem 1.25rem;
    }
    .wizard-heading {
        font-size: 1.2rem;
    }
}

/* ── Shake animation for validation ─────────────────────────────── */
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake-animation {
    animation: shakeX 0.4s ease;
}
