:root {
    --bg:         transparent;
    --card:       #fff;
    --text:       #222;
    --text-head:  #333;
    --text-sub:   #888;
    --text-muted: #6b7280;
    --text-mid:   #555;
    --brand:      #00c4b4;
    --ok:         #16a34a;
    --bad:        #dc2626;
    --border:     #ddd;
    --light-gray: #e5e7eb;
    --dark-gray:  #6b7280;
    --bg-hover:   #e6f3f2;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
html, body {
    background: var(--bg);
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    margin: 0; padding: 0;
    scroll-behavior: smooth;
}
.quiz-container {
    max-width: 720px;
    margin: 0 auto 20px auto;
    padding: 0 3px;
    box-sizing: border-box;
    position: relative;
}
.quiz-main-container {
    position: relative;
    min-height: 400px;
    background-color: transparent;
    padding: 15px 0;
}
.quiz-block {
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.quiz-block:last-child { border-bottom: none; margin-bottom: 0; }

.quiz-block-counter {
    font-size: 16.8px; color: var(--text-sub);
    margin: 0 0 10px; font-weight: 700;
}
.quiz-question-title {
    font-size: 19.2px; font-weight: 800;
    color: var(--text-head); margin: 0 0 20px; line-height: 1.4;
}

.choices     { display: flex; flex-direction: column; gap: 10px; }
.choice-item { position: relative; }
.choice-radio { display: none; }

.choice-label {
    display: flex; align-items: center; width: 100%;
    padding: 12px 15px; padding-right: 80px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 0; cursor: pointer;
    font-size: 16.8px; font-weight: 400;
    transition: all 0.2s ease; position: relative;
    user-select: none; box-sizing: border-box; color: var(--text);
}
.choice-prefix {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 42px; height: 42px; margin-right: 12px;
    border-radius: 50%; background-color: var(--light-gray);
    font-weight: 700; color: var(--dark-gray); transition: all 0.2s ease;
}
.choice-text { flex-grow: 1; }

.percentage {
    display: none; position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%);
    font-size: 11.2px; font-weight: 700; font-style: italic;
    color: var(--dark-gray); white-space: nowrap;
    min-width: 52px; text-align: right;
}
.quiz-block.answered .choice-label .percentage { display: inline-block; }
.quiz-block.answered .choice-radio[value="correct"]:checked + .choice-label .percentage {
    color: rgba(255,255,255,0.9);
}

.quiz-block:not(.answered) .choice-label:hover { background: var(--bg-hover); border-color: var(--brand); }
.quiz-block:not(.answered) .choice-label:hover .choice-prefix { background-color: var(--brand); color: #fff; }

.quiz-block.answered .choice-label { cursor: default; color: var(--text); }
.quiz-block.answered .choice-radio:not(:checked) + .choice-label { opacity: 1 !important; }
.quiz-block.answered .choice-radio[value="correct"]:checked + .choice-label {
    background: var(--ok); color: #fff; border-color: var(--ok);
}
.quiz-block.answered .choice-radio[value="correct"]:checked + .choice-label .choice-prefix {
    background: #fff; color: var(--ok);
}

.stat-line {
    display: none;
    font-size: 11.2px; font-style: italic; color: var(--text-sub);
    margin-top: 10px; margin-bottom: 4px;
}
.total-line {
    display: none;
    font-size: 11.2px; font-style: italic; color: var(--text-muted);
    margin-bottom: 4px;
}
.quiz-block.answered .stat-line  { display: block; }
.quiz-block.answered .total-line { display: block; }

.box-controls { display: none; }

.quiz-footer {
    display: flex; gap: 10px; margin: 40px auto;
    max-width: 720px; padding: 0 3px;
}
.footer-box {
    flex: 1; background: var(--card); border: 1px solid var(--border);
    border-radius: 0; padding: 12px 15px; text-align: center;
    font-size: 16.8px; display: flex; align-items: center;
    justify-content: center; min-height: 48px; box-sizing: border-box;
}
.score-box  { color: var(--text-head); font-weight: 700; text-transform: uppercase; }
#user-score { color: var(--brand); font-weight: 800; margin-left: 5px; }
.cta-box {
    background-color: var(--card); color: var(--text);
    font-weight: 700; text-decoration: none;
    transition: all 0.2s ease; cursor: pointer;
}
.cta-box:hover { background-color: var(--ok); color: #fff; border-color: var(--ok); }

.demo-grid { display: flex; gap: 16px; align-items: flex-start; }
.demo-col  { flex: 1; }
.demo-col .choice-prefix { display: none; }
.demo-col .choice-label  { padding-right: 15px; font-size: 15.6px; }

#content-q4 .stat-line  { display: none !important; }
#content-q4 .total-line { display: none !important; }
#content-q4 .percentage { display: none !important; }

#content-q4 .choice-radio[value="correct"]:checked + .choice-label {
    background: var(--brand); color: #fff; border-color: var(--brand);
}
#content-q4.answered .choice-label { cursor: default; }

.survey-complete-msg {
    display: none; background: #f0fdf4;
    border: 1px solid var(--ok); border-radius: 0;
    padding: 14px 16px; margin-top: 20px;
    font-size: 15.6px; color: #166534; font-weight: 700; text-align: center;
}
#content-q4.answered .survey-complete-msg { display: block; }

@media (max-width: 420px) { .demo-grid { flex-direction: column; } }

.ey {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: #ccc; letter-spacing: .08em;
    font-style: italic; margin-bottom: 16px;
}
.ey::before, .ey::after { content: ''; flex: 1; height: 1px; background: #eee; }
.survey-title {
    font-size: 21px; font-weight: 800; color: var(--text-head);
    margin: 0 0 8px; line-height: 1.35;
}
.intro { margin-bottom: 22px; }
.intro-sub { font-size: 14px; color: #666; line-height: 1.7; }

.hidden-block { display: none; }
.quiz-block.final-block.answered .survey-complete-msg { display: block; }