:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #182e40;
    background: #f1f7fa;
    font-size: 16px;
    line-height: 1.6;
    color-scheme: light;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: radial-gradient(ellipse at 100% 0, #dff4f0, transparent 45%);
}
a {
    color: #1268b4;
}
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid #e58a30;
    outline-offset: 4px;
}
button,
.participant-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 0;
    border-radius: 12px;
    background: #1672c1;
    color: #fff;
    min-height: 48px;
    padding: 12px 23px;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
button:hover,
.participant-button:hover {
    background: #115b9a;
}
button:disabled {
    opacity: 0.65;
    cursor: wait;
}
.participant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1060px;
    margin: auto;
    padding: 22px 26px;
    border-bottom: 1px solid #dbe7ee;
}
.participant-header img {
    width: 165px;
    height: 68px;
    object-fit: contain;
}
.participant-header span {
    font-size: 0.85rem;
    color: #536d7b;
}
.participant-main {
    max-width: 810px;
    margin: 0 auto;
    padding: 38px 24px 65px;
    min-height: 72vh;
}
.participant-intro {
    margin: 0 0 26px;
}
.participant-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1268b4;
    font-weight: 700;
}
h1 {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
    margin: 0.7rem 0 1rem;
}
h2 {
    font-size: 1.25rem;
    line-height: 1.35;
}
h3 {
    font-size: 1.05rem;
}
p {
    color: #4d6371;
}
.participant-card,
.participant-question {
    background: #fff;
    border: 1px solid #d9e5ed;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 5px 24px #163f5a04;
    margin: 18px 0;
}
.participant-card h2:first-child {
    margin-top: 0;
}
.participant-card p {
    margin-bottom: 22px;
}
.participant-search {
    margin-bottom: 28px;
}
.participant-search > div {
    display: flex;
    gap: 10px;
}
.participant-search input {
    min-width: 0;
    flex: 1;
}
input:not([type="radio"]):not([type="checkbox"]),
textarea {
    font: inherit;
    width: 100%;
    border: 1px solid #c5d6e2;
    border-radius: 10px;
    padding: 13px 15px;
    background: #fbfdff;
    color: #182e40;
}
textarea {
    resize: vertical;
}
label {
    display: block;
    font-weight: 550;
    margin: 10px 0;
}
small {
    font-weight: 400;
    color: #617685;
}
.participant-choice {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #dce6ed;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 400;
    background: #fbfdff;
}
.participant-choice:has(input:checked) {
    border-color: #2785cf;
    background: #edf6ff;
}
.participant-choice input {
    width: 20px;
    height: 20px;
    accent-color: #1672c1;
    flex-shrink: 0;
}
.participant-question {
    min-inline-size: 0;
    padding-top: 14px;
}
.participant-question legend {
    font-weight: 650;
    line-height: 1.5;
    padding: 0 7px;
    max-width: 100%;
    float: left;
    width: 100%;
    margin: 9px 0 18px;
}
.participant-question legend + * {
    clear: both;
}
.participant-required {
    color: #b84d2d;
}
.participant-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.participant-rating label {
    position: relative;
    flex: 1;
    min-width: 40px;
    margin: 0;
}
.participant-rating input {
    position: absolute;
    opacity: 0;
}
.participant-rating span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    border: 1px solid #c7d8e4;
    border-radius: 10px;
    font-weight: 650;
    background: #f9fcff;
}
.participant-rating input:checked + span {
    background: #1672c1;
    color: #fff;
    border-color: #1672c1;
}
.participant-rating input:focus-visible + span {
    outline: 3px solid #e58a30;
    outline-offset: 3px;
}
.participant-scale {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    font-size: 0.8rem;
}
.participant-scale small:last-child {
    text-align: right;
}
.participant-section-title {
    margin: 35px 0 20px;
}
.participant-progress {
    position: sticky;
    top: 0;
    background: #f1f7faed;
    backdrop-filter: blur(12px);
    padding: 12px 0 8px;
    z-index: 2;
    font-size: 0.85rem;
    color: #356078;
}
.participant-progress progress {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: 7px;
    accent-color: #19a48e;
}
.participant-code {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 24px;
    border: 1px solid #acdacf;
    background: #e9f7f2;
    border-radius: 15px;
    margin: 22px 0;
}
.participant-code strong {
    font-family: ui-monospace, monospace;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}
.participant-code span {
    font-size: 0.84rem;
    color: #3c6d65;
}
.participant-note {
    font-size: 0.86rem;
}
.participant-submit {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.participant-submit p {
    font-size: 0.8rem;
}
.participant-footer {
    text-align: center;
    padding: 25px;
    color: #637b89;
    font-size: 0.83rem;
}
.participant-errors {
    border: 1px solid #e8beb9;
    background: #fff1ef;
    padding: 18px 22px;
    border-radius: 14px;
    color: #9a3e35;
}
.participant-field-error {
    color: #a33428;
    font-size: 0.88rem;
}
.participant-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.participant-result {
    text-align: center;
    padding: 38px 26px;
}
.participant-result > strong {
    font-size: 4rem;
    line-height: 1.1;
    color: #1169ac;
}
.participant-result > strong span {
    font-size: 1.8rem;
    color: #7892a2;
}
.participant-result h2 {
    margin-top: 5px;
}
.participant-gain {
    color: #16765f;
    font-weight: 600;
}
.quiz-correct {
    color: #16765f;
    font-weight: 650;
}
.quiz-incorrect {
    color: #ae482d;
    font-weight: 650;
}
.participant-trap,
.participant-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
fieldset {
    border: 0;
    margin: 20px 0;
    padding: 0;
}
legend {
    font-weight: 600;
}
@media (max-width: 520px) {
    .participant-header {
        padding: 15px 20px;
    }
    .participant-header img {
        width: 130px;
        height: 55px;
    }
    .participant-header span {
        max-width: 100px;
        font-size: 0.74rem;
        text-align: right;
    }
    .participant-main {
        padding: 26px 16px 40px;
    }
    .participant-card,
    .participant-question {
        padding: 19px 18px;
    }
    .participant-question {
        padding-top: 8px;
    }
    .participant-rating {
        gap: 6px;
    }
    .participant-scale {
        gap: 10px;
    }
    .participant-search > div,
    .participant-submit {
        flex-direction: column;
    }
    .participant-submit button {
        width: 100%;
    }
    .participant-code strong {
        font-size: 1.1rem;
    }
}
@media (prefers-reduced-motion: no-preference) {
    button,
    .participant-choice {
        transition:
            background 0.15s,
            border-color 0.15s;
    }
}
@media print {
    .participant-header,
    .participant-footer,
    .participant-progress,
    .participant-submit {
        display: none;
    }
    .participant-main {
        max-width: none;
        padding: 0;
    }
    .participant-question,
    .participant-card {
        box-shadow: none;
        break-inside: avoid;
    }
}
