.candidate-check-page {
    --candidate-ink: #102f4f;
    --candidate-muted: #5d7185;
    --candidate-blue: #1769aa;
    --candidate-blue-strong: #0d4f86;
    --candidate-cyan: #20a6c7;
    --candidate-surface: #ffffff;
    --candidate-soft: #eef8fc;
    --candidate-soft-strong: #dff2f9;
    --candidate-border: rgba(23, 105, 170, 0.18);
    --candidate-shadow: 0 24px 70px rgba(16, 47, 79, 0.11);
    --candidate-radius: 28px;
    color: var(--candidate-ink);
    font-family: "Source Sans 3", sans-serif;
    overflow-x: clip;
}

.candidate-check-page *,
.candidate-check-page *::before,
.candidate-check-page *::after {
    box-sizing: border-box;
}

.candidate-check-page [hidden] {
    display: none !important;
}

.candidate-check-kicker {
    align-items: center;
    color: var(--candidate-blue);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 750;
    gap: 0.55rem;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.candidate-check-kicker::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 2px;
    width: 26px;
}

/* Closes the flow card so the disclaimer stays visible through every step. */
.candidate-check-disclaimer {
    align-items: flex-start;
    border-top: 1px solid var(--candidate-border);
    color: var(--candidate-muted);
    display: flex;
    font-size: 0.88rem;
    gap: 0.65rem;
    line-height: 1.55;
    margin: 0;
    padding: 1rem clamp(1.4rem, 4vw, 3.2rem);
}

.candidate-check-disclaimer svg {
    color: var(--candidate-blue);
    flex: 0 0 auto;
    height: 17px;
    margin-top: 0.15rem;
    width: 17px;
}

.candidate-check-tool {
    background: #f8fbfd;
    padding: 6.5rem 0;
}

.candidate-check-section-heading {
    margin: 0 auto 3rem;
    max-width: 760px;
    text-align: center;
}

.candidate-check-section-heading h2 {
    color: var(--candidate-ink);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 660;
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 1rem 0 1.1rem;
    text-wrap: balance;
}

.candidate-check-section-heading p {
    color: var(--candidate-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0;
}

.candidate-check-flow {
    background: var(--candidate-surface);
    border: 1px solid var(--candidate-border);
    border-radius: var(--candidate-radius);
    box-shadow: var(--candidate-shadow);
    min-height: 590px;
    padding: clamp(1.4rem, 4vw, 3.2rem);
}

.candidate-check-stage {
    animation: candidate-stage-in 320ms ease both;
}

@keyframes candidate-stage-in {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candidate-check-stage__heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.candidate-check-stage__heading > span {
    align-items: center;
    background: var(--candidate-soft);
    border-radius: 13px;
    color: var(--candidate-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    letter-spacing: 0.08em;
    width: 42px;
}

.candidate-check-stage__heading h3 {
    color: var(--candidate-ink);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 660;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0;
}

.candidate-check-stage__heading p {
    color: var(--candidate-muted);
    line-height: 1.55;
    margin: 0.45rem 0 0;
}

.candidate-check-groups {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-check-group,
.candidate-check-treatment {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid var(--candidate-border);
    border-radius: 18px;
    color: var(--candidate-ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.9rem;
    min-height: 88px;
    padding: 1rem;
    text-align: left;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 100%;
}

.candidate-check-group:hover,
.candidate-check-treatment:hover {
    border-color: rgba(23, 105, 170, 0.45);
    box-shadow: 0 13px 30px rgba(16, 47, 79, 0.08);
    transform: translateY(-2px);
}

.candidate-check-group[aria-pressed="true"] {
    background: var(--candidate-soft);
    border-color: var(--candidate-blue);
}

.candidate-check-group__icon {
    align-items: center;
    background: var(--candidate-soft);
    border-radius: 14px;
    color: var(--candidate-blue);
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.candidate-check-group__icon svg {
    height: 22px;
    width: 22px;
}

.candidate-check-group__copy {
    display: grid;
    flex: 1 1 auto;
    gap: 0.18rem;
}

.candidate-check-group strong,
.candidate-check-treatment strong {
    font-size: 1.03rem;
    font-weight: 680;
    line-height: 1.25;
}

.candidate-check-group small,
.candidate-check-treatment span {
    color: var(--candidate-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

.candidate-check-group > svg {
    color: var(--candidate-blue);
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.candidate-check-treatments {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-check-treatment {
    align-items: flex-start;
    display: grid;
    gap: 0.3rem;
    grid-template-columns: minmax(0, 1fr);
    min-height: 96px;
    padding: 1.1rem 1.15rem;
}

.candidate-check-text-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--candidate-blue);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 650;
    gap: 0.5rem;
    margin-top: 1.5rem;
    min-height: 44px;
    padding: 0.4rem 0;
}

.candidate-check-text-button svg {
    height: 18px;
    width: 18px;
}

.candidate-check-progress-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.candidate-check-progress-row > span:last-child {
    color: var(--candidate-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.candidate-check-progress {
    background: #dbe9f1;
    border-radius: 999px;
    height: 7px;
    margin-bottom: 2.8rem;
    overflow: hidden;
}

.candidate-check-progress span {
    background: linear-gradient(90deg, var(--candidate-blue), var(--candidate-cyan));
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 260ms ease;
    width: var(--candidate-progress, 25%);
}

.candidate-check-question {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.candidate-check-question legend {
    color: var(--candidate-ink);
    float: none;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0;
    max-width: 760px;
    padding: 0;
    width: auto;
}

.candidate-check-question > p {
    color: var(--candidate-muted);
    line-height: 1.6;
    margin: 0.85rem 0 1.7rem;
}

.candidate-check-options {
    display: grid;
    gap: 0.75rem;
}

.candidate-check-option {
    align-items: center;
    background: #fff;
    border: 1px solid var(--candidate-border);
    border-radius: 16px;
    color: var(--candidate-ink);
    cursor: pointer;
    display: flex;
    font-weight: 630;
    gap: 0.9rem;
    line-height: 1.35;
    min-height: 58px;
    padding: 0.85rem 1rem;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.candidate-check-option:hover {
    border-color: rgba(23, 105, 170, 0.45);
}

.candidate-check-option:has(input:checked) {
    background: var(--candidate-soft);
    border-color: var(--candidate-blue);
}

/* Custom radio: the native control renders at fractional size under the body zoom
   and gets clipped; the dot is a centered gradient so it stays concentric at any scale. */
.candidate-check-option input[type="radio"] {
    appearance: none;
    background: var(--color-surface-warm);
    border: 1.5px solid color-mix(in srgb, var(--color-muted) 60%, var(--color-surface-warm));
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
    height: 20px;
    margin: 0;
    transition: border-color 150ms ease;
    width: 20px;
}

.candidate-check-option:hover input[type="radio"] {
    border-color: color-mix(in srgb, var(--color-primary) 60%, var(--color-surface-warm));
}

.candidate-check-option input[type="radio"]:checked {
    background: radial-gradient(circle closest-side, var(--color-surface-warm) 44%, var(--color-primary) 52%);
    border-color: var(--color-primary);
}

.candidate-check-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    margin-top: 2.2rem;
}

.candidate-check-button {
    align-items: center;
    appearance: none;
    background: var(--candidate-blue);
    border: 1px solid var(--candidate-blue);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 0.55rem;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.5rem;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.candidate-check-button:hover:not(:disabled) {
    background: var(--candidate-blue-strong);
    border-color: var(--candidate-blue-strong);
    box-shadow: 0 12px 25px rgba(23, 105, 170, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.candidate-check-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.candidate-check-button--secondary {
    background: transparent;
    border-color: var(--candidate-border);
    color: var(--candidate-blue);
}

.candidate-check-button--secondary:hover:not(:disabled) {
    background: var(--candidate-soft);
    border-color: var(--candidate-blue);
    color: var(--candidate-blue-strong);
}

.candidate-check-group:focus-visible,
.candidate-check-treatment:focus-visible,
.candidate-check-text-button:focus-visible,
.candidate-check-button:focus-visible,
.candidate-check-documents:focus-visible,
.candidate-check-option:has(input:focus-visible) {
    outline: 3px solid rgba(23, 105, 170, 0.35);
    outline-offset: 3px;
}

.candidate-check-result {
    background: var(--candidate-soft);
    border: 1px solid var(--candidate-border);
    border-radius: 24px;
    min-height: 500px;
    padding: clamp(1.5rem, 4vw, 2.8rem);
}

.candidate-check-result__label {
    color: var(--candidate-blue);
    display: block;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.candidate-check-result h3 {
    color: var(--candidate-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 670;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin: 0;
}

.candidate-check-result__body {
    color: var(--candidate-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 1rem 0 1.5rem;
    max-width: 720px;
}

.candidate-check-result__reasons {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 105, 170, 0.12);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
}

.candidate-check-result__reasons h4 {
    color: var(--candidate-ink);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
}

.candidate-check-result__reasons ul {
    display: grid;
    gap: 0.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Question above its answer: the answer stays next to the text it belongs to
   however wide the card gets, instead of being pushed to a far right column. */
.candidate-check-result__reasons li {
    align-items: start;
    display: grid;
    gap: 0.2rem;
    grid-template-columns: minmax(0, 1fr);
}

.candidate-check-result__reasons li span {
    color: var(--candidate-muted);
}

.candidate-check-result__reasons li strong {
    color: var(--candidate-ink);
    font-weight: 680;
}

.candidate-check-result__privacy {
    align-items: center;
    color: var(--candidate-muted);
    display: flex;
    font-size: 0.9rem;
    gap: 0.6rem;
    margin: 1.2rem 0 0;
}

.candidate-check-result__privacy svg {
    color: var(--candidate-blue);
    height: 17px;
    width: 17px;
}

.candidate-check-actions--result {
    justify-content: flex-start;
}

.candidate-check-status,
.candidate-check-form__status {
    color: #a13d32;
    font-size: 0.92rem;
    font-weight: 620;
    line-height: 1.45;
    margin: 1rem 0 0;
    min-height: 1.35rem;
}

/* The form status only takes room once there is a message, so the submit row
   sits at the form's normal spacing below the consents. */
.candidate-check-form__status:empty {
    display: none;
}

.candidate-check-fallback {
    background: var(--candidate-soft);
    border: 1px solid var(--candidate-border);
    border-radius: 18px;
    padding: 1.4rem;
}

.candidate-check-fallback p {
    color: var(--candidate-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.candidate-check-fallback a {
    text-decoration: none;
}

.candidate-check-form-panel {
    border-top: 1px solid var(--candidate-border);
    margin-top: 2.7rem;
    padding-top: 2.7rem;
}

.candidate-check-form-panel__heading h3 {
    color: var(--candidate-ink);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 660;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0.9rem 0 0.7rem;
}

.candidate-check-form-panel__heading p {
    color: var(--candidate-muted);
    line-height: 1.6;
    margin: 0 0 1.7rem;
}

.candidate-check-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-check-field {
    display: grid;
    gap: 0.45rem;
}

.candidate-check-field--wide {
    grid-column: 1 / -1;
}

.candidate-check-field label,
.candidate-check-consents legend {
    color: var(--candidate-ink);
    font-size: 0.92rem;
    font-weight: 680;
}

.candidate-check-field input {
    background: #f7fafc;
    border: 1px solid var(--candidate-border);
    border-radius: 13px;
    color: var(--candidate-ink);
    font: inherit;
    min-height: 51px;
    padding: 0.75rem 0.9rem;
    width: 100%;
}

.candidate-check-field input:focus {
    background: var(--candidate-surface);
    box-shadow: none;
    outline: 0;
}

.candidate-check-field .iti {
    width: 100%;
}

.candidate-check-form.was-validated input:invalid,
.candidate-check-field input.is-invalid {
    border-color: #b84c43;
}

.candidate-check-consents {
    border: 0;
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
}

.candidate-check-consents legend {
    float: none;
    margin-bottom: 0.75rem;
    padding: 0;
    width: auto;
}

.candidate-check-consents label {
    align-items: center;
    background: #fff;
    border: 1px solid var(--candidate-border);
    border-radius: 16px;
    color: var(--candidate-muted);
    cursor: pointer;
    display: flex;
    font-size: 0.88rem;
    gap: 0.65rem;
    line-height: 1.45;
    margin: 0;
    padding: 0.7rem 0.9rem;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.candidate-check-consents label:hover {
    border-color: rgba(23, 105, 170, 0.45);
}

.candidate-check-consents label:has(input:checked) {
    background: var(--candidate-soft);
    border-color: var(--candidate-blue);
}

.candidate-check-consents label:has(input:focus-visible) {
    outline: 3px solid rgba(23, 105, 170, 0.35);
    outline-offset: 3px;
}

.candidate-check-consents a {
    color: var(--candidate-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.candidate-check-form__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.35rem;
}

.candidate-check-form__actions > span {
    align-items: center;
    color: var(--candidate-muted);
    display: inline-flex;
    font-size: 0.88rem;
    gap: 0.45rem;
}

.candidate-check-form__actions svg {
    height: 17px;
    width: 17px;
}

.candidate-check-button--submit.is-submitting,
.candidate-check-form.is-submitting .candidate-check-button--submit {
    opacity: 0.68;
}

/* The document link sits beside submit as a secondary pill. */
.candidate-check-form__buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.candidate-check-documents {
    text-align: center;
    text-decoration: none;
}

.candidate-check-noscript {
    background: #fff8e8;
    border: 1px solid rgba(194, 125, 20, 0.25);
    border-radius: 14px;
    color: #6d5122;
    line-height: 1.55;
    margin: 1.5rem 0 0;
    padding: 1rem;
}

.candidate-check-noscript a {
    color: var(--candidate-blue-strong);
    font-weight: 700;
}

.candidate-check-scope {
    background: var(--candidate-surface);
    padding: 6rem 0 2.3rem;
}

.candidate-check-process {
    background: var(--candidate-surface);
    padding: 1rem 0 6rem;
}

.candidate-check-process__steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-check-process__steps article {
    background: var(--candidate-soft);
    border: 1px solid var(--candidate-border);
    border-radius: 22px;
    min-height: 245px;
    padding: 1.6rem;
}

.candidate-check-process__steps article > span {
    color: var(--candidate-blue);
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 2.4rem;
}

.candidate-check-process__steps h3 {
    color: var(--candidate-ink);
    font-size: 1.35rem;
    font-weight: 680;
    margin: 0 0 0.7rem;
}

.candidate-check-process__steps p {
    color: var(--candidate-muted);
    line-height: 1.62;
    margin: 0;
}

.candidate-check-faq {
    background: #f2f8fb;
    padding: 6rem 0;
}

@media (max-width: 767px) {
    .candidate-check-process__steps {
        grid-template-columns: 1fr;
    }

    .candidate-check-tool,
    .candidate-check-scope,
    .candidate-check-process,
    .candidate-check-faq {
        padding-bottom: 4.5rem;
        padding-top: 4.5rem;
    }

    .candidate-check-scope {
        padding-bottom: 1.5rem;
    }

    .candidate-check-process {
        padding-top: 0.5rem;
    }

    .candidate-check-groups,
    .candidate-check-treatments,
    .candidate-check-form__grid {
        grid-template-columns: 1fr;
    }

    .candidate-check-field--wide {
        grid-column: auto;
    }

}

@media (max-width: 575px) {
    .candidate-check-flow {
        border-radius: 20px;
        min-height: 0;
        padding: 1.25rem;
    }

    .candidate-check-stage__heading {
        gap: 0.75rem;
    }

    .candidate-check-group,
    .candidate-check-treatment {
        min-height: 82px;
    }

    .candidate-check-actions,
    .candidate-check-actions--result {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    /* Submit stacks on top, the document button under it, then the trust note. */
    .candidate-check-form__actions {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 12px;
    }

    .candidate-check-form__actions > span {
        align-self: center;
        justify-content: center;
    }

    .candidate-check-form__buttons {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    /* Inline arrow so it follows the last word when a long translation wraps. */
    .candidate-check-form__actions .candidate-check-documents {
        display: block;
        line-height: 1.45;
        padding-block: 0.75rem;
    }

    .candidate-check-documents svg {
        display: inline-block;
        margin-left: 0.4rem;
        vertical-align: -0.2em;
    }

    .candidate-check-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .candidate-check-page *,
    .candidate-check-page *::before,
    .candidate-check-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Site-aligned public tool treatment */
.candidate-check-page {
    --candidate-ink: var(--color-ink-strong);
    --candidate-muted: var(--color-muted);
    --candidate-blue: var(--color-primary);
    --candidate-blue-strong: var(--color-primary-dark);
    --candidate-surface: var(--color-surface-warm);
    --candidate-soft: var(--color-surface-soft);
    --candidate-soft-strong: var(--color-primary-soft);
    --candidate-border: var(--color-line-soft);
    --candidate-shadow: var(--tool-panel-shadow);
    color: var(--color-body);
    font-family: inherit;
}

.candidate-check-kicker {
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
}

.candidate-check-kicker::before {
    display: none;
}

.candidate-check-disclaimer {
    padding: 16px var(--tool-pane-padding);
}

.candidate-check-tool,
.candidate-check-scope,
.candidate-check-process,
.candidate-check-faq {
    padding: var(--public-section-y) 0;
}

.candidate-check-tool,
.candidate-check-faq {
    background: var(--color-surface-soft);
}

.candidate-check-scope,
.candidate-check-process {
    background: var(--color-surface-warm);
}

.candidate-check-scope {
    padding-bottom: clamp(28px, 3.5vw, 44px);
}

.candidate-check-process {
    padding-top: clamp(28px, 3.5vw, 44px);
}

.candidate-check-section-heading {
    margin: 0 0 clamp(28px, 4vw, 48px);
    max-width: var(--public-content-max);
    text-align: left;
}

.candidate-check-section-heading h2 {
    color: var(--color-ink-strong);
    font-size: var(--text-section-title);
    font-weight: var(--weight-semibold);
    letter-spacing: 0;
    line-height: 1.14;
    text-align: left;
    text-wrap: balance;
}

/* Scope intro sits beside what the check can and cannot tell you, the same
   split the cost calculator uses for its scope cards. */
.candidate-check-scope .container {
    align-items: start;
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.candidate-check-scope .candidate-check-section-heading {
    margin-bottom: 0;
}

.candidate-check-scope__body,
.candidate-check-scope__cards {
    display: grid;
    gap: 16px;
}

.candidate-check-scope__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-check-scope__card {
    border: 1px solid var(--color-line-soft);
}

.candidate-check-scope__icon {
    align-items: center;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.candidate-check-scope__icon svg {
    height: 20px;
    width: 20px;
}

.candidate-check-scope__card h3 {
    color: var(--color-ink-strong);
    font-size: 1.125rem;
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    margin: 16px 0 12px;
    text-wrap: balance;
}

.candidate-check-scope__card ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.candidate-check-scope__card li {
    align-items: start;
    color: var(--color-muted);
    display: grid;
    font-size: 0.98rem;
    gap: 10px;
    grid-template-columns: 16px 1fr;
    line-height: 1.55;
}

.candidate-check-scope__card li svg {
    color: var(--color-primary);
    height: 16px;
    margin-top: 4px;
    width: 16px;
}

.candidate-check-scope__card--cannot li svg {
    color: var(--color-muted);
}

/* Content provenance reads as one quiet row under the cards. */
.candidate-check-scope__meta {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--tool-item-radius);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.candidate-check-scope__meta > div {
    align-content: start;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px 18px;
}

.candidate-check-scope__meta > div + div {
    border-left: 1px solid var(--color-line-soft);
}

.candidate-check-scope__meta dt {
    align-items: center;
    color: var(--color-muted);
    display: flex;
    font-size: 0.82rem;
    font-weight: var(--weight-semibold);
    gap: 6px;
    line-height: 1.3;
}

.candidate-check-scope__meta dt svg {
    color: var(--color-primary);
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.candidate-check-scope__meta dd {
    color: var(--color-ink-strong);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.candidate-check-section-heading p {
    color: var(--color-muted);
    font-size: var(--text-body-lg);
    line-height: 1.65;
}

.candidate-check-flow {
    border-color: var(--color-line-soft);
    border-radius: var(--tool-panel-radius);
    box-shadow: var(--candidate-shadow);
    padding: 0;
    min-height: 0;
}

.candidate-check-stage,
.candidate-check-form-panel {
    padding: var(--tool-pane-padding);
}

/* The live status line sits in the flow padding and takes no space while empty. */
.candidate-check-flow > .candidate-check-status {
    margin: calc(var(--tool-pane-padding) * -0.5) 0 0;
    min-height: 0;
    padding: 0 var(--tool-pane-padding) var(--tool-pane-padding);
}

.candidate-check-flow > .candidate-check-status:empty {
    margin: 0;
    padding: 0;
}

.candidate-check-stage__heading {
    margin-bottom: 28px;
}

.candidate-check-stage__heading h3,
.candidate-check-form-panel__heading h3,
.candidate-check-question legend {
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: var(--weight-semibold);
    letter-spacing: 0;
    line-height: 1.2;
    text-wrap: balance;
}

.candidate-check-result h3 {
    font-size: clamp(1.45rem, 1.25rem + 0.8vw, 2rem);
    font-weight: var(--weight-semibold);
    letter-spacing: 0;
    line-height: 1.15;
}

/* Result and review form share the flow card: the result tints the top of the
   card instead of drawing a second bordered card inside it. The disclaimer
   always follows, so only the top corners are rounded. */
.candidate-check-result {
    border: 0;
    min-height: 0;
}

.candidate-check-flow > .candidate-check-result {
    border-radius: calc(var(--tool-panel-radius) - 1px) calc(var(--tool-panel-radius) - 1px) 0 0;
}

.candidate-check-result__label {
    font-size: 0.78rem;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.candidate-check-result__body {
    font-size: var(--text-body-lg);
    line-height: 1.6;
    margin: 12px 0 24px;
}

/* The answer recap spans the flow card like the option grid on the question
   step, so the result step fills the same width as every step before it. */
.candidate-check-result__reasons {
    background: var(--color-surface-warm);
    padding: 20px 22px;
}

.candidate-check-result__reasons h4 {
    font-size: 0.92rem;
    font-weight: var(--weight-semibold);
    margin: 0 0 14px;
}

.candidate-check-result__reasons ul {
    gap: 14px 28px;
}

.candidate-check-result__reasons li {
    font-size: 0.98rem;
    line-height: 1.45;
}

/* Two answers per row from tablet up: at full width a single column would
   leave the same empty half the recap is meant to fill. */
@media (min-width: 768px) {
    .candidate-check-result__reasons ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* A question that wraps to two lines would otherwise push its own answer
       below the answer beside it; subgrid keeps both rows on one baseline. */
    @supports (grid-template-rows: subgrid) {
        .candidate-check-result__reasons ul {
            grid-auto-rows: auto;
        }

        .candidate-check-result__reasons li {
            grid-row: span 2;
            grid-template-rows: subgrid;
        }
    }
}

.candidate-check-result__reasons li strong {
    font-weight: var(--weight-semibold);
}

/* The lock sits on the first text line, so a wrapped note keeps the icon at the
   top instead of floating between the two lines. */
.candidate-check-result__privacy {
    align-items: flex-start;
    font-size: 0.9rem;
    gap: 8px;
    line-height: 1.45;
    margin: 0;
}

.candidate-check-result__privacy svg {
    flex: 0 0 auto;
    height: 16px;
    margin-top: calc((1.45em - 16px) / 2);
    width: 16px;
}

/* The privacy note and the result buttons share one row: note on the left,
   buttons pushed right. When the note is too long they wrap and the buttons
   stay right-aligned on their own line. */
.candidate-check-result__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 24px;
}

.candidate-check-result__footer .candidate-check-result__privacy {
    flex: 1 1 280px;
}

.candidate-check-result__footer .candidate-check-actions {
    margin: 0 0 0 auto;
}

.candidate-check-actions {
    margin-top: 28px;
}

.candidate-check-button {
    font-size: 1.06rem;
    font-weight: var(--weight-semibold);
    padding: 0.7rem 1.5rem;
}

.candidate-check-form-panel {
    border-top: 1px solid var(--color-line-soft);
    margin-top: 0;
}

.candidate-check-form-panel__heading p {
    font-size: var(--text-body-lg);
    margin: 0 0 24px;
}

.candidate-check-form__grid {
    gap: 18px 16px;
}

.candidate-check-field {
    gap: 8px;
}

/* Consent rows reuse the answer-option look from the quiz step: a soft card
   that tints and takes the primary border once it is ticked. */
.candidate-check-consents {
    gap: 10px;
    margin-top: 24px;
}

.candidate-check-consents label {
    background: var(--color-surface-warm);
    border-color: var(--color-line-soft);
    border-radius: var(--tool-item-radius);
    color: var(--color-body);
    font-size: 0.96rem;
    font-weight: var(--weight-regular);
    gap: 12px;
    line-height: 1.45;
    padding: 12px 14px;
}

.candidate-check-consents label:has(input:checked) {
    background: var(--color-primary-soft);
    border-color: rgba(23, 105, 170, 0.34);
    color: var(--color-ink-strong);
}

/* Custom round checkbox, same reasoning as the quiz radio: the native box renders
   at a fractional size under the body zoom. Ticked, it fills with the primary
   color and shows an SVG check so it stays crisp at any scale. */
.candidate-check-consents input[type="checkbox"] {
    appearance: none;
    background: var(--color-surface-warm) center / 12px 12px no-repeat;
    border: 1.5px solid color-mix(in srgb, var(--color-muted) 60%, var(--color-surface-warm));
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
    height: 20px;
    margin: 0;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    width: 20px;
}

.candidate-check-consents label:hover input[type="checkbox"]:not(:checked) {
    border-color: color-mix(in srgb, var(--color-primary) 60%, var(--color-surface-warm));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.candidate-check-consents input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.candidate-check-form.was-validated .candidate-check-consents input[type="checkbox"]:invalid {
    border-color: rgba(180, 35, 24, 0.6);
}

.candidate-check-form.was-validated .candidate-check-consents label:has(input:invalid) {
    border-color: rgba(180, 35, 24, 0.42);
}

.candidate-check-consents label:has(input:focus-visible) {
    outline: 3px solid rgba(23, 105, 170, 0.24);
    outline-offset: 2px;
}

/* Same footer as the appointment short form: trust note on the left, submit
   pill on the right, split from the consents by a hairline. */
.candidate-check-form__actions {
    border-top: 1px solid var(--color-line-soft);
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 22px;
}

.candidate-check-form__actions > span {
    background: var(--color-primary-soft);
    border: 1px solid var(--color-line-soft);
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.55rem 0.9rem;
}

.candidate-check-form__actions > span svg {
    color: var(--color-primary);
    flex: 0 0 auto;
    height: 15px;
    width: 15px;
}

.candidate-check-form__actions .candidate-check-button--submit {
    min-height: 52px;
    padding-inline: 2.25rem;
}

.candidate-check-button--submit svg {
    transition: transform 180ms ease;
}

.candidate-check-button--submit:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.candidate-check-form__actions .candidate-check-documents {
    min-height: 52px;
    padding-inline: 1.5rem;
}

.candidate-check-groups,
.candidate-check-treatments {
    gap: 12px;
    grid-auto-rows: 1fr;
}

/* Every question has three short answers; side by side they stay compact now
   that the flow card spans the full container. */
.candidate-check-options {
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-check-option:hover {
    transform: none;
}

.candidate-check-stage__heading > span,
.candidate-check-group__icon,
.candidate-check-scope__icon {
    background: var(--color-primary-soft);
    border-radius: 10px;
    color: var(--color-primary);
}

.candidate-check-group,
.candidate-check-treatment,
.candidate-check-option,
.candidate-check-result,
.candidate-check-result__reasons,
.candidate-check-fallback {
    border-color: var(--color-line-soft);
    border-radius: var(--tool-item-radius);
    box-shadow: none;
}

.candidate-check-scope__card,
.candidate-check-process__steps article {
    border-color: var(--color-line-soft);
    border-radius: var(--tool-card-radius);
    box-shadow: none;
    padding: var(--tool-card-padding);
}

.candidate-check-group,
.candidate-check-treatment,
.candidate-check-option,
.candidate-check-scope__card {
    background: var(--color-surface-warm);
}

.candidate-check-group:hover,
.candidate-check-treatment:hover,
.candidate-check-button:hover:not(:disabled) {
    box-shadow: none;
    transform: none;
}

.candidate-check-group[aria-pressed="true"],
.candidate-check-option:has(input:checked) {
    background: var(--color-primary-soft);
    border-color: rgba(23, 105, 170, 0.34);
}

.candidate-check-progress span {
    background: var(--color-primary);
}

.candidate-check-button {
    background: var(--color-primary);
    box-shadow: none;
    min-height: 48px;
}

.candidate-check-button:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.candidate-check-button--secondary {
    background: var(--color-surface-warm);
    border-color: var(--color-line-soft);
    color: var(--color-primary-dark);
}

.candidate-check-button--secondary:hover:not(:disabled) {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.candidate-check-field input {
    background: var(--color-surface-soft);
    border-color: var(--color-line-soft);
    border-radius: 10px;
    min-height: 48px;
}

.candidate-check-process__steps article {
    background: var(--color-surface-soft);
    min-height: 0;
}

.candidate-check-process__steps h3 {
    font-size: 1.25rem;
    font-weight: var(--weight-semibold);
    letter-spacing: 0;
    line-height: 1.25;
    margin: 14px 0 10px;
    text-wrap: balance;
}

.candidate-check-process__steps p {
    font-size: 0.98rem;
    line-height: 1.6;
}

.candidate-check-process__steps article > span {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.candidate-check-group:focus-visible,
.candidate-check-treatment:focus-visible,
.candidate-check-text-button:focus-visible,
.candidate-check-button:focus-visible,
.candidate-check-documents:focus-visible,
.candidate-check-option:has(input:focus-visible) {
    box-shadow: none;
    outline: 3px solid rgba(23, 105, 170, 0.24);
    outline-offset: 2px;
}

/* Area picker: stacked cards instead of the arrow rows, so step 01 reads as a
   set of choices rather than a list of links. Selection is shown by the tinted
   surface, the filled icon badge and a tick in the corner. */
.candidate-check-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.candidate-check-group {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    min-height: 0;
    padding: 20px 14px 18px;
    position: relative;
    text-align: center;
}

.candidate-check-group__icon {
    border-radius: 50%;
    height: 46px;
    transition: background-color 0.18s ease, color 0.18s ease;
    width: 46px;
}

.candidate-check-group__icon svg {
    height: 21px;
    width: 21px;
}

.candidate-check-group__copy {
    gap: 5px;
    justify-items: center;
}

.candidate-check-group strong {
    font-size: 0.98rem;
    font-weight: var(--weight-semibold);
    line-height: 1.3;
}

.candidate-check-group small {
    font-size: 0.83rem;
    line-height: 1.45;
}

.candidate-check-group:hover {
    background: var(--color-primary-soft);
    border-color: rgba(23, 105, 170, 0.28);
}

.candidate-check-group__check {
    align-items: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-surface-warm);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 22px;
}

.candidate-check-group__check svg {
    height: 13px;
    stroke-width: 3;
    width: 13px;
}

.candidate-check-group[aria-pressed="true"] .candidate-check-group__check {
    opacity: 1;
    transform: scale(1);
}

.candidate-check-group[aria-pressed="true"] .candidate-check-group__icon {
    background: var(--color-primary);
    color: var(--color-surface-warm);
}

@media (max-width: 991px) {
    .candidate-check-scope .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .candidate-check-flow {
        border-radius: 14px;
    }

    .candidate-check-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .candidate-check-group {
        padding: 18px 12px 16px;
    }

    .candidate-check-process__steps,
    .candidate-check-scope__cards,
    .candidate-check-scope__meta {
        grid-template-columns: 1fr;
    }

    .candidate-check-scope__meta > div + div {
        border-left: 0;
        border-top: 1px solid var(--color-line-soft);
    }
}

@media (min-width: 992px) {
    /* The full-width card fits the three contact fields on one row and pairs
       the consent confirmations instead of stretching them. */
    .candidate-check-form__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .candidate-check-field--wide {
        grid-column: auto;
    }

    .candidate-check-consents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .candidate-check-options {
        grid-template-columns: 1fr;
    }

    .candidate-check-result__footer .candidate-check-actions {
        flex-basis: 100%;
        margin-left: 0;
    }
}
