/* Wizard styles — extends quote.css. */

.wizard-page { padding-bottom: 4rem; }
.wizard-container { max-width: 880px; }

.wizard-header { margin-bottom: 1.5rem; }
.wizard-header h1 { margin-bottom: 0.5rem; }
.wizard-header .lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 60ch;
}
.quote-eyebrow {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}
.quote-eyebrow a { color: var(--text-muted); text-decoration: none; }
.quote-eyebrow a:hover { color: var(--accent-cyan); }

.wizard-progress {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.wizard-progress-bar {
    height: 100%;
    width: 12.5%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
    transition: width 0.3s ease;
}
.wizard-progress-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Each step is in the DOM but only the active one is shown */
.wizard-step { display: none; animation: wizardFadeIn 0.2s ease; }
.wizard-step[data-active="true"] { display: block; }
@@keyframes wizardFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wizard-step h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.wizard-step-help {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

/* Small (i) icon variant for chips/pills/flags */
.info-icon-sm {
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.65rem;
    margin-left: 0.35rem;
}
/* Decorative inline (i) for body text — not clickable */
.info-icon-inline {
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.65rem;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-style: italic;
    font-family: Georgia, serif;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.info-icon-inline span { transform: translateY(-1px); }

/* Tile title row holds the label + (i) inline */
.wizard-tile-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Tiles for project type */
.wizard-tile-group { margin-bottom: 1.5rem; }
.wizard-tile-group-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.wizard-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}
.wizard-tile {
    display: flex;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
}
.wizard-tile:hover { border-color: var(--accent-cyan); }
.wizard-tile input { position: absolute; opacity: 0; pointer-events: none; }
.wizard-tile-body { display: flex; flex-direction: column; gap: 0.15rem; }
.wizard-tile-title { font-weight: 600; color: var(--text-primary); }
.wizard-tile-desc { color: var(--text-secondary); font-size: 0.85rem; }
.wizard-tile:has(input:checked) {
    border-color: var(--accent-cyan);
    background: var(--bg-surface, var(--bg-elevated));
    box-shadow: 0 0 0 1px var(--accent-cyan) inset;
}

/* Pills for radio sets (size, lead source, page scale, etc.) */
.wizard-radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.wizard-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--bg-elevated);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wizard-pill:hover { border-color: var(--accent-cyan); }
.wizard-pill input { position: absolute; opacity: 0; pointer-events: none; }
.wizard-pill:has(input:checked) {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: white;
}
.wizard-pill:has(input:checked) .info-icon {
    border-color: rgba(255,255,255,0.7);
    color: white;
}
.wizard-pill:has(input:checked) .info-icon:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
}

/* Chips for multi-select fields */
.wizard-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.wizard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: var(--bg-elevated);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.15s, background 0.15s;
}
.wizard-chip:hover { border-color: var(--accent-cyan); }
.wizard-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wizard-chip:has(input:checked) {
    border-color: var(--accent-cyan);
    background: rgba(8, 145, 178, 0.12);
}
.wizard-chip:has(input:checked) .chip-label::before {
    content: "✓ ";
    color: var(--accent-cyan);
    font-weight: bold;
}
.wizard-chip:has(input:checked) .info-icon {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
.chip-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Fieldsets */
.wizard-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.wizard-fieldset legend {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0;
}

.wizard-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.wizard-grid-2 { grid-template-columns: 1fr 1fr; }
@@media (max-width: 640px) {
    .wizard-grid-2 { grid-template-columns: 1fr; }
}

/* Boolean flags */
.wizard-flag-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wizard-flag-row-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.wizard-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: var(--bg-elevated);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.wizard-flag input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent-cyan);
}

/* Review summary */
.wizard-review-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-cyan);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.wizard-review-summary h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}
.wizard-review-summary ul { margin: 0; padding-left: 1.25rem; }
.wizard-review-summary li { padding: 0.15rem 0; }
.wizard-review-empty { color: var(--text-muted); font-style: italic; }
.wizard-final-note { color: var(--text-muted); font-size: 0.85rem; }

/* Action bar */
.wizard-actions {
    position: sticky;
    bottom: 0;
    padding: 1rem 0;
    background: linear-gradient(to top, var(--bg-deep) 70%, transparent);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2rem;
}
.wizard-actions .btn { min-width: 8rem; }
#wizardNextBtn, #wizardSubmitBtn { margin-left: auto; }

.req { color: var(--accent-orange); }

/* Splitter-page styles moved to quote.css so the splitter landing (/quote/) actually picks them up. */
