/* UZIN UTZ Farbschema, revision 2026-10-26.
 * Child of fruity_twentythree for LimeSurvey 7.
 * Keep layouts, question rendering and scripts inherited from the installed core.
 * Brand assets and colours follow the supplied brand style guide.
 * GPL-2.0-or-later, following the supplied theme.
 */
:root {
    --brand-on-primary: #FFFFFF;
    --brand-on-hover: #000000;
    --brand-brand: #394147;
    --brand-brand-rgb: 57, 65, 71;
    --brand-link: #394147;
    --brand-hover: #0096AA;
    --brand-ink: #394147;
    --brand-focus: #394147;
    --bs-primary: var(--brand-brand);
    --bs-primary-rgb: var(--brand-brand-rgb);
    --bs-link-color: var(--brand-link);
    --bs-link-hover-color: var(--brand-hover);
}

/* Grey underlined links; lime text on white would have insufficient contrast. */
html body a:not(.btn):not(.dropdown-item):not(.list-group-item):not(.nav-link) {
    color: var(--brand-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
html body a:not(.btn):not(.dropdown-item):not(.list-group-item):not(.nav-link):hover {
    color: var(--brand-ink);
    text-decoration: underline;
    text-decoration-color: var(--brand-brand);
    text-decoration-thickness: 2px;
}
html body .text-primary {
    color: var(--brand-link) !important;
}

/* Primary buttons, including LimeSurvey button-style answers. */
html body .btn-primary,
html body .btn-check:checked + .btn-primary,
html body .btn-primary.active,
html body .btn-primary.dropdown-toggle.show {
    --bs-btn-color: var(--brand-on-primary);
    --bs-btn-bg: var(--brand-brand);
    --bs-btn-border-color: var(--brand-brand);
    --bs-btn-hover-color: var(--brand-on-hover);
    --bs-btn-hover-bg: var(--brand-hover);
    --bs-btn-hover-border-color: var(--brand-hover);
    --bs-btn-active-color: var(--brand-on-hover);
    --bs-btn-active-bg: var(--brand-hover);
    --bs-btn-active-border-color: var(--brand-hover);
    --bs-btn-disabled-color: var(--brand-on-primary);
    --bs-btn-disabled-bg: var(--brand-brand);
    --bs-btn-disabled-border-color: var(--brand-brand);
    color: var(--brand-on-primary);
    background-color: var(--brand-brand);
    border-color: var(--brand-brand);
    box-shadow: none;
}
html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active,
html body .btn-primary:active:focus,
html body .btn-primary.active:hover,
html body .btn-primary.active:focus,
html body .btn-primary.dropdown-toggle.show:focus,
html body .btn-check:focus + .btn-primary,
html body .btn-check:active + .btn-primary,
html body .btn-check:checked + .btn-primary:hover,
html body .btn-check:checked + .btn-primary:focus,
html body .show > .btn-primary.dropdown-toggle {
    color: var(--brand-on-hover);
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    box-shadow: none;
}
html body .btn-primary:disabled,
html body .btn-primary.disabled,
html body .btn-primary[disabled]:hover,
html body .btn-primary.disabled:hover {
    color: var(--brand-on-primary);
    background-color: var(--brand-brand);
    border-color: var(--brand-brand);
    opacity: 0.65;
    box-shadow: none;
}

/* Secondary controls retain the previous white / green treatment. */
html body .btn-default,
html body .btn-outline-primary,
html body .btn-outline-secondary {
    color: var(--brand-link);
    background-color: #ffffff;
    border-color: var(--brand-brand);
    box-shadow: none;
}
html body .btn-default:hover,
html body .btn-outline-primary:hover,
html body .btn-outline-secondary:hover {
    color: var(--brand-on-hover);
    background-color: var(--brand-hover);
    border-color: var(--brand-link);
    box-shadow: none;
}
html body .btn-check:checked + .btn-outline-primary,
html body .btn-check:checked + .btn-outline-secondary,
html body .btn-outline-primary.active,
html body .btn-outline-secondary.active {
    color: var(--brand-on-primary);
    background-color: var(--brand-brand);
    border-color: var(--brand-link);
}
html body .btn-check:checked + .btn-outline-primary:focus,
html body .btn-check:checked + .btn-outline-secondary:focus,
html body .btn-outline-primary.active:focus,
html body .btn-outline-secondary.active:focus {
    color: var(--brand-on-primary);
    background-color: var(--brand-brand);
    border-color: var(--brand-link);
    box-shadow: none;
}
html body .btn {
    border-radius: 4px;
}

/* Visible focus without replacing the framework's validation behaviour. */
html body a:focus-visible,
html body button:focus-visible,
html body .btn:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body input:not([type=hidden]):focus-visible,
html body .btn-check:focus-visible + .btn {
    outline: 3px solid var(--brand-focus);
    outline-offset: 3px;
}

/* Progress keeps the original codex brand colour. */
html body .progress-bar {
    background-color: var(--brand-brand);
    color: var(--brand-on-primary);
}

/* Core radio / checkbox markup, with a stronger mark for legibility. */
html body .radio-item input[type=radio]:checked + label,
html body .checkbox-item input[type=checkbox]:checked + label {
    color: var(--brand-link);
}
html body .radio-item input[type=radio]:checked + label::before,
html body .checkbox-item input[type=checkbox]:checked + label::before {
    border-color: var(--brand-link);
}
html body .radio-item input[type=radio]:checked + label::after {
    background-color: var(--brand-link);
}
html body .checkbox-item input[type=checkbox]:checked + label::after {
    color: var(--brand-link);
    background-color: transparent;
}
html body .radio-item input[type=radio]:focus-visible + label::before,
html body .checkbox-item input[type=checkbox]:focus-visible + label::before {
    outline: 3px solid var(--brand-focus);
    outline-offset: 3px;
    box-shadow: none;
}

/* Keep the supplied wide logo in proportion; header sizing stays with core JS. */
html body #survey-nav .logo-container {
    max-width: calc(100% - 64px);
    min-width: 0;
}
html body #survey-nav .logo-container > img {
    display: block;
    width: 260px;
    height: auto;
    max-width: 100%;
    max-height: none;
    padding: 0;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    html body #survey-nav .logo-container > img {
        width: 220px;
    }
}

/* Error, warning and success colours intentionally remain controlled by core. */

/* UZIN UTZ survey components — Kapra Neue Pro / IBM Plex Sans. Local assets only. */
@font-face {
    font-family: "UU Kapra";
    src: url('../files/fonts/KapraNeuePro-MediumRounded_Z7_2025.woff2') format('woff2'),
         url('../files/fonts/KapraNeuePro-MediumRounded_Z7_2025.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "UU IBM Plex Sans";
    src: url('../files/fonts/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "UU IBM Plex Sans";
    src: url('../files/fonts/IBMPlexSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "UU IBM Plex Sans";
    src: url('../files/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "UU IBM Plex Sans";
    src: url('../files/fonts/IBMPlexSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "UU IBM Plex Sans";
    src: url('../files/fonts/IBMPlexSans-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
:root {
    --brand-font-body: "UU IBM Plex Sans", Arial, sans-serif;
    --brand-font-heading: "UU Kapra", "Arial Narrow", sans-serif;
    --brand-line: rgba(57, 65, 71, 0.18);
    --brand-surface: #ffffff;
    --brand-page: #f5f6f5;
}
html body,
html body[class*="font-"],
html body .form-control,
html body .form-select,
html body .btn,
html body label {
    font-family: var(--brand-font-body);
}
html body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--brand-ink);
    background-color: var(--brand-page);
    -webkit-font-smoothing: antialiased;
}
html body h1,
html body h2,
html body h3,
html body .survey-name,
html body .group-title {
    font-family: var(--brand-font-heading);
    font-weight: 500;
    font-synthesis: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--brand-ink);
    line-height: 1.12;
}
html body h1,
html body .survey-name {
    font-size: clamp(36px, 3.5vw, 44px);
    margin-block: 24px 16px;
}
html body h2,
html body .group-title {
    font-size: clamp(28px, 2.8vw, 32px);
    margin-block: 24px 12px;
}
html body h3 {
    font-size: 26px;
}
html body #outerframeContainer {
    width: 100%;
    max-width: 1040px;
    padding-inline: 24px;
    margin-inline: auto;
    hyphens: manual;
}
html body #survey-nav > .container-fluid {
    width: 100%;
    max-width: 1040px;
    padding-inline: 24px;
}
html body #survey-nav {
    border-bottom: 1px solid var(--brand-line);
}
html body .group-title-container {
    padding: 0;
}
html body .survey-description,
html body .survey-welcome,
html body .group-description {
    font-size: 18px;
    line-height: 1.65;
    color: var(--brand-ink);
    margin-top: 0;
}

/* Question cards. Display/visibility and relevance logic remain controlled by core. */
html body .question-container {
    background: var(--brand-surface);
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(57, 65, 71, 0.035);
    padding: 28px;
    margin-block: 0 24px;
}
html body .question-container .ls-label-question,
html body .question-container .question-text,
html body .question-container .question-text h1,
html body .question-container .question-text h2,
html body .question-container .question-text h3 {
    font-family: var(--brand-font-body);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    color: var(--brand-ink);
    margin-top: 0;
}
html body .question-title-container {
    margin-bottom: 16px;
}
html body .question-container .question-text p:last-child {
    margin-bottom: 0;
}
html body .question-help-container,
html body .question-valid-container,
html body .question-container .ls-question-message {
    font-size: 15px;
    line-height: 1.5;
}
html body .question-container.input-error,
html body .question-container.missing {
    border-color: var(--bs-danger, #dc3545);
}

/* Inputs retain their own widths: especially important for matrices and number fields. */
html body .form-control,
html body .form-select {
    min-height: 48px;
    font-size: 17px;
    line-height: 1.5;
    padding: 11px 14px;
    border-radius: 8px;
    border-width: 1px;
    box-shadow: none;
}
html body .form-control:not(.is-invalid):not([aria-invalid="true"]),
html body .form-select:not(.is-invalid):not([aria-invalid="true"]) {
    border-color: var(--brand-line);
}
html body .form-control:focus:not(.is-invalid):not([aria-invalid="true"]),
html body .form-select:focus:not(.is-invalid):not([aria-invalid="true"]) {
    border-color: var(--brand-ink);
    box-shadow: 0 0 0 3px rgba(57, 65, 71, 0.2);
}
html body .input-error .form-control:not(.is-invalid):not([aria-invalid="true"]),
html body .missing .form-control:not(.is-invalid):not([aria-invalid="true"]),
html body .input-error .form-select:not(.is-invalid):not([aria-invalid="true"]),
html body .missing .form-select:not(.is-invalid):not([aria-invalid="true"]) {
    border-color: var(--bs-danger, #dc3545);
    box-shadow: none;
}
html body textarea.form-control {
    min-height: 128px;
    resize: vertical;
}
html body .form-control::placeholder {
    color: #62676b;
    opacity: 1;
}
html body .form-control:disabled,
html body .form-control[readonly] {
    background-color: var(--brand-page);
}

/* Larger click targets for ordinary choices; matrix/imageselect markup stays inherited. */
html body .radio-item:not(td):not(.imageselect-listitem),
html body .checkbox-item:not(td):not(.imageselect-listitem) {
    padding-inline: 0;
    margin-inline: 0;
    margin-bottom: 8px;
}
html body .radio-item:not(td):not(.imageselect-listitem) > input[type=radio] + label:not(.ls-label-xs-visibility),
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox] + label:not(.ls-label-xs-visibility) {
    display: block;
    position: relative;
    min-height: 48px;
    padding: 10px 12px 10px 46px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 18px;
    line-height: 26px;
    color: var(--brand-ink);
    font-weight: 400;
}
html body .radio-item:not(td):not(.imageselect-listitem) > input[type=radio]:not(:disabled) + label:not(.ls-label-xs-visibility):hover,
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox]:not(:disabled) + label:not(.ls-label-xs-visibility):hover {
    background-color: var(--brand-page);
}
html body .radio-item:not(td):not(.imageselect-listitem) > input[type=radio]:checked + label:not(.ls-label-xs-visibility),
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox]:checked + label:not(.ls-label-xs-visibility) {
    background-color: rgba(57, 65, 71, 0.1);
    border-color: rgba(57, 65, 71, 0.2);
    font-weight: 500;
}
html body .radio-item:not(td):not(.imageselect-listitem) > input[type=radio] + label:not(.ls-label-xs-visibility)::before,
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox] + label:not(.ls-label-xs-visibility)::before {
    width: 22px;
    height: 22px;
    top: 12px;
    left: 12px;
    margin: 0;
    border: 2px solid #62676b;
    background-color: #ffffff;
}
html body .radio-item:not(td):not(.imageselect-listitem) > input[type=radio]:checked + label:not(.ls-label-xs-visibility)::before,
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox]:checked + label:not(.ls-label-xs-visibility)::before {
    border-color: var(--brand-ink);
    background-color: var(--brand-brand);
}
html body .radio-item:not(td):not(.imageselect-listitem) > input[type=radio] + label:not(.ls-label-xs-visibility)::after {
    width: 10px;
    height: 10px;
    top: 18px;
    left: 18px;
    margin: 0;
    background-color: var(--brand-on-primary);
}
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox] + label:not(.ls-label-xs-visibility)::before {
    border-radius: 5px;
}
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox]:checked + label:not(.ls-label-xs-visibility)::after {
    content: "";
    width: 6px;
    height: 11px;
    top: 16px;
    left: 20px;
    margin: 0;
    padding: 0;
    border: solid var(--brand-on-primary);
    border-width: 0 2px 2px 0;
    border-radius: 0;
    transform: rotate(45deg);
    background: transparent;
}
html body .checkbox-item:not(td):not(.imageselect-listitem) > input[type=checkbox]:indeterminate + label:not(.ls-label-xs-visibility)::after {
    content: "";
    width: 10px;
    height: 2px;
    left: 18px;
    top: 22px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: var(--brand-ink);
    transform: none;
}

/* Consistent buttons: no transform that would move the target under a pointer. */
html body .btn {
    min-height: 48px;
    padding: 11px 24px;
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
html body .btn-sm,
html body .input-group .btn {
    min-height: 40px;
    padding: 7px 14px;
    font-size: 15px;
}
html body .ls-answers .btn {
    white-space: normal;
}
html body #navigator-container {
    padding-block: 8px 32px;
}
html body .progress,
html body .top-container .progress {
    height: 6px;
    border-radius: 999px;
    background-color: rgba(57, 65, 71, 0.12);
}
html body .progress-bar {
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    html body { font-size: 17px; }
    html body #outerframeContainer,
    html body #survey-nav > .container-fluid { padding-inline: 16px; }
    html body .question-container { padding: 20px 16px; margin-bottom: 16px; }
    html body .question-container .ls-label-question,
    html body .question-container .question-text { font-size: 20px; }
    html body .btn { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html body .btn,
    html body .radio-item label::before,
    html body .radio-item label::after,
    html body .checkbox-item label::before { transition: none; }
}
@media print {
    html body { background: #ffffff; }
    html body .question-container { box-shadow: none; break-inside: avoid; }
}
