:root {
    --primary-color: #007bff;
    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --secondary-color: #00c853;
    --secondary-gradient: linear-gradient(135deg, #0ce67b 0%, #1b5e20 100%);
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-radius: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --transition: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- SCORING SYSTEM --- */
.score-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s;
}

.score-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.score-value {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.score-anim {
    position: absolute;
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.8rem;
    pointer-events: none;
    top: 10px;
    right: 30px;
    animation: bounceUp 0.8s ease-out forwards;
}

@keyframes bounceUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(1);
        opacity: 0;
    }
}

/* --- MAIN CONTAINER --- */
.app-container {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

section {
    width: 100%;
}

.hidden-section,
.hidden {
    display: none !important;
}

/* --- PROGRESS BAR --- */
.quiz-header {
    margin-bottom: 30px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #edf2f7;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--secondary-gradient);
    width: 0%;
    transition: width 0.8s var(--transition);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
}

/* --- QUESTION CARDS --- */
.question-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card h2 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #111;
    font-weight: 800;
    line-height: 1.3;
}

.question-card ul li {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

/* --- OPTIONS GRID --- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    position: relative;
}

.option-card.selected {
    border-color: var(--secondary-color);
    background: #f0fff4;
    color: #1b5e20;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.opt-emoji {
    font-size: 2.2rem;
    min-width: 50px;
    text-align: center;
}

.opt-text {
    flex: 1;
    font-size: 1.05rem;
}

/* Green Highlight */
.highlight-green {
    color: #00c853;
    font-weight: 800;
}

/* --- INPUT --- */
.custom-input {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    text-align: center;
    margin-top: 10px;
    outline: none;
    background: #f8f9fa;
}

.custom-input:focus {
    border-color: var(--secondary-color);
    background: #fff;
}

/* --- BUTTONS --- */
.navigation-container {
    margin-top: 35px;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s var(--transition);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
    background: #cbd5e0;
}

/* --- LOADING SPINNER --- */
#loading-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    z-index: 2000;
    padding: 20px;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 8px solid #edf2f7;
    border-top: 8px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- SALES PAGE --- */
.offer-header,
.offer-image,
.deliverables-list,
.guarantee-box,
.pricing-box,
.testimonials-section,
.faq-section {
    margin-bottom: 40px;
    text-align: center;
}

.discount-banner {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #ffeeba;
    margin: 20px 0;
}

.deliverables-list ul {
    list-style: none;
    text-align: left;
}

.deliverables-list li {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.pricing-box {
    background: #fff;
    border: 3px dashed #cbd5e0;
    padding: 30px;
    border-radius: 24px;
}

.final-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin: 10px 0;
}

.strike {
    text-decoration: line-through;
    color: #e53e3e;
}

.testimonial-card,
.testimonial-text-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.testimonial-text-card {
    padding: 25px;
    text-align: left;
}

.user-info {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.user-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.faq-item {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- FOOTER --- */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info p {
    margin-bottom: 5px;
}