/* ============================================
   ZRTS Guide Rod Selection Wizard — Styles
   Brand: Dark tactical aesthetic, orange accent
   ============================================ */

:root {
    --bg-primary: #111111;
    --bg-card: #1a1a1a;
    --bg-step: #222222;
    --bg-step-hover: #282828;
    --accent: #EC7F1E;
    --accent-hover: #d96f14;
    --accent-glow: rgba(236, 127, 30, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border-subtle: #333333;
    --select-bg: #2a2a2a;
    --select-border: #444444;
    --rec-bg: #1e2a1e;
    --rec-border: #2d5a2d;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    line-height: 1.5;
}

/* Wizard Container */
#wizard-container {
    width: 100%;
    max-width: 620px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
}

/* Header */
#wizard-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-bar {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

#wizard-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Wizard Steps */
.wizard-step {
    background: var(--bg-step);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    transition: opacity var(--transition), transform var(--transition);
}

.wizard-step.hidden {
    display: none;
}

.wizard-step.visible {
    animation: stepReveal 0.35s ease forwards;
}

@keyframes stepReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Select Dropdowns */
.wizard-step select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    background: var(--select-bg);
    color: var(--text-primary);
    border: 1px solid var(--select-border);
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23EC7F1E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.wizard-step select:hover {
    border-color: var(--accent);
}

.wizard-step select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.wizard-step select option {
    background: var(--select-bg);
    color: var(--text-primary);
    padding: 8px;
}

/* Recommendation Card */
#recommendation {
    text-align: center;
    background: var(--rec-bg);
    border: 1px solid var(--rec-border);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    margin-top: 20px;
    margin-bottom: 12px;
}

#recommendation.hidden {
    display: none;
}

#recommendation.visible {
    animation: stepReveal 0.4s ease forwards;
}

.rec-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

#rec-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

#rec-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(236, 127, 30, 0.35);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Start Over Button */
#btn-reset {
    display: block;
    width: 100%;
    padding: 12px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    margin-bottom: 24px;
}

#btn-reset:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

#btn-reset.hidden {
    display: none;
}

/* Footer */
#wizard-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

#wizard-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

#wizard-footer strong {
    color: var(--accent);
}

.disclaimer {
    font-size: 0.75rem !important;
    font-style: italic;
    color: var(--text-muted) !important;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 16px 8px;
    }

    #wizard-container {
        padding: 20px 16px;
        border-radius: var(--border-radius);
    }

    #wizard-header h1 {
        font-size: 1.35rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .wizard-step {
        padding: 16px;
    }

    .wizard-step select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    #rec-title {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}
