/* Font loaded via <link> in index.html — no @import needed */

:root {
    /* Brand */
    --marquiz-orange: #D3734F;
    --marquiz-orange-light: #E59F85;
    --marquiz-green: #4ADE80;

    /* Text */
    --text-main: #111827;
    --text-secondary: #374151;
    --text-body: #4B5563;
    --text-muted: #6B7280;
    --text-placeholder: #9CA3AF;

    /* Backgrounds & Borders */
    --bg-light: #F9FAFB;
    --bg-subtle: #F3F4F6;
    --border-light: #E5E7EB;

    /* Error */
    --color-error: #EF4444;
    --color-error-bg: #FEF2F2;

    /* Messenger colors */
    --color-telegram: #0088cc;
    --color-telegram-accent: #24A1DE;
    --color-whatsapp: #25D366;
    --color-whatsapp-bg: #F0FFF4;
    --color-telegram-bg: #F0F9FF;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    overflow-x: hidden;
    /* Removed overflow:hidden so postMessage can report full height */
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: white;
    color: var(--text-main);
    line-height: 1.5;
}

/* Split Layout */
html.quiz-open, body.quiz-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

html.quiz-open ::-webkit-scrollbar, body.quiz-open ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html.quiz-open *, body.quiz-open * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.landing-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.landing-left {
    flex: 1.2;
    background: url('assets/school.jpg') center/cover no-repeat;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.floating-disclaimer {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.35;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: justify;
}

.mobile-disclaimer {
    display: none;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.4;
    text-align: justify;
}

.landing-right {
    flex: 1;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Header */
.landing-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.landing-header .logo {
    height: 32px !important;
    width: auto !important;
    flex-shrink: 0;
    margin: 0;
    display: block;
}

.landing-header .subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.01em;
}

.landing-header::after {
    display: none;
}

/* Content */
.landing-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #000;
}

.benefit-list {
    list-style: none;
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.5s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.25s; }
.benefit-item:nth-child(3) { animation-delay: 0.4s; }
.benefit-item:nth-child(4) { animation-delay: 0.55s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 32px;
}

.dot-live {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.dot-live::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #10B981;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(3); opacity: 0; }
}

/* Success Screen */
.success-screen {
    text-align: center;
    max-width: 480px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.telegram-style {
    border-bottom: none;
}

/* Background Blobs for Success Screen */
#success-screen {
    overflow: hidden;
    background: #f8fafc;
}

#success-screen::before,
#success-screen::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.12; /* Very subtle and aerial now */
    animation: floatBlob 15s infinite alternate ease-in-out;
}

#success-screen::before {
    background: #24A1DE;
    top: -150px;
    right: -150px;
}

#success-screen::after {
    background: #00BFFF;
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

@keyframes floatBlob {
    from { transform: translate(0, 0) scale(1) rotate(0deg); }
    to { transform: translate(60px, 80px) scale(1.1) rotate(15deg); }
}

.telegram-bg {
    background: linear-gradient(135deg, #24A1DE 0%, #1d86b9 100%) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(36, 161, 222, 0.4);
    animation: iconPulse 2.5s infinite ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(36, 161, 222, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 15px 35px rgba(36, 161, 222, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(36, 161, 222, 0.4); }
}

.telegram-btn {
    background: linear-gradient(135deg, #24A1DE 0%, #1d86b9 100%) !important;
    box-shadow: 0 8px 25px rgba(36, 161, 222, 0.35) !important;
    border-radius: 18px !important;
}

.telegram-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(36, 161, 222, 0.55) !important;
}

.success-screen h2 {
    font-size: 1.85rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    color: #111827 !important;
}

.success-description {
    color: #4B5563 !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.015em !important;
    font-weight: 500 !important;
    margin-bottom: 32px !important;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.loader-container {
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--marquiz-orange);
    animation: progress 2.5s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    40% { width: 60%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

.success-icon-large {
    width: 64px;
    height: 64px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

/* .telegram-bg gradient defined above (line ~241) */

.whatsapp-bg {
    background-color: #DCFCE7;
    color: #16A34A;
}

.check-icon {
    color: #10B981 !important;
}

.cta-btn {
    width: 100%;
    background: var(--marquiz-orange);
    color: white;
    border: none;
    padding: 20px 32px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 14px 0 rgba(211, 115, 79, 0.39);
    animation: pulse 2s infinite;
}

.cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(211, 115, 79, 0.5);
    background: #e07b55;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 115, 79, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(211, 115, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 115, 79, 0); }
}

/* .telegram-btn base styles defined above (line ~254), extended here */
.telegram-btn {
    position: relative;
    overflow: hidden;
    animation: none; /* No pulse for TG button */
}

.telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transition: all 0.6s;
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Material Pack */
.materials-section {
    margin-top: 32px;
}

.materials-section h3 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

/* Material Pack & Sidebar Bonuses */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.material-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.05),
        0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
}
@media (hover: hover) {
    .material-card:hover {
        transform: translateY(-8px) rotate(-1deg);
        box-shadow: 
            0 20px 25px -5px rgba(0, 0, 0, 0.1),
            0 10px 10px -5px rgba(0, 0, 0, 0.04),
            0 0 0 2px var(--marquiz-orange);
    }
}

/* Document Stack Effect */
.material-card::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: -4px;
    left: -4px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    z-index: -1;
}

.material-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.02) brightness(0.97);
    transition: all 0.6s ease;
}

/* Add a subtle overlay for depth */
.material-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
}

@media (hover: hover) {
    .material-card:hover img {
        transform: scale(1.08);
        filter: contrast(1.05) brightness(1);
    }
}

/* Label styling */
.material-card .label {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 12px 16px;
    background: white;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: left;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badge for file type (simulated) */
.material-card .label::after {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
}

.material-card:nth-child(1) .label::after {
    content: 'PDF';
    background: #FEE2E2;
    color: #991B1B;
}

.material-card:nth-child(2) .label::after {
    content: 'XLSX';
    background: #DCFCE7;
    color: #166534;
}

.material-card:nth-child(3) .label::after {
    content: 'PDF';
    background: #DBEAFE;
    color: #1E40AF;
}

/* Style for locked state (only in quiz) */
.material-card:not(.active) {
    opacity: 0.6;
}

.material-card:not(.active) img {
    filter: grayscale(100%) contrast(0.8);
}

@media (hover: hover) {
    .material-card:not(.active):hover {
        opacity: 0.8;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}

@media (hover: hover) {
    .material-card:not(.active):hover img {
        filter: grayscale(50%) contrast(0.9);
    }
}

.lock-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--marquiz-orange);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: none;
}

.material-card:not(.active) .lock-icon {
    display: flex;
}

.badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge.pdf {
    background: #FEE2E2;
    color: #991B1B;
}

.badge.xlsx {
    background: #DCFCE7;
    color: #166534;
}

/* Specific blue color for the third PDF badge (Audit Report) */
.material-card:nth-child(3) .badge.pdf {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Footer */
.landing-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.quiz-content-area {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

/* QUIZ INTERFACE */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F3F4F6;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    width: 95%;
    max-width: 1060px;
    height: 95vh;
    max-height: 750px;
    background: white;
    display: flex;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
}

.quiz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: white;
}

.quiz-top-bar {
    padding: 20px 40px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.quiz-content-area {
    flex: 1;
    padding: 30px 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.quiz-content-area::-webkit-scrollbar {
    display: none;
}

.quiz-sidebar {
    width: 300px;
    background: #F9FAFB;
    border-left: 1px solid #E5E7EB;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
}

.option-card {
    border: 1px solid #E5E7EB;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    background: white;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .option-card:hover {
        border-color: var(--marquiz-orange);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(211, 115, 79, 0.08);
    }
}

.option-card.selected { 
    border-color: var(--marquiz-orange); 
    border-width: 1px;
    background-color: #FFF7F5;
}

.option-icon {
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--marquiz-orange);
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-card.selected .option-icon {
    background: white;
    box-shadow: 0 2px 8px rgba(211, 115, 79, 0.15);
}

.option-content {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
}

.option-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-card.selected .option-circle {
    background: var(--marquiz-orange);
    border-color: var(--marquiz-orange);
    box-shadow: inset 0 0 0 4px white;
}

/* Progress Bar */
.progress-bar-container {
    height: 4px;
    background: #F3F4F6;
    width: 100%;
    position: relative;
    z-index: 100;
}

.progress-bar-fill {
    height: 100%;
    background: var(--marquiz-orange);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bottom Bar */
.quiz-bottom-bar {
    padding: 20px 60px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.mini-materials {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.mini-material-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.mini-material-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) opacity(0.6);
}

.mini-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    color: #9CA3AF;
}

.step-info {
    font-size: 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-num {
    background: #D3734F;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9CA3AF;
}

.btn-next-marquiz {
    background: #E59F85;
    color: white;
    border: none;
    padding: 0 32px;
    height: 48px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-next-marquiz:not(:disabled) { background: var(--marquiz-orange); }

.quiz-bottom-bar.lead-mode .nav-controls {
    width: 100%;
}
.quiz-bottom-bar.lead-mode .btn-next-marquiz {
    width: 100%;
    justify-content: center;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

/* @keyframes shine defined above (line ~390) */

/* Consultant */
.consultant-card {
    margin-top: auto;
}

.consultant-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar-wrapper {
    position: relative;
    display: flex;
    flex-shrink: 0;
}

.online-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
}

.consultant-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

.consultant-info h4 { font-size: 0.9rem; font-weight: 700; color: #374151; }
.consultant-info p { font-size: 0.8rem; color: #9CA3AF; }

.chat-bubble {
    background: #fff !important;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #F3F4F6;
}

.chat-bubble.highlight {
    background: #fff !important;
}

.chat-bubble::after {
    content: '' !important;
    position: absolute;
    top: -10px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff !important;
    filter: drop-shadow(0 -1px 0 #F3F4F6);
    display: block !important;
}

.final-progress-container {
    margin-bottom: 22px;
    width: 100%;
}

.final-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #4B5563;
    position: relative;
}

.final-progress-percent {
    font-weight: 800;
    color: var(--marquiz-orange);
    position: absolute;
    left: 95%;
    bottom: 4px;
    transform: translateX(-50%);
    font-size: 1.1rem;
    line-height: 1;
}

.final-progress-percent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 5px 0 5px;
    border-style: solid;
    border-color: var(--marquiz-orange) transparent transparent transparent;
}

.final-progress-track {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.final-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E59F85 0%, var(--marquiz-orange) 100%);
    border-radius: 4px;
}

.quiz-content-area.animate .final-progress-fill {
    animation: fillFinalProgress 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes fillFinalProgress {
    from { width: 0%; }
    to { width: 95%; }
}

#question-title {
    font-size: 2.1rem !important;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-main);
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.lead-title {
    font-size: clamp(1.4rem, 7vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lead-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: clamp(0.85rem, 3vw, 1rem);
}

/* Lead Form */
.lead-form-container {
    max-width: 480px;
}

.messenger-choice {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.messenger-btn {
    flex: 1;
    padding: 14px 10px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4B5563;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-height: 80px;
}

.messenger-btn .m-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

@media (hover: hover) {
    .messenger-btn[data-messenger="whatsapp"]:hover {
        color: #25D366;
        border-color: #25D366;
        background: #F0FFF4;
    }
}
.messenger-btn[data-messenger="whatsapp"].active {
    color: #25D366;
    border-color: #25D366;
    background: #F0FFF4;
}

@media (hover: hover) {
    .messenger-btn[data-messenger="telegram"]:hover {
        color: #0088cc;
        border-color: #0088cc;
        background: #F0F9FF;
    }
}
.messenger-btn[data-messenger="telegram"].active {
    color: #0088cc;
    border-color: #0088cc;
    background: #F0F9FF;
}

@media (hover: hover) {
    .messenger-btn[data-messenger="phone"]:hover {
        color: var(--marquiz-orange);
        border-color: var(--marquiz-orange);
        background: #FFF7F5;
    }
}
.messenger-btn[data-messenger="phone"].active {
    color: var(--marquiz-orange);
    border-color: var(--marquiz-orange);
    background: #FFF7F5;
}

.input-wrapper {
    margin-bottom: 20px;
}

.input-field {
    position: relative;
    margin-bottom: 12px;
}

.input-field .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-field input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px; /* MUST BE 16PX MINIMUM FOR IOS TO NOT AUTO-ZOOM */
    transition: border-color 0.2s;
}

.input-field input:focus {
    outline: none;
    border-color: var(--marquiz-orange);
}

.input-field input.invalid {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.custom-phone-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}

.custom-phone-wrapper:focus-within {
    border-color: var(--marquiz-orange);
}

.custom-phone-wrapper.invalid {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.country-selector {
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid #E5E7EB;
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    cursor: pointer;
    height: 100%;
    user-select: none;
}

.selected-country .flag {
    font-size: 1.2rem;
}

.country-dropdown {
    position: fixed;
    width: 250px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99999;
    overflow: hidden;
}

.country-search-wrapper {
    padding: 8px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.country-search-wrapper input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px; /* MUST BE 16PX MINIMUM FOR IOS TO NOT AUTO-ZOOM */
    outline: none;
}

.country-search-wrapper input:focus {
    border-color: var(--marquiz-orange);
}

.country-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.country-item:hover, .country-item.active {
    background-color: #FFF7F5;
}

.country-item .country-name {
    flex: 1;
}

.country-item .country-code {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.custom-phone-wrapper input#user-phone {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    padding: 16px;
    outline: none;
    font-family: inherit;
    font-size: 16px; /* MUST BE 16PX MINIMUM FOR IOS TO NOT AUTO-ZOOM */
    border-radius: 0 10px 10px 0;
}

.error-msg {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: -8px;
    margin-bottom: 12px;
    font-weight: 600;
}

.privacy-note {
    font-size: 0.7rem;
    color: #9CA3AF;
    line-height: 1.4;
}

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    margin-left: 4px;
}

.privacy-checkbox-label input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    margin-top: 0;
    position: relative;
    transition: all 0.2s ease;
}

.privacy-checkbox-label input:checked {
    background-color: var(--marquiz-orange);
    border-color: var(--marquiz-orange);
}

.privacy-checkbox-label input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 38%;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.privacy-checkbox-label input:hover {
    border-color: var(--marquiz-orange);
}

.privacy-checkbox-label.invalid-checkbox {
    color: #EF4444;
}

.privacy-checkbox-label.invalid-checkbox input {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.privacy-checkbox-label.invalid-checkbox a {
    color: #EF4444;
}

.btn-next-marquiz.inactive {
    background: #E59F85;
    opacity: 0.7;
}

.privacy-note a {
    color: #6B7280;
    text-decoration: underline;
}

.quiz-content-area.animate {
    animation: fadeInUp 0.4s ease-out;
}

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

.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
    pointer-events: none;
    will-change: opacity;
}

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity;
}

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

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

.bonus-list-container h3 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .quiz-content-area { padding: 30px 40px; }
    .quiz-bottom-bar { padding: 20px 40px; }
}

@media (max-width: 900px) {
    .landing-wrapper {
        flex-direction: column;
        overflow-y: visible;
        height: auto;
        min-height: auto;
    }
    
    .landing-header .subtitle {
        font-size: 0.85rem;
        white-space: normal;
    }

    .landing-left {
        position: relative;
        height: 25vh;
        min-height: 200px;
    }
    
    .landing-left .floating-disclaimer {
        display: none;
    }

    .mobile-disclaimer {
        display: block;
    }
    
    .landing-right {
        padding: 32px 20px;
        height: auto;
    }

    .landing-content h1 {
        font-size: 1.6rem;
    }

    .floating-disclaimer {
        font-size: 0.55rem;
        padding: 10px 15px;
    }

    .quiz-overlay {
        align-items: flex-start;
        background: white;
    }

    .quiz-container {
        width: 100%;
        height: 100vh; /* fallback */
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        flex-direction: column;
        box-shadow: none;
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        background: white;
    }

    .quiz-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        min-height: 0;
    }

    .quiz-content-area {
        padding: 24px 20px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-y;
    }
    .quiz-content-area::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    .quiz-sidebar {
        display: block;
        width: 100%;
        padding: 0;
        background: #fff;
        border-bottom: 1px solid #F3F4F6;
        order: -1;
    }

    .desktop-only {
        display: none;
    }

    .quiz-sidebar .bonus-list-container {
        display: none;
    }

    .consultant-card {
        padding: 16px 20px;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        display: block !important;
    }

    .consultant-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .avatar-wrapper {
        margin: 0 !important;
        flex-shrink: 0;
    }

    .consultant-photo {
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        border-radius: 50%;
        object-fit: cover;
    }

    .consultant-info h4 {
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #111827 !important;
    }

    .consultant-info p {
        font-size: 0.8rem !important;
        margin: 0 !important;
        color: #6B7280 !important;
    }

    .chat-bubble, .chat-bubble.highlight {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
        background: #F3F4F6 !important;
        border: none !important;
        border-radius: 12px !important;
        margin: 0 !important;
        color: #374151 !important;
        line-height: 1.5 !important;
        box-shadow: none !important;
        position: relative;
        display: block !important;
    }

    .chat-bubble::after {
        content: "" !important;
        position: absolute;
        top: -10px;
        left: 14px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #F3F4F6 !important;
        display: block !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }

    .quiz-top-bar {
        display: none !important;
    }

    .progress-bar-container {
        width: 100%;
        height: 4px;
        background: #F3F4F6;
        position: relative;
        margin-bottom: 0;
    }

    .quiz-content-area {
        padding: 16px 20px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-y;
    }

    .quiz-content-area h1#question-title {
        font-size: 1.8rem !important;
        margin-bottom: 24px;
        line-height: 1.15 !important;
    }

    .option-card {
        padding: 12px 16px;
        gap: 12px;
    }

    .option-icon {
        width: 40px;
        height: 40px;
    }

    .option-content {
        font-size: 0.85rem;
    }

    .quiz-bottom-bar {
        position: relative;
        width: 100%;
        background: white;
        padding: 16px 20px;
        border-top: 1px solid #F3F4F6;
        z-index: 10;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-top: auto;
        flex-shrink: 0;
    }

    .step-info {
        font-size: 0.85rem;
        flex-shrink: 0;
        white-space: nowrap;
        color: #374151;
        gap: 6px;
    }

    .mini-materials {
        display: flex;
        gap: 6px;
    }

    .mini-material-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        border: 1px solid #E5E7EB;
        overflow: hidden;
        background: #fff;
    }

    .mini-material-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mini-lock {
        width: 12px;
        height: 12px;
    }

    .btn-next-marquiz {
        padding: 0 24px;
        font-size: 0.9rem;
    }

    .messenger-choice {
        gap: 8px;
    }

    .messenger-btn {
        padding: 12px 6px;
        font-size: 0.75rem;
        min-height: 75px;
    }

    .success-screen {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .materials-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        margin-right: -20px;
        padding-right: 60px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .materials-grid::-webkit-scrollbar {
        display: none;
    }

    .material-card {
        flex: 0 0 75%;
        height: 150px;
        scroll-snap-align: center;
    }

    .material-card .label {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .scroll-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #E5E7EB;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: var(--marquiz-orange);
        width: 12px;
        border-radius: 4px;
    }
    
    .options-grid {
        margin-top: 12px;
        gap: 8px;
    }
    
    .lead-title {
        margin-bottom: 12px;
    }
    
    .lead-subtitle {
        margin-bottom: 16px;
    }

    .landing-footer {
        margin-top: 60px;
        padding-top: 32px;
    }
}

/* --- Cookie Consent Banner --- */
.cookie-consent {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 50;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: auto;
}

.cookie-content {
    width: 270px; /* Scaled down width for 2 lines */
    flex: 0 0 auto;
}

.cookie-content p {
    font-size: 0.78rem;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0;
    text-align: left;
}

.cookie-link {
    color: var(--marquiz-orange);
    text-decoration: none;
}

.cookie-link:hover {
    color: var(--marquiz-orange-light);
}

.cookie-btn {
    background-color: #EAEAEA;
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex: 0 0 auto;
    margin: 0;
    display: block;
}

.cookie-btn:hover {
    background-color: #D4D4D4;
}

@media (max-width: 480px) {
    .cookie-consent {
        bottom: 20px;
        left: 16px;
        right: 16px;
        width: auto;
        padding: 12px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-content {
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}