:root {
    --primary-color: #8e44ad;
    --primary-gradient: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    --secondary-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --accent-color: #e74c3c;
    --cta-color: #27ae60;
    --cta-gradient: linear-gradient(to right, #27ae60, #2ecc71);
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #f0f2f5;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: #eef2f3;
    /* Soft, premium grey-blue */
    background: linear-gradient(to bottom, #eef2f3, #8e9eab);
    /* Subtle gradient */
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top to avoid centering issues on mobile */
    padding-top: 40px;
    padding-bottom: 40px;
}

#app {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    /* Mobile standard width */
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--cta-gradient);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.5);
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #2c3e50;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #34495e;
}

.highlight-red {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 500;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: var(--white);
    border: 2px solid #e0e0e0;
    /* Solid border looks cleaner */
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1rem;
    color: #555;
    text-align: left;
}

.quiz-option:hover {
    background-color: #f9f9f9;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quiz-option.selected {
    background-color: #e8f8f5;
    border-color: var(--cta-color);
    color: var(--cta-color);
}

/* Checkbox Style */
.quiz-option input[type="checkbox"] {
    accent-color: var(--cta-color);
    width: 20px;
    height: 20px;
}

/* Grid Options (Images) */
.grid-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-option {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grid-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.grid-option img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid-option span {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.grid-option button {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

/* Inputs */
.input-group {
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.1);
}

/* Landing Header */
.landing-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.landing-header img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.benefit-list li {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--cta-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    body {
        padding: 0;
        background: var(--white);
        /* White bg on mobile for full immersion */
    }

    .container {
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        max-width: 100%;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 16px;
        font-size: 1rem;
    }
}/* Result Graph Animations */
@keyframes growBar {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.result-bar {
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-weight: 800;
    padding-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: growBar 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom;
    opacity: 0;
    /* Hidden initially */
}

.result-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

.bar-7 {
    background: linear-gradient(180deg, #f1c40f 0%, #f39c12 100%);
    animation-delay: 0.3s;
}

.bar-14 {
    background: linear-gradient(180deg, #e67e22 0%, #d35400 100%);
    animation-delay: 0.6s;
}

.bar-21 {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    animation-delay: 0.9s;
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.6);
}

.bar-text {
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    margin-bottom: 10px;
}
