/* ======= Lerntyp-Quiz Styles ======= */
/* Uses homepage CSS variables: --primary-color, --secondary-color, --primary-green, --background */

/* --- Hero: same gradient as homepage hero --- */
.quiz-hero {
    background: linear-gradient(0deg, var(--primary-color) 0%, var(--primary-green) 100%);
    padding: 100px 0 70px;
    color: #fff;
    text-align: center;
}
.quiz-hero h1 {
    font-family: "Poppins", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.quiz-hero p {
    font-family: "Raleway", sans-serif;
    font-size: 1.1rem;
    opacity: .92;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Quiz Container --- */
.quiz-wrap {
    max-width: 720px;
    margin: -40px auto 0;
    padding: 0 15px 60px;
    position: relative;
    z-index: 2;
}

/* --- Progress Bar --- */
.quiz-progress {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 30px 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.quiz-progress-text {
    font-size: .85rem;
    color: #aaa;
    margin-bottom: 6px;
    font-family: "Poppins", sans-serif;
}
.quiz-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-green));
    border-radius: 3px;
    transition: width .4s ease;
    width: 0%;
}

/* --- Question Card: same style as benefit-card --- */
.quiz-card {
    background: #fff;
    border-radius: 0 0 16px 16px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    min-height: 340px;
}
.quiz-question {
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2a2c39;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* --- Answer Options --- */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s ease;
    font-size: .95rem;
    color: #444;
    background: var(--background);
    font-family: "Raleway", sans-serif;
}
.quiz-option:hover {
    border-color: var(--secondary-color);
    background: #eef4ff;
    transform: translateX(4px);
}
.quiz-option.selected {
    border-color: var(--secondary-color);
    background: #ddeaff;
    color: #2a2c39;
    font-weight: 600;
}
.quiz-option-icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background .2s;
}
.quiz-option.selected .quiz-option-icon {
    background: var(--secondary-color);
    color: #fff;
}

/* --- Navigation: same style as btn-steps --- */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}
.quiz-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    font-family: "Raleway", sans-serif;
}
.quiz-btn-back {
    background: #e9ecef;
    color: #555;
}
.quiz-btn-back:hover {
    background: #ddd;
}
.quiz-btn-next {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-left: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.quiz-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.quiz-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Intro / Start Screen --- */
.quiz-intro {
    text-align: center;
    padding: 40px 20px;
}
.quiz-intro-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}
.quiz-intro h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a2c39;
    margin-bottom: 12px;
}
.quiz-intro p {
    font-family: "Raleway", sans-serif;
    color: #555;
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.quiz-intro-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    font-size: .9rem;
    color: #aaa;
    font-family: "Poppins", sans-serif;
}
.quiz-intro-meta i {
    margin-right: 4px;
    color: var(--secondary-color);
}

/* --- Result Screen --- */
.quiz-result {
    text-align: center;
    padding: 30px 20px;
    animation: quizFadeIn .5s ease;
}
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.quiz-result-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 18px;
}
.quiz-result h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2a2c39;
    margin-bottom: 6px;
}
.quiz-result-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 18px;
    font-family: "Poppins", sans-serif;
}
.quiz-result-desc {
    font-family: "Raleway", sans-serif;
    color: #555;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 24px;
    font-size: .95rem;
}

/* Tips box: same feel as benefit-card */
.quiz-result-tips {
    text-align: left;
    background: var(--background);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.quiz-result-tips h3 {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2a2c39;
}
.quiz-result-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quiz-result-tips li {
    padding: 6px 0;
    color: #555;
    font-size: .9rem;
    font-family: "Raleway", sans-serif;
}
.quiz-result-tips li::before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: 700;
}

/* --- Share Buttons --- */
.quiz-share {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.quiz-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    border: none;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
}
.quiz-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    color: #fff;
    text-decoration: none;
}
.quiz-share-btn.whatsapp { background: #25D366; }
.quiz-share-btn.facebook { background: #1877F2; }
.quiz-share-btn.twitter  { background: #1DA1F2; }
.quiz-share-btn.copy     { background: #6c757d; }

/* CTA button: same as btn-steps */
.quiz-cta {
    margin-top: 20px;
}
.quiz-cta a {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    transition: all .25s ease;
    font-family: "Raleway", sans-serif;
}
.quiz-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
    color: #fff;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .quiz-hero {
        padding: 80px 0 50px;
    }
    .quiz-hero h1 {
        font-size: 1.6rem;
    }
    .quiz-card {
        padding: 20px 16px;
        min-height: auto;
    }
    .quiz-question {
        font-size: 1.05rem;
    }
    .quiz-option {
        padding: 12px 14px;
        font-size: .9rem;
    }
    .quiz-result-badge {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .quiz-share {
        flex-direction: column;
        align-items: center;
    }
}
