:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --primary-red: #ff0000;
    --accent-yellow: #ffd700;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==============================
   MAIN LAYER LAYOUT
   ============================== */
#main-layer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle at top right, #1a1a1a 0%, #0d0d0d 100%);
}

.main-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

/* ==============================
   CONTENT SIDE (LEFT)
   ============================== */
.content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: none;
    text-align: left;
    color: var(--text-white);
}

.highlight-yellow {
    color: var(--accent-yellow);
}

.highlight-red {
    color: var(--primary-red);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.main-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

/* Benefits list */
.benefits-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.check {
    color: var(--accent-yellow);
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefits-list p {
    font-size: 1rem;
    color: var(--text-white);
}

/* Author Box */
.author-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.author-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--accent-yellow);
    font-weight: 700;
}

.author-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.author-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.author-info p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

/* ==============================
   FORM SIDE (RIGHT) - Quiz Card
   ============================== */
.form-side {
    display: flex;
    align-items: stretch;
}

.quiz-floating-card {
    background: #12121e;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2a2a3a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 4rem;
    width: 100%;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a3a;
}

.card-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.card-footer {
    margin-top: 1.5rem;
    text-align: center;
    border-top: 1px solid #2a2a3a;
    padding-top: 1rem;
}

.card-footer p {
    font-size: 0.72rem;
    color: #555;
    line-height: 1.4;
}

/* ==============================
   PROGRESS BAR
   ============================== */
#quiz-progress-bar {
    width: 100%;
    height: 5px;
    background: #2a2a3a;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-yellow));
    transition: width 0.5s ease;
}

/* ==============================
   QUIZ CONTENT
   ============================== */
.quiz-question {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    background: #1e1e2e;
    border: 1px solid #3a3a4a;
    color: var(--text-white);
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.option-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateX(6px);
}

/* ==============================
   BUTTONS
   ============================== */
.btn-primary {
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.full-width {
    width: 100%;
}

/* ==============================
   RESULT CONTAINER
   ============================== */
.result-container {
    text-align: center;
}

.result-container h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.result-container p {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Loading spinner */
.loading-container {
    text-align: center;
    padding: 2rem 0;
}

.loading-container h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-gray);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2a2a3a;
    border-top-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================
   FOOTER
   ============================== */
footer {
    text-align: center;
    padding: 1.5rem;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px solid #1a1a1a;
}

/* ==============================
   HIDDEN
   ============================== */
.hidden {
    display: none !important;
}

/* ==============================
   RESPONSIVE — Tablet (992px)
   ============================== */
@media (max-width: 992px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    #main-layer {
        padding: 3rem 1.5rem;
    }

    .content-side {
        text-align: center;
    }

    .main-title {
        text-align: center;
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    .main-subtitle {
        margin: 0 auto 2rem;
    }

    .benefits-list li {
        justify-content: flex-start;
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .quiz-floating-card {
        position: static;
    }

    .form-side {
        align-items: center;
    }
}

/* ==============================
   RESPONSIVE — Mobile (600px)
   ============================== */
@media (max-width: 600px) {
    #main-layer {
        padding: 2rem 1rem;
    }

    .main-title {
        font-size: 1.7rem;
    }

    .quiz-floating-card {
        padding: 1.5rem;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }
}