/*
 * Customer portal final layer.
 * Loaded last to neutralize legacy terracotta and notice styles without
 * changing WordPress or the public theme outside OHD components.
 */
:root {
    --ohd-blue: #1769aa;
    --ohd-blue-dark: #0f4f82;
    --ohd-navy: #172434;
    --ohd-ink: #1c2a39;
    --ohd-muted: #5d6b78;
    --ohd-line: #d8e0e7;
    --ohd-panel: #ffffff;
    --ohd-soft: #f5f8fb;
    --ohd-warning: #fff5df;
    --ohd-warning-line: #d9992b;
}

.ohd-page-full-bg,
.ohd-portal,
.ohd-form-container,
.ohd-intake-shell,
.ohd-agreement-page {
    color: var(--ohd-ink);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

.ohd-button,
.ohd-button-primary,
.ohd-button-secondary,
.ohd-login-buttons .ohd-button,
.ohd-form-nav .ohd-button,
.ohd-agreement-actions .ohd-button,
.ohd-payment-inline-button {
    background: var(--ohd-blue) !important;
    border: 1px solid var(--ohd-blue) !important;
    color: #fff !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    font: 700 17px/1.2 Montserrat, Arial, sans-serif !important;
    letter-spacing: 0 !important;
    min-height: 48px;
    padding: 11px 16px !important;
    text-decoration: none !important;
    text-align: center;
}

.ohd-button:hover,
.ohd-button:focus,
.ohd-button-primary:hover,
.ohd-button-primary:focus,
.ohd-button-secondary:hover,
.ohd-button-secondary:focus {
    background: var(--ohd-blue-dark) !important;
    border-color: var(--ohd-blue-dark) !important;
    color: #fff !important;
}

/* The legacy OHD sheet uses very specific !important selectors. These are
   intentionally equally specific so customer actions always use site blue. */
.ohd-form-container .ohd-button,
.ohd-pre-intake .ohd-button,
.ohd-full-intake .ohd-button,
.ohd-portal .ohd-button,
.ohd-anonymous-modal .ohd-button {
    background: var(--ohd-blue) !important;
    border-color: var(--ohd-blue) !important;
    color: #fff !important;
}
.ohd-form-container .ohd-button:hover,
.ohd-form-container .ohd-button:focus,
.ohd-pre-intake .ohd-button:hover,
.ohd-pre-intake .ohd-button:focus,
.ohd-full-intake .ohd-button:hover,
.ohd-full-intake .ohd-button:focus,
.ohd-portal .ohd-button:hover,
.ohd-portal .ohd-button:focus,
.ohd-anonymous-modal .ohd-button:hover,
.ohd-anonymous-modal .ohd-button:focus {
    background: var(--ohd-blue-dark) !important;
    border-color: var(--ohd-blue-dark) !important;
}

.ohd-button:focus-visible,
.ohd-portal-nav a:focus-visible,
.ohd-full-intake input:focus-visible,
.ohd-full-intake select:focus-visible,
.ohd-full-intake textarea:focus-visible,
.ohd-pre-intake input:focus-visible,
.ohd-pre-intake select:focus-visible,
.ohd-pre-intake textarea:focus-visible {
    outline: 3px solid #74b9ec;
    outline-offset: 2px;
}

.ohd-portal-nav-badge {
    align-items: center;
    background: #E53935;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    margin-left: 6px;
    min-height: 20px;
    min-width: 20px;
    padding: 3px 6px;
    vertical-align: middle;
}

.ohd-success,
.ohd-info,
.ohd-warning,
.ohd-error,
.ohd-email-verify-required,
.ohd-portal-notice {
    background: var(--ohd-soft) !important;
    border: 1px solid var(--ohd-line) !important;
    border-left: 4px solid var(--ohd-blue) !important;
    border-radius: 5px !important;
    color: var(--ohd-ink) !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin: 16px 0 !important;
    padding: 14px 16px !important;
}
.ohd-form-container .ohd-form-messages .ohd-success,
.ohd-form-container .ohd-form-messages .ohd-info,
.ohd-form-container .ohd-form-messages .ohd-warning,
.ohd-form-container .ohd-form-messages .ohd-error {
    background: var(--ohd-soft) !important;
    border: 1px solid var(--ohd-line) !important;
    border-left: 4px solid var(--ohd-blue) !important;
    color: var(--ohd-ink) !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
}
.ohd-form-container .ohd-form-messages .ohd-error { border-left-color: #b74a4a !important; }

.ohd-warning,
.ohd-portal-notice.is-warning {
    background: var(--ohd-warning) !important;
    border-left-color: var(--ohd-warning-line) !important;
}

.ohd-error,
.ohd-portal-notice.is-error { border-left-color: #b74a4a !important; }
.ohd-portal-notice.is-success { border-left-color: var(--ohd-blue) !important; }

/* Portal frame */
.ohd-portal {
    box-sizing: border-box;
    max-width: 980px;
    margin: 34px auto 54px;
    padding: 0 20px;
}

.ohd-portal *,
.ohd-portal *::before,
.ohd-portal *::after,
.ohd-form-container *,
.ohd-form-container *::before,
.ohd-form-container *::after,
.ohd-intake-shell *,
.ohd-intake-shell *::before,
.ohd-intake-shell *::after { box-sizing: border-box; }

.ohd-portal-header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 0 16px;
}

.ohd-portal-kicker {
    color: var(--ohd-blue-dark);
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px !important;
    text-transform: none;
}

.ohd-portal-header h1,
.ohd-portal h2,
.ohd-intake-shell h2,
.ohd-intake-shell h3,
.ohd-form-container h2,
.ohd-form-container h3 {
    color: var(--ohd-navy) !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

.ohd-portal-header h1 { font-size: 30px !important; margin: 0 !important; }
.ohd-portal h2 { font-size: 24px !important; margin: 0 0 10px !important; }
.ohd-portal h3, .ohd-intake-shell h3 { font-size: 21px !important; margin: 0 0 10px !important; }

/* Keep the customer portal recognisable without spending the first screen on a
   large welcome panel. The current action is always immediately below it. */
.ohd-portal-title { min-width: 0; }
.ohd-portal-title p { color: var(--ohd-muted); font-size: 16px; margin: 2px 0 0; }
.ohd-portal-header h1 { font-size: 26px !important; }

.ohd-portal-logout {
    color: var(--ohd-blue-dark) !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: underline;
}

.ohd-portal-nav {
    background: var(--ohd-navy);
    border-radius: 6px;
    display: flex;
    gap: 0;
    margin: 0 0 20px;
    overflow-x: auto;
}

.ohd-portal-nav a {
    color: #fff !important;
    flex: 1 0 auto;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 17px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.ohd-portal-nav a:hover,
.ohd-portal-nav a.is-active { background: var(--ohd-blue); color: #fff !important; }
.ohd-portal-nav a:not(.is-active):not(:hover) { background: transparent !important; }

.ohd-portal-main-action,
.ohd-portal-content,
.ohd-portal-case-summary,
.ohd-portal-case-switcher {
    background: var(--ohd-panel);
    border: 1px solid var(--ohd-line);
    border-radius: 6px;
    margin: 0 0 18px;
    padding: 26px;
}

.ohd-portal-main-action { border-top: 4px solid var(--ohd-blue); }
.ohd-portal-main-action p { font-size: 18px; margin: 0 0 18px; max-width: 720px; }
.ohd-portal-main-action .ohd-button { display: inline-block; }
.ohd-portal-client-action {
    background: #edf7fe;
    border: 1px solid #b9d7ea;
    border-left: 4px solid var(--ohd-blue);
    border-radius: 6px;
    margin: 0 0 18px;
    padding: 22px 24px;
}
.ohd-portal-client-action h2 { margin-bottom: 10px !important; }
.ohd-portal-client-action-question { font-size: 18px; line-height: 1.6; }
.ohd-portal-client-action-documents { background: #fff; border: 1px solid var(--ohd-line); border-radius: 4px; font-size: 16px; margin: 16px 0; padding: 12px 14px; }
.ohd-portal-client-action-answer { margin-top: 18px; }
.ohd-portal-client-action-answer summary {
    background: var(--ohd-blue);
    border: 1px solid var(--ohd-blue);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: 700 17px/1.2 Montserrat, Arial, sans-serif;
    list-style: none;
    min-height: 48px;
    padding: 13px 16px;
}
.ohd-portal-client-action-answer summary::-webkit-details-marker { display: none; }
.ohd-portal-client-action-answer summary:hover,
.ohd-portal-client-action-answer summary:focus { background: var(--ohd-blue-dark); border-color: var(--ohd-blue-dark); }
.ohd-portal-client-action-answer form { background: #fff; border: 1px solid var(--ohd-line); border-radius: 5px; margin-top: 12px; padding: 18px; }
.ohd-portal-client-action-answer label { color: var(--ohd-ink); display: block; font-size: 17px; font-weight: 700; margin: 0 0 15px; }
.ohd-portal-client-action-answer textarea,
.ohd-portal-client-action-answer input[type="file"] { background: #fff; border: 1px solid #aab9c6; border-radius: 4px; color: var(--ohd-ink); font: 17px/1.45 Montserrat, Arial, sans-serif; margin: 6px 0 0; min-height: 48px; padding: 10px 11px; width: 100%; }
.ohd-portal-client-action-answer textarea { min-height: 110px; resize: vertical; }
.ohd-portal-case-switcher { align-items: center; display: flex; gap: 14px; padding: 12px 16px; }
.ohd-portal-case-switcher label { font-weight: 700; margin: 0; }
.ohd-portal-case-switcher select { min-width: 170px; }

.ohd-portal-case-summary dl,
.ohd-portal-profile dl,
.ohd-intake-short-summary dl {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}
.ohd-portal-case-summary dl > div,
.ohd-portal-profile dl > div,
.ohd-intake-short-summary dl > div { border-top: 1px solid var(--ohd-line); padding: 12px 0; }
.ohd-portal-case-summary dt,
.ohd-portal-profile dt,
.ohd-intake-short-summary dt { color: var(--ohd-muted); font-size: 14px; font-weight: 700; }
.ohd-portal-case-summary dd,
.ohd-portal-profile dd,
.ohd-intake-short-summary dd { font-size: 16px; font-weight: 600; margin: 2px 0 0; }
.ohd-portal-profile dd.is-empty { color: var(--ohd-muted); font-style: italic; font-weight: 500; }
.ohd-portal-intro { color: var(--ohd-muted); margin: 0 0 20px; }
.ohd-portal-profile-pending { background: #edf7fe; border-left: 4px solid var(--ohd-blue); margin: 20px 0; padding: 16px 18px; }
.ohd-portal-profile-pending strong { color: var(--ohd-navy); display: block; font-size: 17px; }
.ohd-portal-profile-pending p { font-size: 16px; margin: 5px 0 8px; }
.ohd-portal-profile-pending a { color: var(--ohd-blue-dark); font-weight: 700; }

.ohd-portal-document-list,
.ohd-portal-logbook { list-style: none; margin: 0; padding: 0; }
.ohd-portal-document { align-items: center; border-top: 1px solid var(--ohd-line); display: flex; gap: 16px; justify-content: space-between; padding: 14px 0; }
.ohd-portal-document strong, .ohd-portal-document span { display: block; }
.ohd-portal-document span { color: var(--ohd-muted); font-size: 16px; margin-top: 2px; }
.ohd-portal-document a:not(.ohd-button) { color: var(--ohd-blue-dark); font-weight: 700; }
.ohd-portal-logbook li { border-left: 3px solid var(--ohd-blue); border-top: 1px solid var(--ohd-line); margin: 0; padding: 13px 0 13px 15px; }
.ohd-portal-logbook time { color: var(--ohd-muted); display: block; font-size: 15px; font-weight: 700; }
.ohd-portal-logbook p { font-size: 17px; margin: 5px 0 0; }
.ohd-portal-message-form { border-top: 1px solid var(--ohd-line); margin-top: 20px; padding-top: 20px; }

/* Short application and full intake */
.ohd-form-container.ohd-pre-intake,
.ohd-intake-shell { background: transparent !important; box-shadow: none !important; margin: 0 !important; max-width: none !important; padding: 0 !important; }
.ohd-pre-intake [hidden] { display: none !important; }
.ohd-portal .ohd-form-container.ohd-pre-intake.ohd-main-report-form {
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 14px !important;
}
.ohd-pre-intake-head { margin: 0 0 22px; padding-top: 6px; }
.ohd-pre-intake-head h2 { font-size: 25px !important; margin: 0 !important; }
.ohd-pre-intake-help { background: var(--ohd-soft); border-left: 3px solid var(--ohd-blue); margin: 10px 0 18px; padding: 10px 12px; }
.ohd-pre-intake-progress {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 28px;
    padding: 0;
    position: relative;
}
.ohd-pre-intake-progress::before { display: none; }
.ohd-pre-intake-progress > span {
    align-items: center;
    appearance: none;
    background: #f3f7fa !important;
    border: 1px solid #cbd9e5 !important;
    border-radius: 6px !important;
    color: #5d6e7d;
    display: flex;
    font: 700 14px/1.25 Montserrat, Arial, sans-serif;
    gap: 7px;
    justify-content: center;
    min-width: 0;
    padding: 11px 8px;
    position: relative;
    text-align: center;
}
.ohd-pre-intake-progress b {
    align-items: center;
    background: #fff;
    border: 2px solid #9db4c7;
    border-radius: 50%;
    color: var(--ohd-muted);
    display: inline-flex;
    font-size: 14px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    min-width: 28px;
}
.ohd-pre-intake-progress .ohd-progress-label { display: block; max-width: 132px; overflow-wrap: anywhere; }
.ohd-pre-intake-progress > span.is-done { background: #e8f3fb !important; border-color: #8db9d7 !important; color: var(--ohd-blue-dark); }
.ohd-pre-intake-progress > span.is-done b {
    background: #e8f3fb;
    border-color: var(--ohd-blue);
    color: var(--ohd-blue-dark);
}
.ohd-pre-intake-progress > span.is-active { background: var(--ohd-blue) !important; border-color: var(--ohd-blue) !important; color: #fff; }
.ohd-pre-intake-progress > span.is-active b {
    background: #fff;
    border-color: #fff;
    box-shadow: none;
    color: var(--ohd-blue-dark);
}
.ohd-intake-progress { margin: 0 0 27px; padding: 0; }
.ohd-intake-progress .ohd-progress-steps { align-items: flex-start; display: flex; justify-content: space-between; position: relative; }
.ohd-intake-progress .ohd-progress-steps::before { background: #cbd9e5; content: ''; height: 3px; left: 10%; position: absolute; right: 10%; top: 17px; z-index: 0; }
.ohd-intake-progress .ohd-progress-line { background: var(--ohd-blue); height: 3px; left: 10%; max-width: 80%; position: absolute; top: 17px; transition: width .2s ease; z-index: 1; }
.ohd-intake-progress .ohd-progress-step { appearance: none; background: transparent !important; border: 0 !important; color: var(--ohd-muted) !important; cursor: pointer; display: flex; flex: 1 1 0; flex-direction: column; font: 700 13px/1.25 Montserrat, Arial, sans-serif; gap: 7px; justify-content: flex-start; min-width: 0; padding: 0 4px !important; position: relative; text-align: center; z-index: 2; }
.ohd-intake-progress .ohd-step-number { align-items: center; background: #fff; border: 2px solid #9db4c7; border-radius: 50%; color: #687786; display: inline-flex; font-size: 14px; height: 36px; justify-content: center; line-height: 1; margin: 0 auto; min-width: 36px; padding: 0; }
.ohd-intake-progress .ohd-step-label { display: block; min-height: 32px; overflow-wrap: anywhere; }
.ohd-intake-progress .ohd-progress-step.is-done,
.ohd-intake-progress .ohd-progress-step.completed { color: var(--ohd-blue-dark) !important; }
.ohd-intake-progress .ohd-progress-step.is-done .ohd-step-number,
.ohd-intake-progress .ohd-progress-step.completed .ohd-step-number { background: var(--ohd-blue); border-color: var(--ohd-blue); color: #fff; }
.ohd-intake-progress .ohd-progress-step.is-active,
.ohd-intake-progress .ohd-progress-step.active { color: var(--ohd-blue-dark) !important; }
.ohd-intake-progress .ohd-progress-step.is-active .ohd-step-number,
.ohd-intake-progress .ohd-progress-step.active .ohd-step-number { background: var(--ohd-blue-dark); border-color: var(--ohd-blue-dark); box-shadow: 0 0 0 4px rgba(23, 105, 170, .15); color: #fff; }
.ohd-intake-progress .ohd-progress-step:disabled { cursor: default; }
.ohd-intake-progress .ohd-progress-status { color: var(--ohd-muted); font-size: 14px; margin: 12px 0 0; text-align: center; }
.ohd-intake-progress .ohd-progress-status strong { color: var(--ohd-blue-dark); }
.ohd-pre-step h3 { font-size: 21px !important; margin: 0 0 16px !important; }

.ohd-full-intake label,
.ohd-pre-intake label,
.ohd-portal-message-form label { color: var(--ohd-ink); display: block; font-size: 17px !important; font-weight: 700; line-height: 1.4; margin: 0 0 15px; }
.ohd-iban-feedback { color: var(--ohd-blue-dark); display: block; font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 5px; }
.ohd-upload-save-status { color: var(--ohd-blue-dark); display: block; font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 6px; }
.ohd-upload-save-status.is-error { color: #a33535; }
.ohd-full-intake input,
.ohd-full-intake select,
.ohd-full-intake textarea,
.ohd-pre-intake input,
.ohd-pre-intake select,
.ohd-pre-intake textarea,
.ohd-portal-message-form input,
.ohd-portal-message-form textarea,
.ohd-portal-case-switcher select {
    background: #fff !important;
    border: 1px solid #aab9c6 !important;
    border-radius: 4px !important;
    color: var(--ohd-ink) !important;
    font: 17px/1.45 Montserrat, Arial, sans-serif !important;
    margin: 6px 0 0 !important;
    min-height: 48px;
    padding: 10px 11px !important;
    width: 100%;
}
.ohd-full-intake textarea,
.ohd-pre-intake textarea,
.ohd-portal-message-form textarea { min-height: 110px; resize: vertical; }
.ohd-full-intake input[type="checkbox"],
.ohd-full-intake input[type="radio"],
.ohd-pre-intake input[type="checkbox"],
.ohd-pre-intake input[type="radio"] { accent-color: var(--ohd-blue); height: 19px; margin: 1px 0 0 !important; min-height: 19px; padding: 0 !important; width: 19px; }
.required { color: #b73939; display: inline !important; margin-left: 3px; }
.ohd-field-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.ohd-field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ohd-field-grid > label,
.ohd-intake-full-row { min-width: 0; }
.ohd-full-intake input[type="date"] { max-width: 100%; min-width: 0; }
.ohd-choice-fieldset { border: 0 !important; margin: 0 0 18px !important; padding: 0 !important; }
.ohd-choice-fieldset legend { color: var(--ohd-ink); font-size: 17px; font-weight: 700; margin: 0 0 9px; padding: 0; }
.ohd-choice-cards { display: grid; gap: 12px; }
.ohd-choice-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ohd-choice-cards label,
.ohd-stack-choices label { align-items: flex-start; background: #fff; border: 1px solid var(--ohd-line); border-radius: 5px; cursor: pointer; display: flex; gap: 10px; margin: 0 !important; padding: 14px; }
.ohd-choice-cards label { min-width: 0; }
.ohd-choice-cards label > span { flex: 1 1 auto; min-width: 0; }
.ohd-choice-cards label:has(input:checked),
.ohd-stack-choices label:has(input:checked) { background: #edf7fe; border-color: var(--ohd-blue); }
.ohd-choice-cards strong,
.ohd-choice-cards small { display: block; }
.ohd-choice-cards small { color: var(--ohd-muted); font-size: 14px; font-weight: 500; margin-top: 3px; }
.ohd-stack-choices { display: grid; gap: 8px; }
.ohd-stack-choices label { font-weight: 600 !important; }
.ohd-check-row { align-items: flex-start; display: flex !important; gap: 10px; }
.ohd-check-row span { font-weight: 500; }
.ohd-money-input { align-items: center; display: flex; margin-top: 6px; }
.ohd-money-input b { background: #edf2f7; border: 1px solid #aab9c6; border-right: 0; border-radius: 4px 0 0 4px; min-height: 48px; padding: 10px 12px; }
.ohd-money-input input { border-radius: 0 4px 4px 0 !important; margin: 0 !important; }
.ohd-upload-field,
.ohd-evidence-guidance,
.ohd-return-questions,
.ohd-intake-next-step { background: var(--ohd-soft); border: 1px solid var(--ohd-line); border-radius: 5px; margin: 14px 0; padding: 15px; }
.ohd-intake-webshop-start,
.ohd-intake-evidence-summary { background: #edf7fe; border: 1px solid #a9cde4; border-left: 4px solid var(--ohd-blue); border-radius: 5px; margin: 16px 0; padding: 15px; }
.ohd-intake-webshop-start h4,
.ohd-intake-evidence-summary strong { color: var(--ohd-ink); display: block; font-size: 17px; margin: 0 0 5px; }
.ohd-intake-webshop-start p,
.ohd-intake-evidence-summary p { color: var(--ohd-muted); font-size: 15px; margin: 0 0 12px; }
.ohd-intake-evidence-summary p { margin-bottom: 0; }
.ohd-upload-field p,
.ohd-evidence-guidance p,
.ohd-return-questions p,
.ohd-intake-next-step p { color: var(--ohd-muted); font-size: 15px; margin: 5px 0 12px; }
.ohd-evidence-guidance strong, .ohd-return-questions h4, .ohd-intake-next-step strong { font-size: 17px; }
.ohd-form-nav,
.ohd-intake-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ohd-pre-intake .ohd-form-nav {
    border-top: 0 !important;
    margin-top: 26px !important;
    padding: 10px 0 8px !important;
}
.ohd-intake-spacer { flex: 1; }
.ohd-intake-header { margin: 12px 0 18px; }
.ohd-intake-header p { color: var(--ohd-muted); margin: 0; max-width: 760px; }
.ohd-intake-continuation { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ohd-intake-continuation span { background: #eef2f5; border-radius: 999px; color: var(--ohd-muted); font-size: 14px; font-weight: 700; padding: 7px 10px; }
.ohd-intake-continuation .is-done { background: #e8f3fb; color: var(--ohd-blue-dark); }
.ohd-intake-continuation .is-current { background: #e8f3fb; color: var(--ohd-blue-dark); }
.ohd-intake-short-summary { border: 1px solid var(--ohd-line); border-radius: 5px; margin: 0 0 18px; padding: 0 14px; }
.ohd-intake-short-summary summary { cursor: pointer; font-size: 16px; font-weight: 700; padding: 13px 0; }
.ohd-intake-short-summary dl { padding-bottom: 8px; }
.ohd-intake-autosave { color: var(--ohd-muted); font-size: 14px; margin: 0 0 8px; min-height: 21px; text-align: right; }
.ohd-intake-file-list { list-style: none; margin: 7px 0 0; padding: 0; }
.ohd-intake-file-list li { align-items: center; background: #fff; border: 1px solid var(--ohd-line); border-radius: 4px; display: flex; font-size: 14px; gap: 8px; justify-content: space-between; margin: 5px 0; padding: 7px 9px; }
.ohd-intake-file-list li.is-saved { background: #edf6fb; border-color: #a9cde4; }
.ohd-intake-file-list li.is-saved small { color: var(--ohd-blue-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ohd-intake-file-remove,
.ohd-pre-upload-remove { background: transparent !important; border: 0 !important; color: var(--ohd-blue-dark) !important; font-size: 24px !important; font-weight: 700; height: 28px; line-height: 1; min-height: 28px; padding: 0 !important; width: 28px; }
.ohd-document-batches { background: var(--ohd-soft); border: 1px solid var(--ohd-line); border-radius: 5px; margin: 18px 0 0; padding: 16px; }
.ohd-document-batches h3 { font-size: 18px; margin: 0 0 4px; }
.ohd-document-batches > p { color: var(--ohd-muted); font-size: 15px; margin: 0 0 14px; }
.ohd-document-batch { background: #fff; border: 1px solid var(--ohd-line); border-radius: 5px; margin: 10px 0 0; padding: 14px; }
.ohd-document-batch label { display: block; font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.ohd-document-batch input[type="file"] { margin-top: 6px; }
.ohd-document-batch-add,
.ohd-document-batch-remove { background: transparent !important; border: 1px solid var(--ohd-blue) !important; border-radius: 4px; color: var(--ohd-blue-dark) !important; cursor: pointer; font: 700 15px/1.2 Montserrat, Arial, sans-serif !important; margin-top: 12px; min-height: 42px; padding: 9px 12px; }
.ohd-document-batch-remove { border-color: #9baab7 !important; color: var(--ohd-ink) !important; margin-top: 3px; }
.ohd-pre-intake a:not(.ohd-button),
.ohd-full-intake a:not(.ohd-button),
.ohd-portal-content a:not(.ohd-button) { color: var(--ohd-blue-dark) !important; text-decoration: underline; }
.ohd-intake-finished { background: #edf7fe; border-left: 4px solid var(--ohd-blue); border-radius: 5px; padding: 20px; }
.ohd-currency { display: inline-block; white-space: nowrap; }

@media (max-width: 720px) {
    .ohd-portal { margin: 16px auto 35px; max-width: 100%; overflow-x: hidden; padding: 0 14px; }
    .ohd-portal-content,
    .ohd-portal-main-action,
    .ohd-portal-case-summary,
    .ohd-intake-shell,
    .ohd-pre-intake,
    .ohd-full-intake { min-width: 0; max-width: 100%; }
    .ohd-portal-header { align-items: flex-start; }
    .ohd-portal-header h1 { font-size: 26px !important; }
    .ohd-portal-logout { padding-top: 6px; }
    .ohd-portal-nav {
        border-radius: 5px;
        display: grid;
        gap: 1px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .ohd-portal-nav a {
        align-items: center;
        display: flex;
        font-size: 16px;
        justify-content: center;
        min-width: 0;
        padding: 13px 10px;
        white-space: normal;
    }
    .ohd-portal-nav a:last-child { grid-column: 1 / -1; }
    .ohd-portal-title p { font-size: 15px; }
    .ohd-portal-main-action, .ohd-portal-content, .ohd-portal-case-summary, .ohd-portal-case-switcher { border-radius: 5px; padding: 18px; }
    .ohd-portal-client-action { border-radius: 5px; padding: 18px; }
    .ohd-portal-client-action-question { font-size: 17px; }
    .ohd-portal-client-action-answer summary { display: flex; justify-content: center; width: 100%; }
    .ohd-portal-main-action p { font-size: 17px; }
    .ohd-portal-case-summary dl, .ohd-portal-profile dl, .ohd-intake-short-summary dl, .ohd-field-grid-2, .ohd-choice-cards-2 { grid-template-columns: 1fr; }
    .ohd-full-intake .ohd-field-grid,
    .ohd-full-intake .ohd-field-grid > label,
    .ohd-full-intake input,
    .ohd-full-intake select,
    .ohd-full-intake textarea { box-sizing: border-box; min-width: 0; max-width: 100%; }
    .ohd-full-intake input[type="date"] { width: 100%; }
    .ohd-portal-document { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ohd-portal-document .ohd-button { width: 100%; }
    .ohd-pre-intake-progress { gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
    .ohd-pre-intake-progress > span { min-width: 0; padding: 9px 5px; }
    .ohd-pre-intake-progress b { font-size: 13px; height: 27px; min-width: 27px; }
    .ohd-pre-intake-progress .ohd-progress-label { display: block; font-size: 12px; }
    .ohd-intake-progress { margin-bottom: 22px; }
    .ohd-intake-progress .ohd-progress-steps::before,
    .ohd-intake-progress .ohd-progress-line { left: 10%; right: auto; max-width: 80%; top: 15px; }
    .ohd-intake-progress .ohd-step-number { font-size: 13px; height: 32px; min-width: 32px; }
    .ohd-intake-progress .ohd-progress-step { font-size: 11px; gap: 6px; padding: 0 2px !important; }
    .ohd-intake-progress .ohd-step-label { min-height: 30px; }
    .ohd-form-nav .ohd-button, .ohd-intake-actions .ohd-button { flex: 1 1 auto; }
    .ohd-intake-spacer { display: none; }
    .ohd-portal-nav-badge { margin-left: 4px; }
    .ohd-pre-intake .ohd-form-nav { margin-top: 24px !important; padding-bottom: 14px !important; }
}

/* Login and registration used a more specific legacy selector. Keep these
   customer-facing entry points on the same blue and readable type scale. */
.ohd-auth-container {
    color: var(--ohd-ink) !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
}
.ohd-auth-container .ohd-section-form label,
.ohd-auth-container .ohd-section-form .ohd-input,
.ohd-auth-container .ohd-section-form input[type="text"],
.ohd-auth-container .ohd-section-form input[type="email"],
.ohd-auth-container .ohd-section-form input[type="password"],
.ohd-auth-container .ohd-auth-footer-line,
.ohd-auth-container .ohd-auth-footer-line-muted {
    font-size: 17px !important;
}
.ohd-auth-container .ohd-section-form .ohd-button,
.ohd-auth-container .ohd-section-form .ohd-button-primary,
.ohd-auth-container .ohd-section-form button[type="submit"] {
    background: var(--ohd-blue) !important;
    border-color: var(--ohd-blue) !important;
    font: 700 17px/1.2 Montserrat, Arial, sans-serif !important;
    min-height: 48px !important;
}
.ohd-auth-container .ohd-section-form .ohd-button:hover,
.ohd-auth-container .ohd-section-form .ohd-button:focus,
.ohd-auth-container .ohd-section-form .ohd-button-primary:hover,
.ohd-auth-container .ohd-section-form .ohd-button-primary:focus,
.ohd-auth-container .ohd-section-form button[type="submit"]:hover,
.ohd-auth-container .ohd-section-form button[type="submit"]:focus {
    background: var(--ohd-blue-dark) !important;
    border-color: var(--ohd-blue-dark) !important;
    transform: none !important;
}
.ohd-auth-container .ohd-section-form .ohd-input:focus,
.ohd-auth-container .ohd-section-form input[type="text"]:focus,
.ohd-auth-container .ohd-section-form input[type="email"]:focus,
.ohd-auth-container .ohd-section-form input[type="password"]:focus {
    border-color: var(--ohd-blue) !important;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .18) !important;
}
.ohd-auth-container .ohd-section-box a,
.ohd-auth-container .ohd-auth-footer-link {
    color: var(--ohd-blue-dark) !important;
    text-decoration-color: rgba(15, 79, 130, .45) !important;
}

/*
 * The anonymous-report popup has legacy rules that use a more specific
 * selector and !important. Keep this final layer deliberately specific so
 * every action in that popup follows the blue customer-facing style.
 */
html body #ohd-anonymous-modal .ohd-form-container .ohd-button,
html body #ohd-anonymous-modal .ohd-form-container .ohd-button-primary,
html body #ohd-anonymous-modal .ohd-form-container .ohd-button:not(.ohd-button-primary),
html body #ohd-anonymous-modal .ohd-form-container .ohd-form-nav .ohd-button,
html body #ohd-anonymous-modal .ohd-form-container .ohd-form-nav .ohd-next-step,
html body #ohd-anonymous-modal .ohd-form-container .ohd-form-nav button[type="submit"] {
    background: #1769aa !important;
    border-color: #1769aa !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

html body #ohd-anonymous-modal .ohd-form-container .ohd-button:hover,
html body #ohd-anonymous-modal .ohd-form-container .ohd-button:focus,
html body #ohd-anonymous-modal .ohd-form-container .ohd-button-primary:hover,
html body #ohd-anonymous-modal .ohd-form-container .ohd-button-primary:focus {
    background: #0f4f82 !important;
    border-color: #0f4f82 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: none !important;
}

/* Primary actions are blue. Back and cancel remain quiet, white actions. */
html body #ohd-anonymous-modal .ohd-form-container .ohd-prev-step,
html body .ohd-full-intake .ohd-intake-prev,
html body .ohd-full-intake .ohd-button-secondary {
    background: #fff !important;
    border: 1px solid #1769aa !important;
    color: #0f4f82 !important;
    -webkit-text-fill-color: #0f4f82 !important;
}
html body #ohd-anonymous-modal .ohd-form-container .ohd-prev-step:hover,
html body #ohd-anonymous-modal .ohd-form-container .ohd-prev-step:focus,
html body .ohd-full-intake .ohd-intake-prev:hover,
html body .ohd-full-intake .ohd-intake-prev:focus,
html body .ohd-full-intake .ohd-button-secondary:hover,
html body .ohd-full-intake .ohd-button-secondary:focus {
    background: #edf7fe !important;
    border-color: #0f4f82 !important;
    color: #0f4f82 !important;
    -webkit-text-fill-color: #0f4f82 !important;
}
html body .ohd-full-intake .ohd-intake-next,
html body .ohd-full-intake .ohd-intake-submit,
html body .ohd-pre-intake .ohd-pre-next,
html body .ohd-pre-intake #ohd-submit-btn {
    background: #1769aa !important;
    border-color: #1769aa !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body .ohd-full-intake .ohd-intake-next:hover,
html body .ohd-full-intake .ohd-intake-next:focus,
html body .ohd-full-intake .ohd-intake-submit:hover,
html body .ohd-full-intake .ohd-intake-submit:focus,
html body .ohd-pre-intake .ohd-pre-next:hover,
html body .ohd-pre-intake .ohd-pre-next:focus,
html body .ohd-pre-intake #ohd-submit-btn:hover,
html body .ohd-pre-intake #ohd-submit-btn:focus {
    background: #0f4f82 !important;
    border-color: #0f4f82 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
html body .ohd-pre-intake .ohd-pre-prev {
    background: #fff !important;
    border: 1px solid #1769aa !important;
    color: #0f4f82 !important;
    -webkit-text-fill-color: #0f4f82 !important;
}
html body .ohd-pre-intake .ohd-pre-prev:hover,
html body .ohd-pre-intake .ohd-pre-prev:focus {
    background: #edf7fe !important;
    border-color: #0f4f82 !important;
    color: #0f4f82 !important;
    -webkit-text-fill-color: #0f4f82 !important;
}

html body #ohd-anonymous-modal .ohd-progress-line,
html body #ohd-anonymous-modal .ohd-progress-step.active .ohd-step-number,
html body #ohd-anonymous-modal .ohd-progress-step.completed .ohd-step-number {
    background: #1769aa !important;
    border-color: #1769aa !important;
    box-shadow: none !important;
}

html body #ohd-anonymous-modal .ohd-progress-step.active .ohd-step-label,
html body #ohd-anonymous-modal .ohd-progress-step.completed .ohd-step-label {
    color: #0f4f82 !important;
}

html body #ohd-anonymous-modal .ohd-form-section-icon svg {
    stroke: #1769aa !important;
}

/* 1.9.14.95 - documenten in de vervolgintake per onderwerp. */
html body .ohd-full-intake .ohd-document-batches {
    box-sizing: border-box;
    min-width: 0;
    padding: 18px;
    border-color: #C7D3DF;
    border-radius: 6px;
    background: #F7F9FB;
}

html body .ohd-full-intake .ohd-document-batches > h3 {
    color: #17202A;
    font-size: 19px;
    line-height: 1.35;
}

html body .ohd-full-intake .ohd-document-batch,
html body .ohd-full-intake .ohd-intake-screenshot-upload {
    box-sizing: border-box;
    min-width: 0;
    padding: 16px;
    border: 1px solid #C7D3DF;
    border-left: 4px solid #0F4F82;
    border-radius: 6px;
    background: #FFFFFF;
}

html body .ohd-full-intake .ohd-document-batch .ohd-field-grid-2 {
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
    gap: 14px;
}

html body .ohd-full-intake .ohd-document-batch label,
html body .ohd-full-intake .ohd-intake-screenshot-upload label {
    min-width: 0;
}

html body .ohd-full-intake .ohd-document-batch select,
html body .ohd-full-intake .ohd-document-batch input,
html body .ohd-full-intake .ohd-intake-screenshot-upload input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

html body .ohd-full-intake .ohd-intake-screenshot-upload {
    margin-top: 18px;
}

html body .ohd-full-intake .ohd-intake-screenshot-upload h4 {
    margin: 0 0 4px;
    color: #17202A;
    font-size: 17px;
    line-height: 1.35;
}

html body .ohd-full-intake .ohd-intake-screenshot-upload p {
    margin: 0 0 12px;
    color: #52606D;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    html body .ohd-full-intake .ohd-document-batches {
        padding: 14px 12px;
    }

    html body .ohd-full-intake .ohd-document-batch,
    html body .ohd-full-intake .ohd-intake-screenshot-upload {
        padding: 14px 12px;
    }

    html body .ohd-full-intake .ohd-document-batch .ohd-field-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    html body .ohd-full-intake .ohd-document-batch-add,
    html body .ohd-full-intake .ohd-document-batch-remove {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
}
