/* quiz.css — Product Finder Quiz styles. Mobile-first. */

.quiz-page { padding: 24px 0 48px; }

.quiz-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 24px;
}
.quiz-hero h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.quiz-hero h1 i { color: #ff8c00; margin-right: 8px; }
.quiz-lede {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

.quiz-shell {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 20px 18px 16px;
    max-width: 720px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.quiz-progress {
    position: relative;
    height: 8px;
    background: #f0f1f5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}
.quiz-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #ff8c00 0%, #ff6f3c 100%);
    transition: width 0.25s ease;
}
.quiz-progress-label {
    position: absolute;
    top: -22px;
    right: 0;
    font-size: 0.78rem;
    color: #888;
    font-weight: 600;
}

.quiz-step { min-height: 240px; }
.quiz-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 560px) {
    .quiz-options { grid-template-columns: 1fr 1fr; }
}

.quiz-option {
    appearance: none;
    background: #f8f9fb;
    border: 1.5px solid #e6e8ee;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a1a2e;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
}
.quiz-option:hover, .quiz-option:focus-visible {
    border-color: #ff8c00;
    background: #fff7ed;
    transform: translateY(-1px);
    outline: none;
}
.quiz-option:active { transform: translateY(0); }
.quiz-option-label { flex: 1; }
.quiz-option-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 8px;
    flex: 0 0 auto;
}
.quiz-option:hover .quiz-option-count,
.quiz-option:focus-visible .quiz-option-count { color: #ff8c00; border-color: #ffd9a8; }

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    gap: 10px;
}
.quiz-btn {
    appearance: none;
    border: 1.5px solid #e6e8ee;
    background: #fff;
    color: #555;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.quiz-btn:hover:not([disabled]) { border-color: #ff8c00; color: #ff8c00; }
.quiz-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.quiz-btn-primary {
    background: #ff8c00; color: #fff; border-color: #ff8c00;
}
.quiz-btn-primary:hover { background: #ff6f3c; color: #fff; }

.quiz-loading {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 0.95rem;
}
.quiz-loading i { margin-right: 6px; color: #ff8c00; }

.quiz-results {
    max-width: 1100px;
    margin: 0 auto;
}
.quiz-results-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 4px;
}
.quiz-results-title i { color: #ff8c00; margin-right: 6px; }
.quiz-results-sub {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 20px;
}
.quiz-results .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.quiz-results-foot {
    text-align: center;
    margin-top: 24px;
}
.quiz-results-more {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}
.quiz-empty {
    text-align: center;
    padding: 30px 0;
}

.quiz-noscript {
    max-width: 720px;
    margin: 24px auto;
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #ffd9a8;
    border-radius: 12px;
}
.quiz-noscript ul { columns: 2; padding-left: 20px; }

.quiz-faq {
    max-width: 720px;
    margin: 36px auto 0;
}
.quiz-faq h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px;
}
.quiz-faq h2 i { color: #ff8c00; margin-right: 6px; }
.quiz-faq details {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.quiz-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a1a2e;
}
.quiz-faq details[open] summary { margin-bottom: 8px; }
.quiz-faq p { margin: 0; color: #555; font-size: 0.95rem; line-height: 1.55; }

/* Homepage quiz-promo card (used by mobile-home.js + hero CTA) */
.quiz-promo {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1.5px solid #ffd9a8;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
.quiz-promo:hover {
    border-color: #ff8c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.15);
}
.quiz-promo__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ff8c00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.quiz-promo__title {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.92rem;
    line-height: 1.35;
}
.quiz-promo__arrow {
    color: #ff8c00;
    font-size: 1rem;
    flex: 0 0 auto;
}
