/* Additions to the legacy design (style.css is unchanged). Only new elements and compatibility rules. */

/* Rich text is stored without classes; loose legacy text became <p>: keep the legacy spacing at block ends. */
.sz-flow > :last-child { margin-bottom: 0; }

/* Offering cards without a detail page look like the legacy link but are not clickable. */
.sz-no-link { cursor: default; }

/* Honeypot field for spam bots (forms). */
.sz-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Consent banner */
.sz-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: #284056; color: #fff; padding: 15px 0; font-size: 15px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
}
.sz-consent[hidden] { display: none; }
.sz-consent .uk-button-default { color: #fff; border-color: #fff; margin-right: 6px; }
.sz-consent-link { color: #fff; text-decoration: underline; }
.sz-consent-link:hover { color: #fff; }

/* Map placeholder (two-click solution) */
.sz-map { min-height: 250px; }
.sz-map-placeholder {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 250px; padding: 20px; background: #f0f2f4; color: #284056; font-size: 15px;
}

/* Admin preview banner (drafts included) */
.sz-preview-banner { position: sticky; top: 0; z-index: 1100; padding: 6px 12px; background: #f59e0b; color: #111; font: 600 13px/1.4 system-ui, sans-serif; text-align: center; }

/* Form answers (shown by sezyum.js, or on the result page without JavaScript) */
.sz-form-message:empty { display: none; }
.sz-form-message { margin-top: 15px; padding: 12px 16px; border-radius: 4px; font-size: 16px; }
.sz-form-message p { margin: 0; }
.sz-form-message ul { margin: 6px 0 0; padding-left: 20px; }
.sz-form-ok { background: #e8f5ec; color: #1d6b38; }
.sz-form-error { background: #fdecec; color: #a4161a; }
form[aria-busy="true"] [type=submit] { opacity: .6; cursor: progress; }
.sz-file-names { margin-top: 8px; font-size: 14px; word-break: break-all; }
.sz-form-result-error { color: #a4161a; }

/* Third menu level: flyout beside the navbar dropdown (desktop) and a nested list in the off-canvas menu (mobile). */
.sz-has-sub > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sz-sub-icon { flex: none; }
.sz-sub-dropdown { min-width: 260px; padding: 0 25px; background: rgb(40 64 85 / 77%); box-shadow: none; }
.sz-sub-dropdown .uk-navbar-dropdown-nav { padding: 12px 0; }
.sz-sub-dropdown .uk-navbar-dropdown-nav > li > a { white-space: normal; }
.sz-nav-group { display: block; padding: 2px 0; text-align: left; opacity: .85; }
.sz-nav-sub2 li a { justify-content: flex-start; text-align: left; }
.sz-nav-sub2 { list-style: none; margin: 2px 0 6px; padding-left: 15px; }

/* KVKK / data protection modal: title and buttons stay visible, only the text scrolls. */
.sz-kvkk-modal .uk-modal-dialog { display: flex; flex-direction: column; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
.sz-kvkk-modal .uk-modal-header,
.sz-kvkk-modal .uk-modal-footer { flex: none; }
.sz-kvkk-modal .uk-modal-header { padding-right: 60px; }
.sz-kvkk-modal .uk-modal-title { font-size: 1.6rem; line-height: 1.3; margin: 0; }
.sz-kvkk-modal .uk-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.sz-kvkk-modal .uk-modal-body img,
.sz-kvkk-modal .uk-modal-body table { max-width: 100%; }
.sz-kvkk-modal .uk-modal-footer .uk-button { margin-left: 6px; }
@media (max-width: 639px) {
    .sz-kvkk-modal .uk-modal-dialog { max-height: calc(100vh - 30px); max-height: calc(100dvh - 30px); }
    .sz-kvkk-modal .uk-modal-header, .sz-kvkk-modal .uk-modal-body, .sz-kvkk-modal .uk-modal-footer { padding-left: 20px; padding-right: 20px; }
    .sz-kvkk-modal .uk-modal-header { padding-right: 50px; }
    .sz-kvkk-modal .uk-modal-title { font-size: 1.25rem; }
    .sz-kvkk-modal .uk-modal-footer { display: flex; gap: 8px; }
    .sz-kvkk-modal .uk-modal-footer .uk-button { flex: 1; margin: 0; padding: 0 10px; }
}

/* reCAPTCHA box in the public forms */
.sz-captcha-widget { min-height: 78px; }
.sz-captcha-notice { margin: 6px 0 0; font-size: 13px; line-height: 1.5; opacity: .85; }
.sz-captcha-notice a { color: inherit; text-decoration: underline; }
.sz-captcha:not(.sz-captcha-v2) .sz-captcha-notice { margin-top: 0; }
/* The v3 badge would cover the live chat/consent area; Google allows hiding it when the notice above is shown. */
.grecaptcha-badge { visibility: hidden; }

/* Date picker (flatpickr) in the site colours */
.flatpickr-calendar { font-family: inherit; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { background: #e31e24; border-color: #e31e24; }
.flatpickr-day.today { border-color: #284056; }
.flatpickr-day.today:hover, .flatpickr-day.today:focus { background: #284056; border-color: #284056; color: #fff; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { color: #284056; }

/* ---- Surveys (/s/{key}) ---------------------------------------------------------------------------------- */
.sz-survey-top { background: #284056; color: #fff; padding: 40px 0 30px; }
.sz-survey-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sz-survey-heading h1 { color: #fff; margin: 0; font-size: 2rem; line-height: 1.2; font-weight: 600; }
.sz-survey-languages { display: flex; gap: 6px; }
.sz-survey-languages a { color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 2px 8px; font-size: 14px; text-decoration: none; }
.sz-survey-languages a.sz-active, .sz-survey-languages a:hover { background: #fff; color: #284056; }
.sz-survey-body { padding-top: 30px; padding-bottom: 60px; font-size: 17px; }
.sz-survey-description { margin-bottom: 20px; }
.sz-note { color: #555; font-size: 15px; }
.sz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 14px; color: #555; }
.sz-progress .uk-progress { margin: 0; flex: 1; height: 8px; }
.sz-progress .uk-progress::-webkit-progress-value { background-color: #e31e24; }
.sz-progress .uk-progress::-moz-progress-bar { background-color: #e31e24; }
.sz-section-head { margin-bottom: 24px; }
.sz-section-head h2 { font-size: 1.5rem; margin-bottom: 6px; color: #284056; }
.sz-q { border: 0; border-left: 3px solid #d8dde3; margin: 0 0 28px; padding: 4px 0 4px 18px; min-width: 0; }
.sz-q-error { border-left-color: #e31e24; }
.sz-q-title { font-weight: 600; color: #284056; font-size: 1.1rem; padding: 0; margin-bottom: 6px; display: block; width: 100%; }
.sz-q-number { color: #e31e24; margin-right: 4px; }
.sz-required { color: #e31e24; margin-left: 2px; }
.sz-q-help { color: #666; font-size: 15px; margin: 0 0 10px; }
.sz-q-message { color: #a4161a; font-size: 15px; margin: 8px 0 0; }
.sz-q-media { display: grid; gap: 12px; margin: 10px 0 14px; }
.sz-media { margin: 0; }
.sz-media img, .sz-media video { max-width: 100%; height: auto; border-radius: 4px; display: block; }
.sz-media figcaption { font-size: 14px; color: #666; margin-top: 4px; }
.sz-embed { position: relative; aspect-ratio: 16 / 9; background: #f0f2f4; max-width: 720px; }
.sz-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sz-embed-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 15px; color: #284056; }
.sz-options { display: grid; gap: 8px; }
.sz-option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sz-option input { flex: none; margin: 0; }
.sz-option-img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.sz-other { max-width: 420px; margin-left: 28px; }
.sz-other[hidden] { display: none; }
.sz-image-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sz-image-choice { position: relative; display: flex; flex-direction: column; gap: 6px; border: 2px solid #d8dde3; border-radius: 6px; padding: 8px; cursor: pointer; }
.sz-image-choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.sz-image-choice input { position: absolute; top: 12px; left: 12px; margin: 0; background-color: #fff; }
.sz-image-choice:has(input:checked) { border-color: #e31e24; }
.sz-image-choice:has(input:focus-visible) { outline: 2px solid #284056; outline-offset: 2px; }
.sz-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sz-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sz-rating label { font-size: 34px; line-height: 1; color: #c8ced6; cursor: pointer; }
.sz-rating input:checked ~ label, .sz-rating label:hover, .sz-rating label:hover ~ label { color: #e31e24; }
.sz-rating input:focus-visible + label { outline: 2px solid #284056; outline-offset: 2px; }
.sz-nps { max-width: 620px; }
.sz-nps-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.sz-nps-item { position: relative; }
.sz-nps-item input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.sz-nps-item span { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid #c8ced6; border-radius: 4px; cursor: pointer; font-weight: 600; color: #284056; }
.sz-nps-item input:checked + span { background: #e31e24; border-color: #e31e24; color: #fff; }
.sz-nps-item input:focus-visible + span { outline: 2px solid #284056; outline-offset: 2px; }
.sz-nps-labels { display: flex; justify-content: space-between; font-size: 13px; color: #666; margin-top: 4px; }
.sz-matrix-wrap { overflow-x: auto; }
.sz-matrix th, .sz-matrix td { text-align: center; vertical-align: middle; font-size: 15px; }
.sz-matrix tbody th { text-align: left; font-weight: 500; color: #333; }
.sz-matrix-label { display: none; }
@media (max-width: 639px) {
    .sz-matrix thead { display: none; }
    .sz-matrix, .sz-matrix tbody, .sz-matrix tr, .sz-matrix th, .sz-matrix td { display: block; width: 100%; }
    .sz-matrix tr { border-bottom: 1px solid #e5e5e5; padding: 8px 0; }
    .sz-matrix td { text-align: left; padding: 4px 0; }
    .sz-matrix-label { display: inline; margin-left: 8px; }
    .sz-nps-scale { grid-template-columns: repeat(6, 1fr); }
    .sz-survey-heading h1 { font-size: 1.5rem; }
}
.sz-ranking { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.sz-rank-item { display: flex; align-items: center; gap: 10px; }
.sz-number, .sz-date { max-width: 260px; }
.sz-file-current { font-size: 15px; }
.sz-survey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.sz-survey-actions form { margin: 0; }
.sz-grow { flex: 1; }
.sz-save-later { font-size: 15px; }
.sz-consent-text { max-height: 260px; overflow-y: auto; border: 1px solid #d8dde3; padding: 14px 16px; font-size: 15px; background: #fafbfc; margin-bottom: 12px; }
.sz-consent-check { display: flex; gap: 10px; align-items: flex-start; }
.sz-survey-message h2 { color: #284056; }
.sz-quiz-score { font-size: 1.4rem; font-weight: 600; color: #e31e24; }
.sz-resume-link input { font-family: monospace; font-size: 14px; }
@media (max-width: 639px) {
    .sz-survey-actions { flex-direction: column; align-items: stretch; }
    .sz-survey-actions .sz-grow { display: none; }
    .sz-survey-actions button[value=next], .sz-survey-actions .uk-button-danger { order: -2; }
    .sz-survey-actions .sz-save-later { order: -1; }
}
