/* ================================================================
   VERKEERSBORD QUIZ — Dedicated stylesheet
   Module: driving_school (shared across templates, see tokens.css)
   ================================================================ */

.vq-wrap {
    max-width: 600px;
    padding-top: 40px;
    padding-bottom: 100px;
}

.vq-panel {
    background: #fff;
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow);
    border: 1px solid var(--ds-line);
    padding: 36px 32px;
    text-align: center;
}

.vq-panel-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--ds-ink);
    margin-bottom: 24px;
}

/* ---- Setup screen ---- */
.vq-setup-field {
    text-align: left;
    margin-bottom: 18px;
}
.vq-setup-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ds-ink-soft);
    margin-bottom: 7px;
}
.vq-setup-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--ds-line);
    border-radius: var(--ds-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: var(--ds-ink);
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.vq-setup-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-90);
}

.vq-start-btn {
    width: 100%;
    margin-top: 6px;
    font-size: 1rem;
}

/* ---- Quiz screen ---- */
.vq-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.vq-counter,
.vq-score {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ds-muted);
    white-space: nowrap;
}
.vq-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--ds-line);
    border-radius: 999px;
    overflow: hidden;
}
.vq-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
    width: 0%;
    transition: width .3s ease;
}

.vq-question-img-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 22px;
    background: var(--ds-bg-alt);
    border-radius: var(--ds-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.vq-question-img-wrap img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.vq-question-prompt {
    font-weight: 600;
    color: var(--ds-ink);
    margin-bottom: 20px;
}

.vq-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.vq-answer-btn {
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--ds-line);
    border-radius: var(--ds-radius-sm);
    padding: 13px 18px;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ds-ink);
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .15s;
}
.vq-answer-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: var(--color-primary-90);
}
.vq-answer-btn:disabled { cursor: default; }
.vq-answer-btn.is-correct {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}
.vq-answer-btn.is-wrong {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.vq-next-btn {
    width: 100%;
    font-size: .95rem;
}

/* ---- Result screen ---- */
.vq-result-icon {
    font-size: 3.4rem;
    margin-bottom: 10px;
    line-height: 1;
}
.vq-result-score {
    color: var(--ds-muted);
    font-size: 1.02rem;
    margin-bottom: 26px;
}
.vq-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .vq-panel { padding: 28px 20px; }
    .vq-question-img-wrap { width: 130px; height: 130px; }
}
