:root {
    --primary-color: #DB021D;
    --primary-dark: #B8011A;
    --primary-light: rgba(219, 2, 29, 0.08);
    --accent-green: #3DCD58;
    --accent-green-dark: #2FB348;
    --text-color: #222222;
    --text-secondary: #555555;
    --bg-color: #ffffff;
    --white: #ffffff;
    --black: #000000;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
    width: 100%;
    padding: 18px 20px;
    text-align: center;
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    transition: var(--transition);
}

.header-logo {
    max-width: 160px;
    height: auto;
    transition: var(--transition);
}

header.quiz-header {
    background: linear-gradient(135deg, #DB021D 0%, #8C0113 60%, #5A000D 100%);
    box-shadow: 0 4px 20px rgba(219, 2, 29, 0.35);
    position: relative;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
    border-bottom: none;
}

header.quiz-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.02) 20px,
        rgba(255,255,255,0.02) 40px
    );
    pointer-events: none;
}

header.quiz-header .header-logo {
    max-width: 130px;
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* ===== STEPS ===== */
.step {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-out forwards;
    text-align: center;
}

.step.active {
    display: block;
}

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

/* ===== TYPOGRAPHY ===== */
h1 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--text-color);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

h2.red-heading {
    color: var(--primary-color);
}

p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hero-small {
    font-size: 0.95rem;
    color: #777;
    margin-top: 8px;
}

/* ===== COVER IMAGE ===== */
.cover-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.intro-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #DB021D, #B8011A);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    max-width: 420px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(219, 2, 29, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #B8011A, #8C0113);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 2, 29, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(219, 2, 29, 0.3);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.25rem;
}

.btn-green {
    background: linear-gradient(135deg, #3DCD58, #2FB348);
    box-shadow: 0 4px 14px rgba(61, 205, 88, 0.35);
}

.btn-green:hover {
    background: linear-gradient(135deg, #2FB348, #239A3A);
    box-shadow: 0 6px 20px rgba(61, 205, 88, 0.45);
}

/* ===== QUIZ OPTIONS ===== */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.option-btn {
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    padding: 16px 20px;
    text-align: left;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    color: var(--text-color);
    font-weight: 500;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateX(4px);
}

.option-btn.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 20px;
    height: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #DB021D, #FF3D4D);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.question-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.question-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== SCORE BOARD ===== */
.score-board {
    position: fixed;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #DB021D, #8C0113);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(219, 2, 29, 0.35);
    display: none;
    z-index: 1000;
    letter-spacing: 0.5px;
}

.score-added {
    position: absolute;
    top: 100%;
    right: 5px;
    color: var(--accent-green);
    font-weight: 800;
    font-size: 1.4rem;
    opacity: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

/* ===== LOADING SCREEN ===== */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 55vh;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-right: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.loading-percentage {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-top: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESULT SCREEN ===== */
.result-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-top: 10px;
    border: 1px solid #f0f0f0;
}

.columns {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 150px;
}

.circle-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 2s ease-out;
}

.circular-chart.red .circle {
    stroke: var(--primary-color);
}

.percentage {
    fill: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 800;
}

.approved-text {
    color: var(--accent-green);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BONUS BOXES ===== */
.bonus-box {
    background-color: #fafafa;
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 16px 0;
    text-align: left;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
}

.bonus-box:hover {
    background-color: var(--primary-light);
    transform: translateX(4px);
}

.bonus-box h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.bonus-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    text-align: left;
    background-color: #fafafa;
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.checklist li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-size: 1.02rem;
    color: var(--text-secondary);
}

.checklist li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 800;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.green-text {
    color: var(--accent-green);
    font-weight: 800;
}

.red-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
    margin: 24px auto;
    background: var(--white);
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: var(--border-radius);
    display: inline-block;
}

.payment-methods h4 {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.payment-methods ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.payment-methods li {
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--text-color);
}

/* ===== SOCIAL PROOF BOX ===== */
.proof-box {
    text-align: left;
    max-width: 560px;
    margin: 20px auto;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.proof-box p {
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-color);
}

.proof-box ul {
    padding-left: 20px;
}

.proof-box li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===== CONFETTI ===== */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== BADGE / TAG ===== */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #DB021D, #8C0113);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ===== CERTIFICATE ANIMATION OVERLAY ===== */
.certificate-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 28px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.certificate-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.typing-overlay {
    position: absolute;
    top: calc(45% - 15px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: #1A2E5A;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #1A2E5A;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 500ms step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    .typing-overlay {
        font-size: 16px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .main-container {
        padding: 20px 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .btn-large {
        padding: 18px 28px;
        font-size: 1.1rem;
    }

    .columns {
        flex-direction: column;
        gap: 10px;
    }

    .header-logo {
        max-width: 120px;
    }

    header.quiz-header {
        height: 60px;
    }

    .score-board {
        top: 12px;
        right: 12px;
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .question-image {
        max-height: 200px;
    }

    .bonus-box {
        padding: 16px 18px;
    }

    .loading-percentage {
        font-size: 1.6rem;
    }
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
    margin: 40px auto;
    max-width: 100%;
    text-align: left;
}

.faq-title {
    color: #CC0000;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: #CC0000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: #CC0000;
}

.faq-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: #CC0000;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    font-weight: bold;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}

.faq-answer-content {
    padding: 0 20px 18px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    margin: 40px auto;
    width: 100%;
    background-color: #FFFFFF;
    padding: 24px 0;
}

.testimonials-header-block {
    text-align: center;
    margin-bottom: 24px;
}

.testimonials-title {
    color: #1A1A1A;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.testimonials-subtitle {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 0.5px solid #e0e0e0;
    border-left: 4px solid #CC0000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.testimonial-image-container {
    width: 100%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-image-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.testimonial-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex-direction: row;
    }
    .testimonial-image-container {
        width: 280px;
        min-width: 280px;
        height: auto;
    }
    .testimonial-image-container img {
        height: 100%;
        max-height: none;
    }
}

.testimonial-stars {
    color: #CC0000;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-heading {
    font-weight: bold;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.testimonial-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-meta {
    font-size: 12px;
    color: #888888;
    margin-bottom: 8px;
}

.testimonial-badge {
    display: table;
    background-color: #2E7D32;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.testimonial-certificate-preview {
    margin-top: 40px;
    text-align: center;
}

.testimonial-certificate-preview img {
    max-width: 280px;
    width: 100%;
    transform: rotate(-2deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.testimonial-certificate-preview img:hover {
    transform: rotate(0deg) scale(1.05);
}

.certificate-caption {
    font-size: 12px;
    color: #888888;
    text-align: center;
    margin: 0;
}
