/* QUIZ STYLES - Brand Consistent */
:root {
    /* Palette from Landing Page */
    --color-bg-cream: #F9F8F6;
    /* Warm off-white */
    --color-text-dark: #1D2D35;
    --color-text-body: #3D405B;
    --color-primary-green: #264653;
    --color-accent-terracotta: #E76F51;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --radius: 12px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg-cream);
    color: var(--color-text-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-wrapper {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
}

.quiz-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 160px;
    height: auto;
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-accent-terracotta);
    width: 0%;
    transition: width 0.3s ease;
}

/* CARDS */
.quiz-card,
.result-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none;
}

/* QUESTIONS UI */
.question-number {
    font-size: 0.9rem;
    color: var(--color-primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: transparent;
    border: 2px solid #EAEAEA;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-body);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--color-primary-green);
    background-color: rgba(38, 70, 83, 0.05);
    color: var(--color-primary-green);
}

.option-btn:active {
    transform: scale(0.98);
}

/* RESULT UI */
.result-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-accent-terracotta);
    display: block;
    margin-top: 5px;
}

.result-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.bridge-box {
    background-color: #FFF4F0;
    /* Light terracotta tint */
    border-left: 4px solid var(--color-accent-terracotta);
    padding: 1rem;
    margin: 2rem 0;
    text-align: left;
    border-radius: 4px;
}

.bridge-text {
    font-size: 0.95rem;
    margin: 0;
    color: #8B402B;
}

/* BTN */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary-green);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #1D3540;
}

/* ANIMATION */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NEW ELEMENTS */
.microcopy {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: -1.5rem;
    margin-bottom: 1.5rem;
}

.transition-screen {
    text-align: center;
    padding: 2rem 0;
}

.transition-text {
    font-family: var(--font-heading);
    color: var(--color-primary-green);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.diagnosis-note {
    font-size: 0.9rem;
    color: var(--color-text-body);
    border-top: 1px solid #EEE;
    padding-top: 1rem;
    margin-top: 1rem;
}

.warning-box {
    background-color: #FFF8F0;
    border-color: #E76F51;
}

.inevitability-text {
    margin: 1.5rem 0 1rem;
    font-weight: 600;

    color: var(--color-text-dark);
}

/* WELCOME SCREEN */
.welcome-body {
    margin-bottom: 2rem;
    text-align: left;
}

.welcome-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-body);
}

.bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--color-bg-section);
    padding: 1.5rem;
    border-radius: 8px;
}

.bullets-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 1rem;
}

/* UX REFINEMENTS */

.micro-copy {
    display: none;
    font-size: 0.9rem;
    color: var(--color-secondary-sage);
    margin-top: 10px;
}

/* Loading Bar Animation */
.loading-container {
    width: 60%;
    margin: 2rem auto 0;
    background-color: #E0E0E0;
    border-radius: 10px;
    height: 4px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-container.active {
    opacity: 1;
}

.loading-progress {
    height: 100%;
    background-color: var(--color-primary-green);
    width: 0%;
    transition: width 0.1s linear;
}

.transition-screen {
    text-align: center;
    padding: 2rem 0;
}

.transition-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    /* Slightly larger */
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.transition-subtext {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.5rem;
}