:root {
    --ohd-ink: #17202a;
    --ohd-navy: #182536;
    --ohd-blue: #1769aa;
    --ohd-blue-dark: #0f4f82;
    --ohd-accent: #8f4f38;
    --ohd-muted: #5d6876;
    --ohd-line: #d8dee6;
    --ohd-line-strong: #b9c3cf;
    --ohd-soft: #f4f7fa;
    --ohd-info-soft: #edf6fc;
    --ohd-success: #17724b;
    --ohd-success-soft: #eaf7f0;
    --ohd-warning: #8a5a00;
    --ohd-warning-soft: #fff6dd;
    --ohd-danger: #a12929;
    --ohd-danger-soft: #fff0f0;
    --ohd-white: #fff;
    --ohd-shadow: 0 18px 48px rgba(23, 32, 42, .14);
    --ohd-radius-sm: 6px;
    --ohd-radius: 10px;
    --ohd-radius-lg: 14px;
    --ohd-space-1: .375rem;
    --ohd-space-2: .625rem;
    --ohd-space-3: 1rem;
    --ohd-space-4: 1.5rem;
    --ohd-space-5: 2rem;
    --ohd-space-6: 3rem;
    --ohd-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ohd-ui-v2,
.ohd-ui-v2 button,
.ohd-ui-v2 input,
.ohd-ui-v2 select,
.ohd-ui-v2 textarea,
.ohd-route-choice,
.ohd-anonymous-modal {
    font-family: var(--ohd-font);
    color: var(--ohd-ink);
}

.ohd-ui-v2 *,
.ohd-ui-v2 *::before,
.ohd-ui-v2 *::after,
.ohd-route-choice *,
.ohd-anonymous-modal * {
    box-sizing: border-box;
}

.ohd-ui-v2 h1,
.ohd-ui-v2 h2,
.ohd-ui-v2 h3,
.ohd-ui-v2 h4,
.ohd-route-choice h2,
.ohd-anonymous-modal h2,
.ohd-anonymous-modal h3,
.ohd-anonymous-modal h4 {
    color: var(--ohd-navy);
    font-family: var(--ohd-font);
    font-weight: 720;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-wrap: balance;
}

.ohd-ui-v2 p,
.ohd-route-choice p,
.ohd-anonymous-modal p {
    line-height: 1.65;
}

.ohd-ui-v2 a,
.ohd-route-choice a,
.ohd-anonymous-modal a {
    color: var(--ohd-blue-dark);
    text-underline-offset: .18em;
}

.ohd-ui-v2 :focus-visible,
.ohd-route-choice :focus-visible,
.ohd-anonymous-modal :focus-visible {
    outline: 3px solid rgba(23, 105, 170, .45);
    outline-offset: 3px;
}

.ohd-button,
.ohd-ui-v2 .ohd-button,
.ohd-route-choice .ohd-button {
    align-items: center;
    appearance: none;
    border: 1px solid var(--ohd-line-strong);
    border-radius: var(--ohd-radius-sm);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    min-height: 46px;
    padding: .75rem 1.15rem;
    text-align: center;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.ohd-button:hover {
    transform: translateY(-1px);
}

.ohd-button:active {
    transform: translateY(0);
}

.ohd-button:disabled,
.ohd-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.ohd-button-primary,
.ohd-ui-v2 .ohd-button-primary,
.ohd-route-choice .ohd-button-primary {
    background: var(--ohd-blue);
    border-color: var(--ohd-blue);
    color: var(--ohd-white);
}

.ohd-button-primary:hover,
.ohd-button-primary:focus-visible {
    background: var(--ohd-blue-dark);
    border-color: var(--ohd-blue-dark);
    color: var(--ohd-white);
}

.ohd-button-secondary,
.ohd-ui-v2 .ohd-button-secondary,
.ohd-route-choice .ohd-button-secondary,
.ohd-ui-v2 .ohd-button:not(.ohd-button-primary) {
    background: var(--ohd-white);
    border-color: var(--ohd-blue);
    color: var(--ohd-blue-dark);
}

.ohd-button-secondary:hover,
.ohd-ui-v2 .ohd-button:not(.ohd-button-primary):hover {
    background: var(--ohd-info-soft);
    color: var(--ohd-blue-dark);
}

.ohd-route-choice {
    background: var(--ohd-white);
    border: 1px solid var(--ohd-line);
    border-top: 4px solid var(--ohd-blue);
    border-radius: var(--ohd-radius-lg);
    box-shadow: 0 10px 32px rgba(23, 32, 42, .08);
    margin: clamp(1rem, 4vw, 3rem) auto;
    max-width: 840px;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.ohd-route-choice-kicker {
    color: var(--ohd-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 .5rem;
    text-transform: uppercase;
}

.ohd-route-choice h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    margin: 0 0 1rem;
}

.ohd-route-choice p {
    color: var(--ohd-muted);
    margin: .65rem 0;
    max-width: 72ch;
}

.ohd-route-choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.ohd-route-choice-actions .ohd-button {
    min-width: min(100%, 190px);
}

.ohd-anonymous-direct-launcher {
    align-items: center;
    background: var(--ohd-white);
    border: 1px solid var(--ohd-line);
    border-radius: var(--ohd-radius);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: clamp(1rem, 4vw, 2rem) auto;
    max-width: 720px;
    padding: 1rem;
}

.ohd-anonymous-direct-launcher p {
    margin: 0;
}

.ohd-route-note {
    align-items: flex-start;
    background: var(--ohd-info-soft);
    border-left: 4px solid var(--ohd-blue);
    border-radius: var(--ohd-radius-sm);
    color: var(--ohd-navy);
    display: grid;
    gap: .25rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    padding: .9rem 1rem;
}

.ohd-route-note a {
    font-weight: 750;
    justify-self: start;
}

.ohd-route-note a.ohd-route-note-action {
    background: var(--ohd-blue);
    border: 1px solid var(--ohd-blue);
    border-radius: var(--ohd-radius-sm);
    color: var(--ohd-white);
    display: inline-flex;
    justify-content: center;
    margin-top: .35rem;
    min-height: 42px;
    padding: .6rem .85rem;
    text-decoration: none;
}

.ohd-form-messages:empty,
.ohd-ui-v2 [hidden],
.ohd-anonymous-modal [hidden] {
    display: none;
}

.ohd-form-messages > div,
.ohd-notice,
.ohd-success,
.ohd-error,
.ohd-info,
.ohd-warning {
    border: 1px solid var(--ohd-line);
    border-left-width: 4px;
    border-radius: var(--ohd-radius-sm);
    line-height: 1.55;
    margin: 1rem 0;
    padding: .85rem 1rem;
}

.ohd-success {
    background: var(--ohd-success-soft);
    border-color: var(--ohd-success);
    color: #105a3b;
}

.ohd-error {
    background: var(--ohd-danger-soft);
    border-color: var(--ohd-danger);
    color: #7d2020;
}

.ohd-info {
    background: var(--ohd-info-soft);
    border-color: var(--ohd-blue);
    color: var(--ohd-navy);
}

.ohd-warning {
    background: var(--ohd-warning-soft);
    border-color: var(--ohd-warning);
    color: #694400;
}

.ohd-login-required,
.ohd-empty-state {
    background: var(--ohd-white);
    border: 1px solid var(--ohd-line);
    border-radius: var(--ohd-radius);
    margin: 2rem auto;
    max-width: 720px;
    padding: clamp(1.2rem, 4vw, 2rem);
}

.ohd-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.ohd-status-badge {
    background: var(--ohd-soft);
    border: 1px solid var(--ohd-line);
    border-radius: 999px;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.2;
    padding: .35rem .65rem;
}

.ohd-sr-only {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/*
 * De registerpagina verbergt de dubbele sectiekoppen in het inline formulier.
 * Toon op stap 2 en 3 wel de korte uitleg, maar niet de herhaalde h4-kop.
 */
#ohd-register-page .ohd-register-report-body .ohd-form-step[data-step="2"] > .ohd-form-section:first-child .ohd-form-section-header,
#ohd-register-page .ohd-register-report-body .ohd-form-step[data-step="3"] > .ohd-form-section:first-child .ohd-form-section-header {
    display: block !important;
    margin: 0 0 .9rem !important;
    padding: 0 !important;
    border: 0 !important;
}

#ohd-register-page .ohd-register-report-body .ohd-form-step[data-step="2"] > .ohd-form-section:first-child .ohd-form-section-header h4,
#ohd-register-page .ohd-register-report-body .ohd-form-step[data-step="3"] > .ohd-form-section:first-child .ohd-form-section-header h4 {
    display: none !important;
}

#ohd-register-page .ohd-register-report-body .ohd-form-step[data-step="2"] > .ohd-form-section:first-child .ohd-form-section-desc,
#ohd-register-page .ohd-register-report-body .ohd-form-step[data-step="3"] > .ohd-form-section:first-child .ohd-form-section-desc {
    margin: 0 !important;
    color: var(--ohd-muted) !important;
    font-size: .94rem !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

/* Houd het zwevende chat-icoon weg tijdens beide lange formulierstromen. */
body.page-id-656 #ht-ctc-chat,
body.page-id-301 #ht-ctc-chat {
    display: none !important;
}

@media (max-width: 600px) {
    .ohd-route-choice-actions {
        display: grid;
    }

    .ohd-route-choice-actions .ohd-button,
    .ohd-login-buttons .ohd-button {
        width: 100%;
    }

    .ohd-anonymous-direct-launcher {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ohd-ui-v2 *,
    .ohd-route-choice *,
    .ohd-anonymous-modal * {
        scroll-behavior: auto;
        transition-duration: .01ms;
    }
}
