/* Design 2026. Scoped so existing survey versions keep their own styling. */
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/poppins-v24-latin-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/fonts/poppins-v24-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/fonts/poppins-v24-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/fonts/poppins-v24-latin-700.woff2') format('woff2');
}
body.survey-2026 {
    --survey-font: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
    --survey-primary: #0077BE;
    --survey-primary-hover: #00639e;
    --survey-primary-soft: #edf6fb;
    --survey-primary-focus: #80bbdf;
    --survey-ink: #172b4d;
    --survey-muted: #64748b;
    --survey-line: #dce3ed;
    --survey-actions-height: 100px;
    background: #f4f6fa;
    color: var(--survey-ink);
    font: 16px/1.6 var(--survey-font) !important;
    padding-bottom: calc(var(--survey-actions-height) + 32px + env(safe-area-inset-bottom));
}
body.survey-2026 *, body.survey-2026 *::before, body.survey-2026 *::after { box-sizing: border-box; }
body.survey-2026 .container { width: calc(100% - 48px); max-width: 960px; padding: 40px 0; }
body.survey-2026 .container > form > .card { margin: 0; border: 1px solid var(--survey-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 40px #172b4d08; }
body.survey-2026 .container > form > .card > .card-content { padding: 36px !important; }
body.survey-2026 h1, body.survey-2026 h2, body.survey-2026 h3, body.survey-2026 h5 {
    color: var(--survey-ink) !important; font-family: var(--survey-font) !important; font-weight: 700 !important;
    letter-spacing: -.025em; line-height: 1.25; margin: 0 0 20px;
}
body.survey-2026 h1, body.survey-2026 .question_texts h1 { font-size: clamp(25px, 3.5vw, 36px) !important; }
body.survey-2026 h2, body.survey-2026 h5 { font-size: clamp(20px, 2.5vw, 25px) !important; }
body.survey-2026 h3 { font-size: clamp(16px, 1.8vw, 18px) !important; }
body.survey-2026 hr { display: none !important; }
body.survey-2026 p, body.survey-2026 .question_texts ul li { font: inherit !important; line-height: 1.65; }
body.survey-2026 h3, body.survey-2026 p {
    font-weight: 400 !important;
    color: #475569 !important;
}
body.survey-2026 .card .card-content p { margin: 0; }
body.survey-2026 .card .card-content p + p { margin-top: 12px; }
body.survey-2026 img { max-width: 100%; height: auto; }
/* Image-only paragraphs should not add paragraph or baseline spacing. */
body.survey-2026 .question_texts p:has(> img:only-child) { margin: 0 !important; }
body.survey-2026 .question_texts p > img:only-child { display: block; margin: 0 !important; }
body.survey-2026 .item_string:has(.question_texts > .row > .col > p:only-child > img:only-child) { margin-bottom: 0 !important; }
body.survey-2026 .progress { height: 6px; border-radius: 20px; background: #e0eff7; margin: 0 0 24px; }
body.survey-2026 .progress .determinate { background: var(--survey-primary); border-radius: inherit; }
body.survey-2026 .card-action > .progress,
body.survey-2026 .survey-2026-completion-actions > .progress {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    margin: 0 !important; border-radius: 0;
}
body.survey-2026 .below-progress { padding: 0 0 24px; }
body.survey-2026 .below-progress:has(.logo:empty) { padding-bottom: 16px; }
body.survey-2026 .item_wrapper { scroll-margin: 24px; }
body.survey-2026 .items > .item_wrapper + .item_wrapper:not(.item_question) { margin-top: 24px !important; }
/* Editor spacer paragraphs and hidden legacy hints must not reserve space. */
body.survey-2026 .survey-2026-empty-text,
body.survey-2026 .survey-2026-hidden-hint { display: none !important; }
body.survey-2026 .item_question { margin: 32px 0 0 !important; padding: 0 !important; }
body.survey-2026 .item_question:first-child { margin-top: 0 !important; }
body.survey-2026 .item_question .question_texts { margin: 0 0 20px !important; padding: 0 !important; }
body.survey-2026 .item_question .question_texts h1,
body.survey-2026 .item_question .question_texts h2,
body.survey-2026 .item_question .question_texts h3,
body.survey-2026 .item_question .question_texts h4,
body.survey-2026 .item_question .question_texts h5,
body.survey-2026 .item_question .question_texts p { margin: 0 0 12px !important; }
body.survey-2026 .item_question .question_texts > .survey-2026-last-text { margin-bottom: 0 !important; }
body.survey-2026 .item_question .hint { margin: 0 0 12px !important; padding: 0 !important; }
body.survey-2026 .item_question .highlight-clicked:last-of-type { margin-bottom: 0 !important; }
body.survey-2026 .hint { color: var(--survey-muted); }
body.survey-2026 .highlight-clicked {
    position: relative; top: auto; padding: 0 !important; margin-bottom: 12px !important;
    border: 1px solid var(--survey-line); border-radius: 12px; background: #fff !important;
    color: var(--survey-ink) !important; box-shadow: none !important;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
body.survey-2026 .highlight-clicked:hover { border-color: var(--survey-primary-focus); background: #f5fafd !important; }
body.survey-2026 .highlight-clicked.active-state,
body.survey-2026 .highlight-clicked:has(input:checked) { border-color: var(--survey-primary); background: var(--survey-primary-soft) !important; box-shadow: 0 0 0 1px var(--survey-primary) !important; }
body.survey-2026 .highlight-clicked > label { display: block; padding: 18px 20px; width: 100%; height: 100%; min-width: 0; cursor: pointer; color: inherit; }
body.survey-2026 .highlight-clicked label > span { width: 100% !important; height: auto !important; min-height: 24px; margin: 0 !important; font: 500 16px/1.5 var(--survey-font) !important; padding-left: 36px; }
body.survey-2026 .highlight-clicked label > span { max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }
body.survey-2026 [type="checkbox"] + span:not(.lever)::before,
body.survey-2026 [type="checkbox"]:not(.filled-in) + span:not(.lever)::after { width: 22px; height: 22px; border-radius: 5px; margin-top: 1px; }
body.survey-2026 [type="checkbox"]:checked + span:not(.lever)::before { width: 12px; height: 20px; border-radius: 0; border-right-color: var(--survey-primary); border-bottom-color: var(--survey-primary); }
body.survey-2026 [type="radio"]:checked + span::after { background: var(--survey-primary); border-color: var(--survey-primary); }
body.survey-2026 [type="radio"].with-gap:checked + span::before { border-color: var(--survey-primary); }
body.survey-2026 .highlight-clicked:focus-within { outline: 3px solid var(--survey-primary-focus); outline-offset: 3px; }
body.survey-2026 .image-answer-items { display: flex; flex-wrap: wrap; align-items: stretch; }
body.survey-2026 .image-answer-items > .col { margin-left: 0; margin-bottom: 16px; }
body.survey-2026 .image-answer-items .card { height: 100%; min-height: 0 !important; overflow: hidden; }
body.survey-2026 .image-answer-items label { padding: 0; }
body.survey-2026 .image-answer-items .card-image img { aspect-ratio: 16 / 10; object-fit: cover; }
body.survey-2026 .image-answer-items .card-content { padding: 20px !important; }
body.survey-2026 input:not([type]), body.survey-2026 input[type="text"], body.survey-2026 input[type="email"],
body.survey-2026 input[type="number"], body.survey-2026 input[type="url"], body.survey-2026 input[type="tel"],
body.survey-2026 input[type="password"], body.survey-2026 input[type="date"], body.survey-2026 textarea {
    background: #fff; border: 1px solid var(--survey-line); border-radius: 8px; padding: 12px 14px;
    height: auto; min-height: 48px; box-shadow: none; font: inherit; color: var(--survey-ink);
}
body.survey-2026 textarea { min-height: 130px; }
body.survey-2026 input:focus, body.survey-2026 textarea:focus { border-color: var(--survey-primary) !important; box-shadow: 0 0 0 3px #0077BE20 !important; outline: none; }
body.survey-2026 .slider_item { max-width: 100%; overflow-x: auto; padding-bottom: 16px; }
body.survey-2026 .slider_item table { width: 100%; }
body.survey-2026 .noUi-connect, body.survey-2026 .noUi-handle { background: var(--survey-primary); }
body.survey-2026 .card-panel { border-radius: 10px; box-shadow: none; }
body.survey-2026 .item_wrapper.haserror .card-panel.red[tabindex="-1"]:focus { outline: none; }
/* Keep the original submit controls inside their form, including backbtn semantics. */
body.survey-2026 .card-action, body.survey-2026 .survey-2026-completion-actions {
    position: fixed !important; inset: auto 0 0 !important; z-index: 100;
    width: 100% !important; margin: 0 !important; border-top: 1px solid var(--survey-line);
    padding: 16px max(24px, calc((100vw - 888px) / 2)) calc(16px + env(safe-area-inset-bottom)) !important;
    background: #fff !important; box-shadow: 0 -8px 32px #172b4d08;
}
body.survey-2026 .card-action .row { display: flex; align-items: center; gap: 12px; margin: 0; }
body.survey-2026 .card-action .row > .col { width: auto; padding: 0; flex: 1; min-width: 0; }
body.survey-2026 .btn-large {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 12px;
    height: auto !important; min-height: 52px; padding: 14px 24px !important; border: 1px solid transparent;
    border-radius: 9px; font: 600 16px/1.4 var(--survey-font) !important;
    text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: none !important;
}
body.survey-2026 .btn-large.green { background: var(--survey-primary) !important; color: #fff !important; }
body.survey-2026 .btn-large.green:hover { background: var(--survey-primary-hover) !important; }
body.survey-2026 .btn-large.white { background: #fff !important; border-color: var(--survey-line); color: var(--survey-muted); }
body.survey-2026 .btn-large:focus-visible, body.survey-2026 a:focus-visible { outline: 3px solid var(--survey-primary-focus); outline-offset: 3px; }
body.survey-2026 .btn-large .material-icons { color: inherit !important; margin: 0 !important; float: none !important; font-size: 20px; }
/* Reserve the icon slot even while the ligature font is loading. */
body.survey-2026 .btn-large .material-icons { flex: 0 0 20px !important; width: 20px; height: 20px; line-height: 20px; overflow: hidden; }
body.survey-2026 .btn-large[disabled] { opacity: .6; cursor: wait; }
body.survey-2026 .survey-certificate-submit-1071 { min-width: 0; }
@media (max-width: 767px) {
    /* Stack image/text content before either column becomes too narrow to read. */
    body.survey-2026 .item_imagestring .card { display: flex; flex-direction: column; gap: 20px; }
    body.survey-2026 .item_imagestring .card > .card-image {
        width: 100% !important; max-width: 100% !important; flex: none; align-self: center;
    }
    body.survey-2026 .item_imagestring .card > .card-image img {
        width: auto !important; max-width: 100%; max-height: 180px; height: auto !important;
        object-fit: contain; margin: 0 auto; border-radius: 8px;
    }
    body.survey-2026 .item_imagestring .card > .card-stacked { width: 100%; min-width: 0; }
    body.survey-2026 .item_imagestring .card .card-content { padding: 0 !important; }
    body.survey-2026 .item_imagestring .card h1 { font-size: clamp(25px, 3.5vw, 36px) !important; }
    body.survey-2026 .item_imagestring .card h2 { font-size: clamp(20px, 2.5vw, 25px) !important; }
    body.survey-2026 .item_imagestring .card p:last-child { margin-bottom: 0; }
}
@media (max-width: 600px) {
    body.survey-2026 .container { width: calc(100% - 24px); padding: 16px 0; }
    body.survey-2026 .container > form > .card { border-radius: 14px; }
    body.survey-2026 .container > form > .card > .card-content { padding: 22px 18px !important; }
    body.survey-2026 .highlight-clicked > label { padding: 16px; }
    body.survey-2026 .card-action, body.survey-2026 .survey-2026-completion-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; }
    body.survey-2026 .card-action .btn-large, body.survey-2026 .survey-2026-completion-actions .btn-large { width: 100% !important; padding: 12px 16px !important; }
    body.survey-2026 .card-action .row > .col:first-child { flex: 0 1 auto; }
    body.survey-2026 .card-action .row > .col:last-child { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { body.survey-2026 * { transition: none !important; scroll-behavior: auto !important; } }
