@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --marquiz-orange: #D3734F;
    --marquiz-green: #4ADE80;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --border-light: #E5E7EB;
    --radius-marquiz: 8px;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

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

/* Split Layout */
.landing-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

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

/* Hotspots */
.hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 5;
}

.hotspot-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    animation: hotspotPulse 2s infinite;
}

.hotspot::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10;
}

.hotspot:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes hotspotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Bonus Card Hover (Locked State) */
.material-card:not(.active):hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.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;
}

.landing-right {
    flex: 1;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

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

.landing-header .logo {
    height: 32px !important;
    width: auto !important;
    flex-shrink: 0;
    margin: 0;
    color: #000; /* Firm black instead of orange */
}

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

.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;
}

/* Staggered Animations */
.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;
}

.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; }
}

/* Enhanced Success Screen */
.success-screen {
    text-align: center;
    max-width: 480px;
    padding: 48px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.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;
}

.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); }
}

/* Navigation Buttons in Quiz */
.btn-next-marquiz:not(:disabled):hover {
    background: #e07b55;
}

.btn-icon:hover {
    border-color: var(--marquiz-orange);
    color: var(--marquiz-orange);
    background: #FFF7F5;
}

/* 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);
}

/* 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: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);
}

.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;
}

.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);
}

.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: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.material-card.active .lock-icon {
    opacity: 0;
    transform: scale(0);
}

/* 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 (Overlay) */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F3F4F6; /* Light gray background like Marquiz */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    width: 95%;
    max-width: 1060px;
    height: 95vh;
    max-height: 800px;
    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; /* Increased padding */
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.quiz-content-area {
    flex: 1;
    padding: 30px 60px; /* Slightly reduced top padding as top-bar is larger */
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.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;
}

/* Option Cards - Single Column Layout */
.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;
}

.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;
}

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

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

.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: 12px;
}

.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; /* Muted orange from screenshot */
    color: white;
    border: none;
    padding: 0 32px;
    height: 48px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

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

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

.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);
}

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

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

.chat-bubble.highlight {
    background: #FFF7F5;
    transform: scale(1.02);
    border: 1px solid var(--marquiz-orange);
}

.chat-bubble::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #F3F4F6;
}

.lead-badge {
    display: inline-block;
    background: #FFF7F5;
    color: var(--marquiz-orange);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

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

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

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

.messenger-btn .m-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

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

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

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

.messenger-btn:hover {
    border-color: var(--marquiz-orange);
    color: var(--marquiz-orange);
}

.messenger-btn.active {
    border-color: var(--marquiz-orange);
    background: #FFF7F5;
    color: var(--marquiz-orange);
}

.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%);
    font-size: 1rem;
    pointer-events: none;
}

.input-field input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    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;
}

.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-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);
    }
}

/* Page Transitions */
.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
    pointer-events: none;
    will-change: opacity, transform;
}

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

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.97); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

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

@media (max-width: 900px) {
    /* Landing Page Mobile */
    .landing-wrapper {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    .landing-left {
        height: 40vh;
        min-height: 300px;
    }
    
    .landing-right {
        padding: 32px 20px;
        height: auto;
    }

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

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

    /* Quiz Mobile Layout */
    .quiz-overlay {
        align-items: flex-start;
        background: white;
    }

    .quiz-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        flex-direction: column;
        box-shadow: none;
    }

    .quiz-main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .quiz-sidebar {
        display: none; /* Hide sidebar on mobile to save space */
    }

    .quiz-top-bar {
        padding: 15px 20px;
        font-size: 0.75rem;
        text-align: center;
    }

    .quiz-content-area {
        padding: 24px 20px;
    }

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

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

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

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

    .quiz-bottom-bar {
        padding: 16px 20px;
        background: white;
        border-top: 1px solid #F3F4F6;
        position: sticky;
        bottom: 0;
    }

    .step-info {
        font-size: 0.85rem;
    }

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

    /* Lead Form Mobile */
    .messenger-choice {
        gap: 8px;
    }

    .messenger-btn {
        padding: 10px 5px;
        font-size: 0.75rem;
    }

    .messenger-btn .m-icon svg {
        width: 20px;
        height: 20px;
    }

    .success-screen {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Fix for very small screens */
@media (max-height: 700px) and (max-width: 900px) {
    .quiz-content-area h1#question-title {
        font-size: 1.3rem !important;
        margin-bottom: 16px;
    }
    .options-grid {
        margin-top: 20px;
    }
}
