/* -- Wizard Styles (Adapted for tax-usllc.com) -- */
:root {
    /* Theme: Warm & Human */
    /* --color-primary: #475569 (Slate Blue) */
    /* --color-accent: #d97706 (Amber) */

    --wiz-primary: #475569;
    --wiz-primary-dark: #334155;
    --wiz-accent: #d97706;
    --wiz-accent-dark: #b45309;

    --wiz-gray-900: #292524;
    --wiz-gray-700: #57534e;
    --wiz-gray-600: #78716c;
    --wiz-gray-200: #e7e5e4;
    --wiz-white: #ffffff;

    --wiz-shadow: 0 10px 30px rgba(67, 48, 25, 0.08);
    /* Warm shadow */
    --wiz-radius: 16px;

    /* Font override just for wizard to match site */
    --font-heading: 'Lora', serif;
    --font-body: 'Nunito Sans', sans-serif;
}

.bst-flow {
    font-family: var(--font-body);
    color: var(--wiz-gray-900);
    background: #fff;
    border: 1px solid var(--wiz-gray-200);
    border-radius: 20px;
    box-shadow: var(--wiz-shadow);
    width: 100%;
    max-width: 750px;
    /* Matching the approved width from previous site */
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    text-align: left;
}

.bst-flow header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bst-flow h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--wiz-gray-700);
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: italic;
}

.bst-progress {
    height: 6px;
    background: #f5f5f4;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 15px;
}

.bst-progress>span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--wiz-primary), var(--wiz-accent));
    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.3rem;
    font-weight: 600;
    margin: 10px 0 8px;
    font-family: var(--font-heading);
    color: var(--wiz-primary);
}

.bst-sub {
    color: var(--wiz-gray-600);
    font-size: 0.95rem;
    margin: -4px 0 16px;
}

.bst-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bst-chip {
    border: 2px solid var(--wiz-gray-200);
    border-radius: 12px;
    padding: 14px 10px;
    /* Slightly larger padding */
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--wiz-gray-700);
    background: #fafaf9;
    transition: .2s;
    font-family: var(--font-body);
    font-size: 1rem;
}

.bst-chip:hover {
    border-color: var(--wiz-primary);
    color: var(--wiz-primary);
    background: white;
}

.bst-chip.is-selected {
    background: var(--wiz-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

.bst-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bst-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.bst-field .full {
    grid-column: 1 / -1;
}

.bst-input {
    width: 100%;
    border: 2px solid var(--wiz-gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: #fafaf9;
    color: var(--wiz-gray-900);
}

.bst-input:focus {
    outline: none;
    border-color: var(--wiz-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.bst-select {
    appearance: none;
    background: #fafaf9 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: 10px;
    margin-top: 25px;
}

/* Wizard Buttons */
.wiz-btn {
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: var(--font-body);
}

.wiz-btn.primary {
    background: var(--wiz-accent);
    /* Use amber for action buttons */
    color: #fff;
}

.wiz-btn.primary:hover {
    background: var(--wiz-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.wiz-btn.ghost {
    background: transparent;
    border-color: var(--wiz-gray-200);
    color: var(--wiz-gray-600);
}

.wiz-btn.ghost:hover {
    border-color: var(--wiz-primary);
    color: var(--wiz-primary);
    background: white;
}

.bst-kicker {
    font-size: 0.8rem;
    color: var(--wiz-gray-600);
    text-align: center;
    margin-top: 15px;
}

.bst-error {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    font-weight: 600;
}

.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%;
        border-radius: 12px;
        padding: 1.25rem;
    }
}