/* ===== QUIZ-SPECIFIC STYLES ===== */

/* Quiz Hero Section */
.quiz-hero {
    background: linear-gradient(135deg, #7FB069 0%, #5A8A4C 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: white;
}

.quiz-hero .hero-title {
    color: white;
    font-size: 42px;
    line-height: 1.3;
}

.quiz-hero .hero-tagline {
    color: white;
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto var(--spacing-sm);
    font-size: 22px;
}

.hero-research {
    color: white;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 16px;
    font-style: italic;
}

.hero-research .ref-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    opacity: 1;
}

.hero-research .ref-link:hover {
    text-decoration: underline;
}

.hero-benefits {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    text-align: left;
}

.benefit-item {
    font-size: 18px;
    margin-bottom: 12px;
    padding-left: 8px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.quiz-subtext {
    margin-top: var(--spacing-sm);
    font-size: 14px;
    opacity: 0.9;
}

.cta-benefits {
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xs);
    text-align: left;
}

.cta-benefit {
    font-size: 14px;
    color: white;
    opacity: 0.95;
}

/* Credibility Section */
.credibility-section {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.credibility-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--background);
    border: 2px solid var(--primary);
    border-radius: var(--radius-card);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.stat-description {
    font-size: 16px;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.stat-source {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    font-style: italic;
    line-height: 1.5;
}

.stat-source a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
}

.stat-source a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.credibility-conclusion {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

/* Discovery Section */
.discovery-section {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.feature-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.cta-center {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* How It Works Simple */
.how-works-simple {
    padding: var(--spacing-xl) 0;
    background-color: var(--background);
}

.simple-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.simple-step {
    text-align: center;
}

.step-number-simple {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.simple-step h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.simple-step p {
    font-size: 16px;
    color: var(--text);
    opacity: 0.8;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--secondary-sky) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.final-cta p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* ===== QUIZ INTERFACE ===== */

.quiz-container {
    min-height: 80vh;
    padding: var(--spacing-xl) 0;
    background-color: var(--background);
}

.quiz-content {
    max-width: 800px;
}

/* Progress Bar */
.progress-wrapper {
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E8E8E8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    opacity: 0.7;
}

/* Question Card */
.question-card {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.question-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

/* Quiz Options */
.question-options {
    margin-bottom: var(--spacing-lg);
}

.quiz-option {
    background: white;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quiz-option:hover {
    border-color: var(--primary);
    background-color: rgba(127, 176, 105, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background-color: rgba(127, 176, 105, 0.1);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.quiz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-option label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    padding-left: 32px;
    position: relative;
}

.quiz-option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #CCC;
    border-radius: 50%;
    background: white;
}

.quiz-option.selected label::before {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: inset 0 0 0 4px white;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.btn-secondary {
    background-color: white;
    color: var(--text);
    border: 2px solid #E8E8E8;
}

.btn-secondary:hover {
    background-color: var(--background);
    border-color: var(--text);
}

.quiz-navigation .btn {
    flex: 1;
}

.quiz-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-navigation .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== EMAIL CAPTURE SECTION ===== */

.email-capture-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--secondary-sky) 100%);
    padding: var(--spacing-xl) 0;
}

.email-capture-card {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--spacing-xl);
    max-width: 600px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.email-capture-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.email-intro {
    font-size: 18px;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.email-capture-form {
    margin-bottom: var(--spacing-sm);
}

.email-input-large {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-button);
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    outline: none;
    transition: border-color 0.3s ease;
}

.email-input-large:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.privacy-note {
    font-size: 14px;
    color: var(--text);
    opacity: 0.6;
}

/* ===== RESULTS SECTION ===== */

.results-hero {
    background-color: var(--background);
    padding: var(--spacing-xl) 0;
}

.results-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Overall Score Display */
.score-display {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.score-circle {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
}

.score-label {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.score-description {
    font-size: 18px;
    color: var(--text);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Scores */
.category-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.category-score-bar {
    width: 100%;
    height: 12px;
    background-color: #E8E8E8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.category-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 0%;
    transition: width 1s ease;
    border-radius: 10px;
}

.category-score-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.category-score-number::after {
    content: '%';
    font-size: 18px;
    opacity: 0.7;
}

/* Insights Section */
.insights-section {
    margin-bottom: var(--spacing-xl);
}

.insight-card {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.insight-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.insight-content p {
    font-size: 16px;
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}

/* Results CTA */
.results-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-card);
    padding: var(--spacing-xl);
    text-align: center;
    color: white;
}

.results-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.results-cta p {
    font-size: 18px;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.results-cta .btn-primary {
    background-color: white;
    color: var(--primary);
}

.results-cta .btn-primary:hover {
    background-color: var(--background);
    color: var(--primary-dark);
}

.trial-details {
    margin-top: var(--spacing-sm);
    font-size: 14px;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .quiz-hero,
    .credibility-section,
    .discovery-section,
    .how-works-simple,
    .final-cta,
    .quiz-container,
    .results-hero {
        padding: var(--spacing-lg) 0;
    }

    .quiz-hero .hero-title {
        font-size: 32px;
    }

    .quiz-hero .hero-tagline {
        font-size: 18px;
    }

    .hero-research {
        font-size: 15px;
    }

    .cta-benefits {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 17px;
        width: 100%;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-title {
        font-size: 20px;
    }

    .credibility-intro,
    .credibility-conclusion {
        font-size: 16px;
    }

    .final-cta h2,
    .results-title {
        font-size: 32px;
    }

    .question-title {
        font-size: 24px;
    }

    .email-capture-card {
        padding: var(--spacing-lg);
    }

    .email-capture-card h2 {
        font-size: 28px;
    }

    .score-number {
        font-size: 48px;
    }

    .score-label {
        font-size: 24px;
    }

    .category-scores {
        grid-template-columns: 1fr;
    }


    .simple-steps {
        grid-template-columns: 1fr;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .results-cta h2 {
        font-size: 28px;
    }

    .hero-benefits {
        text-align: center;
    }

    .benefit-item {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .quiz-hero .hero-title,
    .final-cta h2 {
        font-size: 28px;
    }

    .question-title {
        font-size: 20px;
    }

    .quiz-option label {
        font-size: 15px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    .score-number {
        font-size: 40px;
    }

    .results-title {
        font-size: 28px;
    }

    .email-capture-card h2 {
        font-size: 24px;
    }
}
