/* Quiz: typ cery — layout (no colors) */

.quiz-wrap {
    max-width: 640px;
    margin: 0 auto;
    min-height: 400px;
}

/* Step visibility */
.quiz-step {
    display: none;
}

.quiz-step-active {
    display: block;
    animation: quizFadeIn 0.3s ease;
}

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

/* Progress bar */
.quiz-progress {
    margin-bottom: 1.5rem;
}

.quiz-progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.quiz-progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

/* Intro */
.quiz-intro {
    text-align: center;
    padding: 2rem 0;
}

.quiz-intro-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.quiz-intro-desc {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.quiz-start-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.quiz-start-btn:hover {
    transform: translateY(-1px);
}

.quiz-start-btn:active {
    transform: translateY(0);
}

/* Questions */
.quiz-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-answer {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    font-family: inherit;
}

.quiz-answer:hover {
    transform: translateY(-1px);
}

.quiz-answer:active {
    transform: translateY(0);
}

/* Loading */
.quiz-loading {
    text-align: center;
    padding: 3rem 0;
}

.quiz-loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.quiz-loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: quizDotPulse 1.4s ease-in-out infinite both;
}

.quiz-loading-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.quiz-loading-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes quizDotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

.quiz-loading-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Result */
.quiz-result {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.quiz-result-type {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.quiz-result-section {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid;
}

.quiz-result-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.quiz-result-section p,
.quiz-result-section ul {
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}

.quiz-result-section ul {
    padding-left: 1.2rem;
}

.quiz-result-section li {
    margin-bottom: 0.4rem;
}

.quiz-disclaimer {
    font-size: 0.8rem;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.quiz-restart {
    display: block;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

/* Responsive — already vertical, minor tweaks */
@media (max-width: 480px) {
    .quiz-intro-title {
        font-size: 1.35rem;
    }

    .quiz-result-type {
        font-size: 1.3rem;
    }

    .quiz-result-section {
        padding: 0.85rem 1rem;
    }
}
