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

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --text-dark: #2c3e50;
    --text-medium: #5d6d7e;
    --text-light: #95a5a6;
    --border: #e0e6ed;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.logo span {
    color: var(--accent);
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: var(--text-medium);
}

/* Progress bar */
.progress-container {
    margin-bottom: 25px;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 12.5%;
}

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

/* Quiz container */
.quiz-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease;
}

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

.question-header {
    margin-bottom: 25px;
}

.question-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option:hover {
    border-color: var(--primary-light);
    background: rgba(41, 128, 185, 0.04);
    transform: translateX(4px);
}

.option.selected {
    border-color: var(--primary);
    background: rgba(26, 82, 118, 0.08);
}

.option-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option.selected .option-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.option-text {
    font-size: 16px;
    color: var(--text-dark);
}

/* Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 12px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-medium);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    flex: 1;
    max-width: 200px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Results container */
.results-container {
    animation: fadeIn 0.5s ease;
}

.results-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.results-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.results-card h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.results-score {
    margin-bottom: 25px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
}

.score-circle #scoreValue {
    font-size: 36px;
    font-weight: 800;
}

.score-label {
    font-size: 14px;
    opacity: 0.9;
}

.score-description {
    font-size: 16px;
    color: var(--text-medium);
    max-width: 400px;
    margin: 0 auto;
}

.results-details {
    text-align: left;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.results-details h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item-label {
    font-size: 15px;
    color: var(--text-medium);
}

.result-item-value {
    font-weight: 600;
    color: var(--text-dark);
}

.result-bar {
    width: 100px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Product section */
.product-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease 0.2s both;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent);
    position: relative;
}

.product-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
}

.product-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.product-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-emoji {
    font-size: 80px;
}

.product-description {
    font-size: 16px;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-benefits {
    list-style: none;
    margin-bottom: 25px;
}

.product-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    color: var(--text-dark);
}

.product-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

.product-testimonial {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.testimonial-avatar {
    font-size: 40px;
    margin-bottom: 10px;
}

.product-testimonial blockquote {
    font-style: italic;
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-testimonial cite {
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

.product-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff5eb, #ffe8d6);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.offer-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.old-price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.new-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.offer-timer {
    text-align: right;
}

.timer-label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.timer-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--danger);
    font-variant-numeric: tabular-nums;
}

/* CTA Button */
.cta-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 700;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-subtext {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.guarantee {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

/* Final CTA */
.final-cta {
    margin-top: 30px;
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: white;
    animation: fadeIn 0.5s ease 0.4s both;
}

.final-cta h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.final-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-button-large {
    padding: 18px 40px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button-large:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stats {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.stats span {
    font-weight: 700;
    font-size: 16px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 14px;
}

.disclaimer {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Loading animation */
.loading-container {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: loaderSpin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    border-top-color: var(--primary);
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--primary-light);
    animation-delay: 0.2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--accent);
    animation-delay: 0.4s;
}

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

.loading-text {
    font-size: 18px;
    color: var(--text-medium);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 22px;
    }

    .quiz-container,
    .results-card,
    .product-card {
        padding: 20px;
    }

    .question-text {
        font-size: 18px;
    }

    .product-offer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .offer-timer {
        text-align: center;
    }
}
