/* Quiz public — stiluri (prefix qz-). Fără dependențe externe: funcționează cu CSP strictă. */
:root { --qz-main: #014233; --qz-main-light: #016a52; --qz-bg: #f3f6f4; --qz-text: #22332b; --qz-muted: #66756d; --qz-border: #d9e1dc; --qz-red: #c0392b; --qz-focus: rgba(1, 106, 82, .35); }
* { box-sizing: border-box; }
.qz-body { margin: 0; background: var(--qz-bg); color: var(--qz-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
.qz-body img { max-width: 100%; height: auto; }
.qz-body a { color: var(--qz-main-light); }
.qz-wrap { max-width: 760px; margin: 0 auto; padding: 22px 14px 8px; }
.qz-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 16px rgba(0, 0, 0, .08); padding: 26px 24px 24px; }
.qz-center { text-align: center; padding: 44px 24px; }
.qz-center h2 { color: var(--qz-main); margin-top: 0; }
.qz-intro { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--qz-border); }
.qz-preview { background: #fff3cd; color: #7a5b00; border: 1px solid #ffe69c; border-radius: 10px; padding: 9px 14px; margin-bottom: 14px; font-size: 14px; }
.qz-notice { background: #e8f5f0; color: var(--qz-main); border-radius: 10px; padding: 14px 16px; }
.qz-notice-err { background: #fdecee; color: #8a1c27; }

/* Progres */
.qz-progress { margin-bottom: 20px; }
.qz-progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--qz-muted); margin-bottom: 6px; font-weight: 600; }
.qz-bar { height: 8px; background: #e6ece8; border-radius: 8px; overflow: hidden; }
.qz-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--qz-main-light), #28a745); border-radius: 8px; transition: width .35s ease; }

/* Pași și întrebări */
.qz-step[hidden], .qz-q[hidden], [hidden] { display: none !important; }
.qz-step-title { margin: 0 0 4px; font-size: 22px; color: var(--qz-main); outline: none; }
.qz-step-desc { margin: 0 0 18px; color: var(--qz-muted); font-size: 14px; }
.qz-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.qz-label { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.qz-req { color: var(--qz-red); }
.qz-help { font-size: 13px; color: var(--qz-muted); margin: -2px 0 8px; }
.qz-q input[type=text], .qz-q input[type=email], .qz-q input[type=tel], .qz-q input[type=url], .qz-q input[type=date], .qz-q select, .qz-q textarea {
    width: 100%; font: inherit; color: inherit; padding: 12px 14px; border: 1.5px solid var(--qz-border); border-radius: 10px; background: #fff; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.qz-q textarea { resize: vertical; min-height: 110px; }
.qz-q input:focus, .qz-q select:focus, .qz-q textarea:focus { outline: none; border-color: var(--qz-main-light); box-shadow: 0 0 0 4px var(--qz-focus); }
.qz-invalid input[type=text], .qz-invalid input[type=email], .qz-invalid input[type=tel], .qz-invalid input[type=url], .qz-invalid input[type=date], .qz-invalid select, .qz-invalid textarea { border-color: var(--qz-red); }
.qz-err { color: var(--qz-red); font-size: 13px; margin-top: 5px; min-height: 0; }
.qz-err:empty { display: none; }
.qz-count { text-align: right; font-size: 12px; color: var(--qz-muted); }

/* Opțiuni (carduri apăsabile, țintă de minimum 48px) */
.qz-opts { display: grid; gap: 8px; }
.qz-opt, .qz-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--qz-border); border-radius: 10px; cursor: pointer; background: #fff; min-height: 48px; transition: border-color .12s, background .12s; }
.qz-opt:hover, .qz-check:hover { border-color: #b7cbc2; }
.qz-opt input, .qz-check input { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--qz-main); }
.qz-opt:has(input:checked), .qz-check:has(input:checked) { border-color: var(--qz-main-light); background: #eef7f3; }
.qz-opt:has(input:focus-visible), .qz-check:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--qz-focus); }
.qz-scales { display: flex; gap: 8px; flex-wrap: wrap; }
.qz-scale { position: relative; }
.qz-scale input { position: absolute; opacity: 0; inset: 0; }
.qz-scale span { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1.5px solid var(--qz-border); border-radius: 10px; font-weight: 700; cursor: pointer; background: #fff; }
.qz-scale input:checked + span { background: var(--qz-main); border-color: var(--qz-main); color: #fff; }
.qz-scale input:focus-visible + span { box-shadow: 0 0 0 4px var(--qz-focus); }
.qz-invalid .qz-opt, .qz-invalid .qz-check { border-color: #e6a8a1; }

/* GDPR */
.qz-gdpr { margin: 6px 0 18px; padding: 12px 14px; background: #f7faf8; border: 1px solid var(--qz-border); border-radius: 10px; font-size: 14px; }
.qz-gdpr summary { cursor: pointer; font-weight: 600; color: var(--qz-main); }
.qz-gdpr-body { margin-top: 10px; max-height: 260px; overflow: auto; }

/* Navigare */
.qz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 26px; }
.qz-btn { font: inherit; font-weight: 700; padding: 14px 26px; border-radius: 10px; border: 2px solid var(--qz-main); background: var(--qz-main); color: #fff; cursor: pointer; min-height: 50px; transition: background .15s, opacity .15s; }
.qz-btn:hover:not(:disabled) { background: var(--qz-main-light); border-color: var(--qz-main-light); }
.qz-btn:disabled { opacity: .55; cursor: not-allowed; }
.qz-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--qz-focus); }
.qz-btn-ghost { background: #fff; color: var(--qz-main); }
.qz-btn-ghost:hover:not(:disabled) { background: #eef7f3; color: var(--qz-main); border-color: var(--qz-main); }
.qz-nav .qz-btn:last-child { margin-left: auto; }
.qz-global-err { color: #8a1c27; background: #fdecee; border-radius: 10px; padding: 0; margin-top: 16px; }
.qz-global-err:not(:empty) { padding: 12px 14px; }
.qz-global-err .qz-btn { margin-top: 10px; }
.qz-pow { font-size: 12px; color: var(--qz-muted); text-align: right; margin: 8px 0 0; }
.qz-done { text-align: center; padding: 24px 6px; outline: none; }
.qz-done h3 { color: var(--qz-main); font-size: 26px; margin-top: 0; }
.qz-countdown { font-size: 26px; font-weight: 700; color: var(--qz-main); font-variant-numeric: tabular-nums; }

/* Honeypot: în afara ecranului, nu display:none (boții ocolesc câmpurile ascunse cu display:none) */
.qz-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 575px) {
    .qz-wrap { padding: 12px 8px 4px; }
    .qz-card { padding: 20px 14px; border-radius: 12px; }
    .qz-step-title { font-size: 20px; }
    .qz-nav { flex-direction: column-reverse; }
    .qz-nav .qz-btn, .qz-nav .qz-btn:last-child { width: 100%; margin-left: 0; }
    .qz-btn { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .qz-nav, .qz-pow { display: none; } .qz-body { background: #fff; } .qz-card { box-shadow: none; } }
