.ev-student-test {
    --test-primary: #006bd6;
    --test-primary-dark: #004c99;
    --test-navy: #061b34;
    --test-text: #26394d;
    --test-muted: #526a82;
    --test-border: #dce6f0;
    --test-surface: #f4f9ff;
    --test-accent: #cbe45e;

    width: min(56.25rem, calc(100vw - 2rem));
    max-width: none !important;
    margin: clamp(2.25rem, 5vw, 4rem) 0;
    margin-left: 50%;
    transform: translateX(-50%);
    scroll-margin-top: 6rem;
    color: var(--test-text);
    font-size: 1rem;
    line-height: 1.6;
}

.ev-student-test *,
.ev-student-test *::before,
.ev-student-test *::after {
    box-sizing: border-box;
}

.ev-student-test [hidden] {
    display: none !important;
}

.ev-student-test__stage {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--test-border);
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(145deg, #fff 0%, var(--test-surface) 100%);
    box-shadow: 0 1.25rem 3.5rem rgba(9, 38, 71, .09);
}

.ev-student-test__title,
.ev-student-test__question-title,
.ev-student-test__result-title,
.ev-student-test__result-box h3,
.ev-student-test__challenge h3 {
    color: var(--test-navy) !important;
}

.ev-student-test__title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.12;
}

.ev-student-test__lead {
    max-width: 42rem;
    margin: 1.35rem 0 .85rem;
    color: var(--test-navy);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 650;
    line-height: 1.55;
}

.ev-student-test__start > p:not(.ev-student-test__lead) {
    max-width: 42rem;
}

.ev-student-test__primary-action {
    margin-top: 1.15rem;
}

.ev-student-test__meta {
    margin: 1rem 0 0;
    color: var(--test-navy);
    font-size: .9rem;
    font-weight: 700;
}

.ev-student-test__note {
    margin: .45rem 0 0;
    color: var(--test-muted);
    font-size: .9rem;
}

.ev-student-test__progress-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.ev-student-test__progress-label {
    color: var(--test-navy);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
}

.ev-student-test__progress {
    display: block;
    flex: 1;
    height: .5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #d9e5f0;
}

.ev-student-test__progress-value {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: var(--test-primary);
    transition: width .25s ease;
}

.ev-student-test__question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ev-student-test__question-title {
    display: block;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.ev-student-test__answers {
    display: grid;
    gap: .85rem;
}

.ev-student-test__answer {
    position: relative;
    min-width: 0;
}

.ev-student-test__answer input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.ev-student-test__answer label {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    height: 100%;
    min-height: 5.5rem;
    padding: 1rem;
    border: 2px solid var(--test-border);
    border-radius: 1rem;
    background: #fff;
    color: var(--test-text);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.ev-student-test__answer label:hover {
    border-color: #8dbce8;
    background: #f8fbff;
}

.ev-student-test__answer input:focus-visible + label {
    outline: 3px solid var(--test-primary);
    outline-offset: 3px;
}

.ev-student-test__answer input:checked + label {
    border-color: var(--test-primary);
    background: #eaf4ff;
    color: var(--test-navy);
}

.ev-student-test__answer-letter {
    display: inline-grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--test-surface);
    color: var(--test-primary-dark);
    font-size: .9rem;
    font-weight: 800;
}

.ev-student-test__answer input:checked + label .ev-student-test__answer-letter {
    background: var(--test-primary);
    color: #fff;
}

.ev-student-test__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.75rem;
}

.ev-student-test__actions .btn {
    min-height: 2.75rem;
}

.ev-student-test__next {
    margin-left: auto;
}

.ev-student-test__next:disabled {
    border-color: #d5dee9;
    background: #d5dee9;
    color: #657990;
    cursor: not-allowed;
    opacity: 1;
}

.ev-student-test__results {
    background: #fff;
}

.ev-student-test__result {
    --result-bg: #0f6bc8;
    --result-text: #fff;
    --result-accent: #cbe45e;
}

.ev-student-test__result--tworca {
    --result-bg: #cbe45e;
    --result-text: #061b34;
    --result-accent: #061b34;
}

.ev-student-test__result--strateg {
    --result-bg: #6b3fc4;
}

.ev-student-test__result--lacznik {
    --result-bg: #c2185b;
}

.ev-student-test__result-header {
    padding: clamp(1.35rem, 4vw, 2rem);
    border-radius: 1.25rem;
    background: var(--result-bg);
    color: var(--result-text);
}

.ev-student-test__eyebrow {
    margin: 0;
    color: var(--result-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.ev-student-test__result-title {
    margin: .55rem 0 0;
    color: var(--result-text) !important;
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 1;
}

.ev-student-test__result-lead {
    margin: 1.15rem 0 0;
    color: inherit;
    font-size: clamp(1.12rem, 2.5vw, 1.45rem);
    font-weight: 750;
    line-height: 1.4;
}

.ev-student-test__result-intro {
    margin: .75rem 0 0;
    color: inherit;
}

.ev-student-test__result-description {
    max-width: 42rem;
    margin: 1.6rem 0;
}

.ev-student-test__result-box,
.ev-student-test__challenge {
    margin-top: 1rem;
    padding: clamp(1.2rem, 3vw, 1.65rem);
    border: 1px solid var(--test-border);
    border-radius: 1.1rem;
    background: #fff;
}

.ev-student-test__result-box h3,
.ev-student-test__challenge h3 {
    margin: 0 0 .7rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.ev-student-test__result-box p,
.ev-student-test__challenge p {
    margin: 0;
    color: var(--test-navy);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.5;
}

.ev-student-test__result-box ul {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding-left: 1.2rem;
}

.ev-student-test__result-box li {
    padding-left: .25rem !important;
    background: none !important;
}

.ev-student-test__result-box li::marker {
    color: var(--test-primary);
}

.ev-student-test__challenge {
    border-color: transparent;
    background: var(--test-accent);
}

.ev-student-test__download {
    margin-top: 1.5rem;
    color: #fff !important;
    text-decoration: none !important;
}

.ev-student-test__result-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--test-border);
}

.ev-student-test__result-footer p {
    margin: 0 0 .75rem;
}

.ev-student-test__result-footer .btn {
    margin-top: .65rem;
}

.ev-student-test__noscript {
    margin: 1rem 0 0;
    padding: 1rem;
    border: 2px solid #b00020;
    border-radius: .75rem;
    background: #fff;
    color: #8b0019;
    font-weight: 700;
}

@media (min-width: 48rem) {
    .ev-student-test__answers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ev-student-test__answer label {
        padding: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-student-test *,
    .ev-student-test *::before,
    .ev-student-test *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

html[data-layout-contrast="black-yellow"] .ev-student-test {
    --test-primary: #ff0;
    --test-primary-dark: #000;
    --test-navy: #ff0;
    --test-text: #fff;
    --test-muted: #fff;
    --test-border: #ff0;
    --test-surface: #000;
    --test-accent: #ff0;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__stage,
html[data-layout-contrast="black-yellow"] .ev-student-test__answer label,
html[data-layout-contrast="black-yellow"] .ev-student-test__result-box,
html[data-layout-contrast="black-yellow"] .ev-student-test__result-footer,
html[data-layout-contrast="black-yellow"] .ev-student-test__noscript {
    border-color: #ff0 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__progress {
    border: 1px solid #fff;
    background: #000;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__progress-value,
html[data-layout-contrast="black-yellow"] .ev-student-test__answer input:checked + label,
html[data-layout-contrast="black-yellow"] .ev-student-test__answer input:checked + label .ev-student-test__answer-letter {
    background: #ff0 !important;
    color: #000 !important;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__answer-letter {
    border: 1px solid #ff0;
    background: #000;
    color: #ff0;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__answer input:focus-visible + label {
    outline-color: #ff0;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__result-header {
    border: 2px solid #ff0;
    background: #000 !important;
    color: #fff !important;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__eyebrow,
html[data-layout-contrast="black-yellow"] .ev-student-test__result-title,
html[data-layout-contrast="black-yellow"] .ev-student-test__result-box h3,
html[data-layout-contrast="black-yellow"] .ev-student-test__challenge h3 {
    color: #ff0 !important;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__challenge {
    border: 2px solid #ff0;
    background: #ff0 !important;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__challenge h3,
html[data-layout-contrast="black-yellow"] .ev-student-test__challenge p {
    color: #000 !important;
}

html[data-layout-contrast="black-yellow"] .ev-student-test__download {
    color: #000 !important;
}

@media (forced-colors: active) {
    .ev-student-test__answer label,
    .ev-student-test__stage,
    .ev-student-test__result-header,
    .ev-student-test__result-box,
    .ev-student-test__challenge {
        border: 2px solid CanvasText;
    }

    .ev-student-test__answer input:checked + label {
        border-color: Highlight;
    }
}
