/* -- Wizard Styles (Adapted for usnationaltax.com) -- */
:root {
    /* Theme: Presidential (Navy/Crimson/Gold) */
    /* --primary-navy: #0a192f */
    /* --primary-red: #b91c1c */
    /* --accent-gold: #d4af37 */

    --wiz-primary: #b91c1c;
    /* Crimson Red */
    --wiz-primary-dark: #991b1b;
    --wiz-accent: #d4af37;
    /* Gold */
    --wiz-accent-dark: #b45309;

    --wiz-bg: #ffffff;
    --wiz-text: #0a192f;
    /* Navy Text */
    --wiz-text-muted: #64748b;
    --wiz-border: #e2e8f0;
    --wiz-input-bg: #f8fafc;

    --wiz-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --wiz-radius: 4px;
    /* Sharper corners for authoritative look */

    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
}

.bst-flow {
    font-family: var(--font-body);
    color: var(--wiz-text);
    background: var(--wiz-bg);
    border: 1px solid var(--wiz-border);
    border-top: 4px solid var(--wiz-primary);
    /* Presidential touch */
    box-shadow: var(--wiz-shadow);
    width: 100%;
    max-width: 750px;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    text-align: left;
}

.bst-flow header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bst-flow h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--wiz-text);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bst-progress {
    height: 6px;
    background: #e2e8f0;
    margin: 10px 0 20px;
}

.bst-progress>span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--wiz-primary);
    /* Crimson bar */
    transition: width .35s;
}

.bst-step {
    display: none;
    animation: .3s ease fadeIn;
}

.bst-step.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bst-question {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 10px 0 8px;
    font-family: var(--font-heading);
    color: var(--wiz-text);
}

.bst-sub {
    color: var(--wiz-text-muted);
    font-size: 1rem;
    margin: -4px 0 20px;
}

.bst-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bst-chip {
    border: 1px solid #cbd5e1;
    border-radius: var(--wiz-radius);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    background: #fff;
    transition: .2s;
    font-family: var(--font-body);
    font-size: 1rem;
}

.bst-chip:hover {
    border-color: var(--wiz-primary);
    color: var(--wiz-primary);
    background: #fffafa;
}

.bst-chip.is-selected {
    background: var(--wiz-primary);
    color: #fff;
    border-color: var(--wiz-primary);
    box-shadow: 0 4px 6px rgba(185, 28, 28, 0.2);
}

.bst-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bst-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.bst-field .full {
    grid-column: 1 / -1;
}

.bst-input {
    width: 100%;
    border: 2px solid #cbd5e1;
    border-radius: var(--wiz-radius);
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--wiz-input-bg);
    color: var(--wiz-text);
}

.bst-input:focus {
    outline: none;
    border-color: var(--wiz-primary);
    background: #fff;
}

.bst-select {
    appearance: none;
    background: var(--wiz-input-bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23475569" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center;
    background-size: 16px;
}

.bst-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

/* Wizard Buttons */
.wiz-btn {
    padding: 14px 30px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    width: auto;
    transition: all 0.2s;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.wiz-btn.primary {
    background: var(--wiz-primary);
    color: #fff;
}

.wiz-btn.primary:hover {
    background: var(--wiz-primary-dark);
}

.wiz-btn.ghost {
    background: transparent;
    border-color: #cbd5e1;
    color: var(--wiz-text-muted);
}

.wiz-btn.ghost:hover {
    border-color: var(--wiz-primary);
    color: var(--wiz-primary);
}

.bst-kicker {
    font-size: 0.8rem;
    color: var(--wiz-text-muted);
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

.bst-error {
    color: var(--wiz-primary);
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    font-weight: 700;
}

.bst-error.is-show {
    display: block;
}

.bst-success {
    display: none;
    text-align: center;
    padding: 50px 20px;
}

.bst-success.is-show {
    display: block;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    .bst-options {
        grid-template-columns: 1fr;
    }

    .bst-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .bst-field {
        grid-template-columns: 1fr;
    }

    .bst-flow {
        width: 100%;
        padding: 1.5rem;
    }

    .wiz-btn {
        width: 100%;
    }

    .bst-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }
}