/* Is This For Me - Quiz styles */

/* ===========================
   QUIZ LAYOUT
   =========================== */

.quiz-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* ===========================
   SCREEN TRANSITIONS
   =========================== */

.quiz-screen {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.quiz-screen.exiting {
    display: block;
    opacity: 0;
    transform: translateY(-12px);
}

/* ===========================
   INTRO SCREEN
   =========================== */

.quiz-intro {
    text-align: center;
    padding: 40px 20px 60px;
}

.quiz-intro h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.quiz-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 520px;
    margin: 0 auto 40px;
}

/* ===========================
   PROGRESS BAR
   =========================== */

.quiz-progress {
    margin-bottom: 40px;
}

.quiz-progress-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quiz-progress-bar {
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: #34495e;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ===========================
   QUESTION SCREEN
   =========================== */

.quiz-question-text {
    font-size: 22px;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 32px;
    font-family: 'Georgia', serif;
}

.quiz-options {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: block;
    width: 100%;
    padding: 18px 22px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Georgia', serif;
    color: #2c3e50;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.quiz-option:hover {
    background: #ecf0f1;
    border-color: #34495e;
    transform: translateX(4px);
}

/* ===========================
   QUIZ NAV (back button)
   =========================== */

.quiz-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.quiz-back {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    font-family: 'Georgia', serif;
    transition: color 0.2s ease;
}

.quiz-back:hover {
    color: #2c3e50;
}

.quiz-back::before {
    content: '← ';
}

/* ===========================
   RESULT SCREENS
   =========================== */

.result-content {
    text-align: center;
    padding: 40px 20px 60px;
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.result-fit .result-icon {
    background: #e8f5e9;
    color: #2ecc71;
}

.result-notfit .result-icon {
    background: #f8f9fa;
    color: #7f8c8d;
}

.result-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.result-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    max-width: 520px;
    margin: 0 auto 32px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.quiz-restart {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    font-family: 'Georgia', serif;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quiz-restart:hover {
    color: #2c3e50;
}

/* ===========================
   NEWSLETTER FORM (result B)
   =========================== */

.result-newsletter {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px;
    max-width: 420px;
    margin: 0 auto 24px;
}

.result-newsletter p {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
}

.result-newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Georgia', serif;
    color: #2c3e50;
    background: white;
}

.result-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #34495e;
}

.result-newsletter-note {
    font-size: 13px !important;
    color: #7f8c8d !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.result-referral {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 22px;
    max-width: 520px;
    margin: 0 auto 20px;
    text-align: left;
}

/* ===========================
   ACTION BUTTONS (reused)
   =========================== */

.action-button {
    padding: 15px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.action-button.primary {
    background: #34495e;
    color: white;
}

.action-button.primary:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.action-button.secondary {
    background: white;
    color: #34495e;
    border: 2px solid #34495e;
}

.action-button.secondary:hover {
    background: #ecf0f1;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
    .quiz-intro h1 {
        font-size: 28px;
    }

    .quiz-question-text {
        font-size: 19px;
    }

    .quiz-option {
        padding: 16px 18px;
        font-size: 15px;
    }

    .result-content h2 {
        font-size: 24px;
    }

    .result-newsletter-form {
        flex-direction: column;
    }
}
