:root {
    --primary-color: #1E3DFF;
    --navy-blue: #1530CC;
    --green-accent: #2e8b57;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

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

header {
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: var(--white);
    transition: var(--transition);
}

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

/* Modern Corporate Header for Quiz */
header.quiz-header {
    background: radial-gradient(circle at 80% 20%, #1E3DFF, #1530CC 70%);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
    position: relative;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

header.quiz-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\"><filter id=\"noise\"><feTurbulence type=\"fractalNoise\" baseFrequency=\"0.8\" numOctaves=\"4\" stitchTiles=\"stitch\"/></filter><rect width=\"100\" height=\"100\" filter=\"url(%23noise)\" opacity=\"0.05\"/></svg>');
    pointer-events: none;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.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(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    max-width: 400px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* Quiz Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

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

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 61, 255, 0.06);
}

.option-btn.selected {
    background-color: #1E3DFF;
    border-color: #1E3DFF;
    color: #ffffff;
    font-weight: 600;
}

/* Score Board */
.score-board {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 100;
}

.score-added {
    position: absolute;
    top: 100%;
    right: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.5rem;
    opacity: 0;
}

@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: 50vh;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 10px;
    color: var(--primary-color);
}

@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;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 20px;
}

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

.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: #eee;
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 2s ease-out;
}
.circular-chart.blue .circle {
    stroke: var(--primary-color);
}
.percentage {
    fill: var(--text-color);
    font-family: sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}

.approved-text {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.result-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px solid #eee;
}

/* Upsell / Payment Pages */
.blue-box {
    background-color: rgba(30, 61, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.blue-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.checklist {
    list-style: none;
    text-align: left;
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.checklist li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.checklist li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.green-text {
    color: #28a745;
    font-weight: bold;
}

.blue-text {
    color: var(--primary-color);
    font-weight: bold;
}

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

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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