/**
 * Main Stylesheet
 * Mobile-first responsive design
 * Color Scheme: Deep Green (#0D4F2B) + Teal Accent (#1AACB8)
 * Fonts: Lato (body), Playfair Display (headlines)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-primary: #0D4F2B;
    --color-primary-dark: #0A3D21;
    --color-primary-light: #106535;
    --color-accent: #1AACB8;
    --color-accent-dark: #148E98;
    --color-accent-light: #2BC4D2;

    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray-100: #F7F7F7;
    --color-gray-200: #E5E5E5;
    --color-gray-300: #D4D4D4;
    --color-gray-400: #A3A3A3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;

    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Text Colors - Improved Contrast */
    --color-text-primary: #111111;
    --color-text-body: #0C2A1F;
    --color-text-secondary: #404040;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-modal: 1000;
    --z-loading: 800;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-body);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 1.75rem; /* 28px mobile */
    font-weight: 700;
}

h2 {
    font-size: 1.5rem; /* 24px mobile */
    font-weight: 600;
}

h3 {
    font-size: 1.25rem; /* 20px mobile */
    font-weight: 600;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.25rem; /* 36px desktop */
    }

    h2 {
        font-size: 2rem; /* 32px desktop */
    }

    h3 {
        font-size: 1.5rem; /* 24px desktop */
    }
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px; /* Reduced for more content width on mobile */
    min-height: 100vh;
}

@media (min-width: 768px) {
    .app-container {
        padding: var(--spacing-xl);
    }
}

/* ============================================
   LOGO SECTION
   ============================================ */
.logo-section {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-sm);
}

.logo {
    max-width: 120px;
    height: auto;
}

.funnel-header-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

.funnel-header-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-top: var(--spacing-xs);
    font-weight: 400;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .logo {
        max-width: 280px;
    }

    .funnel-header-title {
        font-size: 2.5rem;
    }

    .funnel-header-subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    transition: opacity var(--transition-normal);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: var(--spacing-lg);
    color: var(--color-gray-600);
    font-size: 1rem;
}

/* ============================================
   ERROR SCREEN
   ============================================ */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-2xl);
    background-color: var(--color-background);
    z-index: var(--z-modal);
}

.error-screen.hidden {
    display: none;
}

.error-domain {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
}

.error-title {
    font-size: 3rem;
    color: #DC2626;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.error-message {
    font-size: 1.75rem;
    color: var(--color-gray-600);
    max-width: 500px;
    line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    min-height: 52px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem; /* 16px mobile */
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .btn {
        min-height: 60px;
        font-size: 1.125rem; /* 18px desktop */
    }
}

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

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-gray-300);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--spacing-xs);
    vertical-align: middle;
}

/* ============================================
   QUIZ CONTAINER - HORIZONTAL CAROUSEL
   ============================================ */
.quiz-container {
    min-height: 400px;
    position: relative;
    width: 100%;
    overflow: hidden; /* Prevent cards from showing outside carousel */
}

.quiz-carousel-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide cards outside viewport */
    position: relative;
}

.quiz-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.quiz-question-card {
    width: calc(100% - 12px); /* Card width minus gap */
    min-width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    max-height: calc(100vh - 80px); /* Fit within viewport */
    overflow-y: auto; /* Scroll internally if needed */
    flex-shrink: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 16px; /* Reduced from 24px */
    box-shadow: var(--shadow-xl);
    box-sizing: border-box;
    margin-right: 12px; /* Gap between cards */
}

.quiz-question-card:first-child {
    margin-left: 0; /* Container padding handles left spacing */
}

@media (min-width: 768px) {
    .quiz-question-card {
        width: calc(100% - var(--spacing-lg) * 2);
        min-width: calc(100% - var(--spacing-lg) * 2);
        max-width: calc(100% - var(--spacing-lg) * 2);
        padding: var(--spacing-xl); /* 32px */
        margin-right: var(--spacing-lg);
    }

    .quiz-question-card:first-child {
        margin-left: var(--spacing-lg);
    }
}

/* Quiz Card Header (Logo/Title) */
.quiz-card-header {
    padding: 0;
    margin-bottom: 16px; /* Reduced from 32px */
    text-align: center;
}

.quiz-card-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .quiz-card-logo {
        max-width: 250px;
    }
}

.quiz-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* 24px mobile */
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.25;
}

.quiz-card-subtitle {
    font-size: 1rem; /* 16px mobile */
    color: var(--color-text-secondary);
    margin: var(--spacing-sm) 0 0 0;
    line-height: 1.4;
    font-weight: 500;
}

@media (min-width: 768px) {
    .quiz-card-title {
        font-size: 2rem; /* 32px desktop */
    }

    .quiz-card-subtitle {
        font-size: 1.125rem; /* 18px desktop */
    }
}

/* Swipe Indicators */
.swipe-indicator {
    position: fixed;
    bottom: 24px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.swipe-indicator-left {
    left: 24px;
}

.swipe-indicator-right {
    right: 24px;
}

.swipe-indicator-content {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--color-white);
    background: rgba(13, 79, 43, 0.9);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swipe-arrow {
    font-size: 1.25rem;
}

.swipe-text {
    font-size: 0.75rem;
}

/* Hide swipe indicators on desktop */
@media (min-width: 768px) {
    .swipe-indicator {
        display: none;
    }
}

/* Back Button */
.quiz-nav-back-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-lg);
}

.quiz-nav-back-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateX(-4px);
}

.nav-icon {
    font-size: 1.25rem;
}

/* Hide back button on mobile (use swipe instead) */
@media (max-width: 767px) {
    .quiz-nav-back-btn {
        display: none;
    }
}

.quiz-question-title {
    font-family: var(--font-heading);
    font-size: 1.375rem; /* 22px mobile */
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px; /* Reduced from 16px */
    line-height: 1.25;
}

.quiz-question-subtitle {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .quiz-question-title {
        font-size: 1.75rem; /* 28px desktop */
    }

    .quiz-question-subtitle {
        font-size: 0.9375rem; /* 15px desktop */
    }
}

/* ============================================
   QUESTION SUBTITLE
   ============================================ */
.quiz-question-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-style: italic;
    margin-top: calc(var(--spacing-xs) * -1);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* ============================================
   ANSWER OPTIONS
   ============================================ */
.quiz-answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px; /* Reduced from 32px */
}

.quiz-answer-btn {
    width: 100%;
    min-height: 48px; /* Minimum tap target */
    padding: 14px var(--spacing-md);
    background: var(--color-gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px mobile */
    font-weight: 500;
    color: var(--color-text-body);
    line-height: 1.4;
    will-change: transform, background, border-color;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .quiz-answers-container {
        gap: 16px;
    }

    .quiz-answer-btn {
        min-height: 56px; /* Larger tap target on desktop */
        padding: 16px var(--spacing-lg);
        font-size: 1.125rem; /* 18px desktop */
    }
}

.quiz-answer-btn:hover {
    background: var(--color-white);
    border-color: var(--color-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.quiz-answer-btn:active {
    transform: scale(0.98);
}

.quiz-answer-btn.quiz-answer-selected {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border: 3px solid var(--color-accent-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    animation: answerPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes answerPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Multi-select answer buttons */
.quiz-answer-btn.quiz-answer-multiselect {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.quiz-answer-btn.quiz-answer-multiselect .answer-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--color-gray-400);
    border-radius: 3px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.quiz-answer-btn.quiz-answer-multiselect.quiz-answer-selected .answer-checkbox {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.quiz-answer-btn.quiz-answer-multiselect.quiz-answer-selected .answer-checkbox::after {
    content: '✓';
    color: var(--color-white);
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.quiz-answer-btn.quiz-answer-multiselect .answer-text {
    flex: 1;
}

/* Continue button for multi-select questions */
.quiz-continue-btn {
    width: 100%;
    min-height: 52px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px mobile */
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .quiz-continue-btn {
        min-height: 60px;
        font-size: 1.125rem; /* 18px desktop */
    }
}

.quiz-continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quiz-continue-btn:active:not(:disabled) {
    transform: translateY(0);
}

.quiz-continue-btn:disabled,
.quiz-continue-btn.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quiz-back-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.quiz-back-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ============================================
   CONTACT FORM (FINAL PAGE)
   ============================================ */
.contact-form-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* 24px mobile */
    font-weight: 600;
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.25;
}

.contact-form-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9375rem; /* 15px mobile */
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .contact-form-title {
        font-size: 2rem; /* 32px desktop */
    }

    .contact-form-subtitle {
        font-size: 1rem; /* 16px desktop */
    }
}

.contact-form {
    margin-top: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-body);
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
}

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-body);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .form-label {
        font-size: 0.9375rem; /* 15px desktop */
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-errors-container {
    margin-bottom: var(--spacing-lg);
}

.form-error {
    padding: var(--spacing-sm) var(--spacing-md);
    background: #FEE2E2;
    border-left: 4px solid var(--color-error);
    color: #991B1B;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.form-warning {
    padding: var(--spacing-sm) var(--spacing-md);
    background: #FEF3C7;
    border-left: 4px solid var(--color-warning);
    color: #92400E;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.contact-submit-btn {
    margin-top: var(--spacing-md);
}

.contact-form-disclaimer {
    text-align: center;
    font-size: 0.8125rem; /* 13px */
    color: var(--color-text-secondary);
    margin-top: var(--spacing-lg);
    line-height: 1.4;
}

.contact-success-container {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    animation: fadeIn 0.6s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto var(--spacing-lg);
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-success);
}

.success-message {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

.success-redirect {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    margin-top: var(--spacing-lg);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-lg);
    backdrop-filter: blur(4px);
}

.modal-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease-out;
}

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

/* Age Gate */
.age-gate-content {
    padding: var(--spacing-xl);
}

.age-gate-header {
    margin-bottom: var(--spacing-lg);
}

.age-gate-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    color: var(--color-primary);
    text-align: center;
}

.age-gate-body {
    margin-bottom: var(--spacing-xl);
}

.age-gate-message {
    font-size: 1.0625rem;
    color: var(--color-gray-700);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.age-gate-disclaimer {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    text-align: center;
}

.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.age-gate-btn-confirm,
.age-gate-btn-reject {
    width: 100%;
}

/* GDPR Consent Modal */
.gdpr-consent-content {
    padding: var(--spacing-xl);
}

.gdpr-consent-header {
    margin-bottom: var(--spacing-lg);
}

.gdpr-consent-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    text-align: center;
}

.gdpr-consent-body {
    margin-bottom: var(--spacing-xl);
}

.gdpr-consent-message {
    font-size: 1rem;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-lg);
}

.gdpr-consent-checkbox-container {
    background: var(--color-gray-100);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.gdpr-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.gdpr-consent-checkbox {
    margin-right: var(--spacing-sm);
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gdpr-consent-label-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-gray-700);
}

.gdpr-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}

.gdpr-link:hover {
    color: var(--color-accent-dark);
}

.gdpr-rights-info {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-200);
}

.gdpr-rights-text {
    margin-bottom: var(--spacing-sm);
}

.ccpa-notice {
    margin-top: var(--spacing-sm);
}

.ccpa-link {
    font-weight: 600;
}

.gdpr-consent-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Policy Modals */
.policy-modal-container {
    max-width: 700px;
    max-height: 80vh;
}

.policy-modal-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.policy-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.policy-close-btn:hover {
    color: var(--color-gray-800);
}

.policy-modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.policy-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray-700);
}

.policy-content h1,
.policy-content h2,
.policy-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.policy-content p {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

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

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

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

/* Small mobile devices (iPhone SE, small Androids) */
@media (max-width: 375px) {
    :root {
        font-size: 14px;
    }

    .quiz-question-container {
        padding: var(--spacing-md);
    }

    .quiz-question-title {
        font-size: 1.25rem; /* 17.5px - fits better on small screens */
        line-height: 1.25;
    }

    .quiz-question-subtitle {
        font-size: 0.875rem; /* 12.25px */
    }

    .quiz-answer-btn {
        padding: var(--spacing-md);
        font-size: 0.9375rem; /* 13.125px */
    }
}

/* Medium mobile devices (iPhone 12/13, most Androids) */
@media (min-width: 376px) and (max-width: 480px) {
    :root {
        font-size: 15px;
    }

    .quiz-question-container {
        padding: var(--spacing-lg);
    }

    .quiz-question-title {
        font-size: 1.4rem; /* 21px */
    }

    .quiz-answer-btn {
        font-size: 0.95rem; /* 14.25px */
    }
}

/* Larger phones and small tablets */
@media (min-width: 481px) and (max-width: 767px) {
    .quiz-question-title {
        font-size: 1.75rem; /* 28px */
    }
}
