/* ========================================
   LEERLINGENCHECK – Opgeschoonde stylesheet
   ======================================== */

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

/* ========================================
   CSS VARIABELEN
   ======================================== */
:root {
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-sans);
    
    /* Kleuren - Logo geïnspireerd */
    --primary: #00a8c6;           /* Turquoise (hoofdkleur) */
    --primary-dark: #0088a8;      /* Donkerder turquoise */
    --accent-pink: #ec4899;       /* Roze accent */
    --accent-yellow: #fbbf24;     /* Geel accent */
    --orange: #f59e0b;            /* Oranje/geel uit logo */
    --green: #1d9b1d;             /* Blijft groen */
    --blue: #00a8c6;              /* Nu turquoise ipv blauw */
    
    /* Tekst kleuren */
    --text: #1a1a1a;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Achtergronden */
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f8fafc;
    
    /* Borders */
    --border: #e2e8f0;
    
    /* Border radius */
    --radius: 14px;
    --radius-sm: 10px;
    
    /* Shadows */
    --shadow: 0 4px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    
    /* Transitions */
    --transition: all 0.25s ease;
}

/* ========================================
   GLOBALE ELEMENTEN
   ======================================== */
html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    min-height: 100vh;
}

/* ========================================
   ACHTERGROND SHAPES
   ======================================== */
.page-shapes-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.page-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape-left, 
.shape-right {
    position: absolute;
    width: 35%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.015) 100%);
}

.shape-left { left: 0; }
.shape-right { right: 0; }

.segment-orange { background: rgba(251,191,36,0.04); height: 33%; top: 0%; }
.segment-green { background: rgba(29,155,29,0.04); height: 33%; top: 33%; }
.segment-blue { background: rgba(0,168,198,0.04); height: 34%; top: 66%; }

/* ========================================
   CONTAINER
   ======================================== */
.container {
    width: min(100% - 2rem, 1100px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
       
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.6rem;
    text-decoration: none;
}

.logo-title {
    font-family: var(--font-heading);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========================================
   NAVIGATIE
   ======================================== */
.nav ul {
    display: flex;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   HERO SECTIE
   ======================================== */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #fffbeb 0%, #f0fdf4 50%, #ecfeff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin: 0 0 1.2rem;
    background: linear-gradient(90deg, #fbbf24, #1d9b1d, #00a8c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.35rem;
    line-height: 1.5;
    max-width: 38rem;
    color: #333;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.05rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1.5px solid var(--border);
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
}

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

.btn-orange {
    background: var(--orange);
    color: white;
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    letter-spacing: -0.01em;
}

.btn-orange:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

.btn-orange:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1.15rem 2.6rem;
    font-size: 1.15rem;
}

.btn-start {
    font-size: 1.125rem;
    padding: 18px 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-toggle {
    width: 100%;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    color: #92400e;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-toggle:hover {
    background: #fde68a;
    border-color: #f59e0b;
}

.btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 4.5rem 0;
}

.bg-light {
    background: var(--bg-light);
}

.welcome-section {
    padding: 50px;
    background: white;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.submit-section {
    padding: 50px;
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    text-align: center;
}

.result-section {
    padding: 50px;
    background: white;
    border-top: 1px solid var(--border);
    animation: slideIn 0.4s ease;
}

.toggle-section {
    margin: 24px 0;
}

/* ========================================
   INTRO HEADERS
   ======================================== */
.intro-header {
    text-align: center;
    margin-bottom: 48px;
}

.intro-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.intro-lead {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.intro-explanation {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.intro-explanation h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.intro-explanation p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.intro-start {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   STEPS OVERVIEW
   ======================================== */
.steps-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.step-item:hover {
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ========================================
   IMPORTANT NOTE & ALERTS
   ======================================== */
.important-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    padding: 1.6rem;
    margin: 2.5rem 0;
}

.important-note p {
    color: #78350f;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.info-box {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.info-box h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1rem;
}

.info-box ul {
    margin: 12px 0 0 20px;
}

.info-box li {
    margin-bottom: 8px;
}

.warning-box {
    background: #fffbeb;
    border-color: #fde047;
}

.warning-box h4 {
    color: #92400e;
}

.alert-box {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    color: #991b1b;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-box.critical {
    background: #fee2e2;
    border-color: #ef4444;
    font-weight: 600;
}

.alert-item {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

.alert-item:hover {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

/* ========================================
   PRIVACY BADGE
   ======================================== */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #166534;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
    margin-top: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(251,191,36,0.05) 0%, rgba(0,168,198,0.05) 50%, rgba(236,72,153,0.05) 100%);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 24px;
    font-size: 0.875rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ========================================
   WIZARD / FORMULIER
   ======================================== */
.form-page {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-page.active {
    display: block;
    opacity: 1;
}

.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    margin: 1.5rem auto;
    max-width: 100%;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-header p {
    color: var(--text-medium);
    font-size: 1rem;
}

.section-description {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.required-note {
    color: #dc2626;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 8px;
}

.required {
    color: #dc2626;
    font-weight: 600;
    margin-left: 4px;
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    text-align: center;
    background: white;
    border-bottom: 1px solid var(--border);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-gray);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   FORM GROUPS & INPUTS
   ======================================== */
.form-group {
    margin-bottom: 1.8rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.label-description {
    font-weight: 400;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.question-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.15s ease;
    font-family: inherit;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.15s ease;
    color: var(--text-dark);
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea::placeholder {
    color: var(--text-light);
}

/* ========================================
   RADIO BUTTONS
   ======================================== */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.radio-label {
    position: relative;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
}

.radio-label:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.radio-label:has(input:checked) {
    background: #eff6ff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-label input:checked + span {
    font-weight: 600;
    color: var(--primary);
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.radio-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

/* ========================================
   CHECKBOXES
   ======================================== */
.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label:has(input:checked) {
    background: #eff6ff;
    border-color: var(--primary);
}

.checkbox-label input:checked + span {
    font-weight: 500;
    color: var(--primary-dark);
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.checkbox-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */
.navigation-buttons {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.navigation-buttons .btn {
    min-width: 140px;
    text-align: center;
}

.navigation-buttons .btn-secondary,
.navigation-buttons .btn-primary {
    min-width: 140px;
}

/* ========================================
   RESULTAAT SECTIE
   ======================================== */
.result-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.result-box {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.observatie-tekst {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.interventies-box {
    background: #fffbeb;
    border: 1.5px solid #fde047;
    border-radius: 12px;
    padding: 32px;
}

.interventies-box h3 {
    color: #78350f;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

#interventieTekst {
    color: #92400e;
    line-height: 1.75;
    font-size: 0.9375rem;
}

#interventieTekst ul {
    margin-left: 20px;
    margin-top: 12px;
}

#interventieTekst li {
    margin-bottom: 10px;
}

.collapsible-content {
    margin-top: 24px;
    animation: slideDown 0.3s ease;
}

/* ========================================
   LOADING INDICATOR
   ======================================== */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

.loading-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.loading-content p {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

/* ========================================
   LOGO-KLEUREN GRADIENTS
   ======================================== */
.gradient-turquoise {
    background: linear-gradient(135deg, #00a8c6 0%, #0088a8 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.gradient-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.gradient-multi {
    background: linear-gradient(135deg, #ec4899 0%, #00a8c6 50%, #fbbf24 100%);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (min-width: 768px) {
    .form-group {
        max-width: 720px;
    }
    
    .form-section {
        padding: 3rem 2.5rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 840px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    #mobile-menu:checked ~ .nav {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 1.5rem;
    }
    
    .nav li {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .hero-lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 24px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .progress-container {
        padding: 16px 24px;
    }
    
    .navigation-buttons {
        padding: 24px;
        flex-direction: column;
    }
    
    .navigation-buttons .btn-secondary,
    .navigation-buttons .btn-primary {
        width: 100%;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section {
        padding: 40px 24px;
    }
    
    .intro-header h2 {
        font-size: 1.5rem;
    }
    
    .intro-lead {
        font-size: 1rem;
    }
    
    .step-item {
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .form-section {
        padding: 40px 24px;
    }
    
    .submit-section {
        padding: 40px 24px;
    }
    
    .result-section {
        padding: 40px 24px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   EXTRA LARGE SCREENS
   ======================================== */
@media (min-width: 1200px) {
    .container,
    .progress-container,
    .form-section,
    .form-group,
    .navigation-buttons,
    .page-header,
    .section-description,
    .info-box {
        max-width: 1180px;
    }
}