/* =========================================================
   QELVYNORA — Assessment quiz (one question per screen)
   ========================================================= */
.quiz-page { background: #0a0a0a; color: #fff; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

.qz-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 20px 6px; }
.qz-brand { display: flex; align-items: center; gap: 10px; }
.qz-brand img:first-child { width: 40px; height: auto; }
.qz-brand .qz-word { height: 24px; width: auto; }
.qz-help { font-family: var(--f-head); font-weight: 700; font-size: .9rem; color: #fff; padding: 10px 4px; }
.qz-help:hover { color: var(--lime-2); }

.qz { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 20px 130px; }
.qz-top { display: flex; align-items: center; gap: 14px; margin: 10px 0 30px; }
.qz-back { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: #1c1c1c; color: #fff; cursor: pointer; transition: background .2s, opacity .2s; }
.qz-back svg { width: 20px; height: 20px; }
.qz-back:hover { background: #2a2a2a; }
.qz-back[hidden] { display: grid; visibility: hidden; }
.qz-track { flex: 1; height: 5px; border-radius: 5px; background: #2a2a2a; overflow: hidden; }
.qz-track span { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 5px; transition: width .5s var(--ease); }
.qz-count { font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #9a9a9a; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.quiz-page.qz-done .qz-top { display: none; }

.qz-screen { animation: qzIn .45s var(--ease); }
.qz-screen.out { animation: qzOut .2s ease forwards; }
@keyframes qzIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes qzOut { to { opacity: 0; transform: translateX(-16px); } }

.qz-q { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.6rem, 5.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; text-wrap: balance; }
.qz-q em { font-style: normal; color: var(--lime-2); }
.qz-sub { color: #a8a8a8; font-size: 1rem; margin-bottom: 26px; }
.qz-q + .qz-opts { margin-top: 26px; }

/* options */
.qz-opts { display: grid; gap: 12px; }
.qz-opt { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 16px 20px; text-align: left; cursor: pointer;
  background: #1c1c1c; border: 2px solid transparent; border-radius: 4px; color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; line-height: 1.3;
  transition: border-color .2s, background .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.qz-opt:hover { background: #232323; }
.qz-opt:active { transform: scale(.99); }
.qz-opt:focus-visible { outline: none; border-color: rgba(110,224,74,.6); }
.qz-opt .mk { width: 24px; height: 24px; flex-shrink: 0; border: 2px solid #8a8a8a; border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.qz-opt.multi .mk { border-radius: 4px; }
.qz-opt .mk svg { width: 14px; height: 14px; color: #0a0a0a; opacity: 0; }
.qz-opt .ic { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: #2a2a2a; color: var(--lime-2); }
.qz-opt .ic svg { width: 22px; height: 22px; }
.qz-opt .tx { flex: 1; }
.qz-opt .tx small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .86rem; color: #9a9a9a; margin-top: 2px; }
.qz-opt .go { width: 22px; height: 22px; flex-shrink: 0; color: #fff; }
.qz-opt.sel { border-color: var(--lime); background: #1f241d; }
.qz-opt.sel .mk { border-color: var(--lime); background: var(--lime); }
.qz-opt.sel .mk svg { opacity: 1; }
.qz-opt:not(.multi).sel .mk { background: transparent; box-shadow: inset 0 0 0 4px #1f241d; background: var(--lime); }
.qz-opt:not(.multi).sel .mk svg { opacity: 0; }
.qz-opts.grid2 { grid-template-columns: 1fr 1fr; }
.qz-opts.grid2 .qz-opt { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 120px; }
.qz-opts.grid2 .qz-opt .go { align-self: flex-end; margin-top: -22px; }

/* feedback box (after a choice) */
.qz-note { display: flex; gap: 14px; margin-top: 18px; padding: 18px 20px; background: #101a0d; border: 1px solid rgba(76,199,46,.45); border-radius: 4px; animation: qzIn .4s var(--ease); }
.qz-note svg { width: 24px; height: 24px; color: var(--lime-2); flex-shrink: 0; margin-top: 2px; }
.qz-note b { display: block; font-family: var(--f-head); font-size: 1rem; margin-bottom: 2px; }
.qz-note p { color: #c8c8c8; font-size: .95rem; line-height: 1.5; }

.qz-skip { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 16px 4px; background: none; border: 0; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1rem; cursor: pointer; }
.qz-skip svg { width: 20px; height: 20px; }
.qz-skip:hover { color: var(--lime-2); }

/* info screens */
.qz-info .qz-img { position: relative; margin: 0 -20px 26px; aspect-ratio: 16/10; overflow: hidden; background: #151515; }
.qz-info .qz-img img { width: 100%; height: 100%; object-fit: cover; }
.qz-info .qz-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #0a0a0a); }
.qz-info .qz-q { margin-bottom: 14px; }
.qz-info p.lead2 { color: #c8c8c8; font-size: 1.05rem; margin-bottom: 18px; }
.qz-info ul { display: grid; gap: 10px; }
.qz-info li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; font-weight: 500; }
.qz-info li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); flex-shrink: 0; }

/* inputs */
.qz-fields { display: grid; gap: 16px; }
.qz-fields.two { grid-template-columns: 1fr 1fr; }
.qz-field label { display: block; font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #a8a8a8; margin-bottom: 8px; }
.qz-field label .req { color: var(--lime-2); }
.qz-field .wrap { position: relative; }
.qz-field input { width: 100%; height: 62px; padding: 0 18px; background: #1c1c1c; border: 2px solid transparent; border-radius: 4px; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.qz-field input::placeholder { color: #5e5e5e; font-weight: 600; }
.qz-field input:focus { border-color: var(--lime); }
.qz-field .unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: #8a8a8a; font-family: var(--f-head); font-weight: 700; pointer-events: none; }
.qz-field.has-unit input { padding-right: 56px; }
.qz-field .err { display: none; color: #ff6a52; font-size: .85rem; margin-top: 6px; }
.qz-field.bad input { border-color: #ff6a52; }
.qz-field.bad .err { display: block; }
.qz-field.full { grid-column: 1 / -1; }
.qz-bmi { margin-top: 18px; padding: 18px 20px; border-radius: 4px; background: #151515; border: 1px solid rgba(255,255,255,.08); display: none; }
.qz-bmi.show { display: block; animation: qzIn .4s var(--ease); }
.qz-bmi .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qz-bmi b { font-family: var(--f-head); font-size: 1.6rem; }
.qz-bmi span { color: var(--lime-2); font-family: var(--f-head); font-weight: 700; font-size: .9rem; }
.qz-bmi .scale { position: relative; height: 6px; border-radius: 6px; margin: 14px 0 8px; background: linear-gradient(90deg, #5aa9e6 0 18%, var(--lime) 18% 50%, #e8c547 50% 75%, #ff6a52 75%); }
.qz-bmi .scale i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid #0a0a0a; transition: left .4s var(--ease); }
.qz-bmi small { color: #8a8a8a; font-size: .8rem; }
.qz-legal { margin-top: 18px; color: #8a8a8a; font-size: .82rem; line-height: 1.55; }

/* loading */
.qz-load { text-align: center; padding-top: 30px; }
.qz-ring { position: relative; width: 168px; height: 168px; margin: 0 auto 30px; }
.qz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring circle { fill: none; stroke-width: 10; }
.qz-ring .bg { stroke: #222; }
.qz-ring .fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 471; stroke-dashoffset: 471; transition: stroke-dashoffset .12s linear; }
.qz-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-head); font-size: 2.4rem; }
.qz-load .qz-q { margin-bottom: 26px; }
.qz-steps { display: grid; gap: 12px; text-align: left; max-width: 360px; margin: 0 auto; }
.qz-steps div { display: flex; align-items: center; gap: 12px; color: #6d6d6d; font-weight: 500; transition: color .3s; }
.qz-steps div i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3a3a; display: grid; place-items: center; flex-shrink: 0; transition: .3s; }
.qz-steps div i svg { width: 12px; height: 12px; color: #0a0a0a; opacity: 0; }
.qz-steps div.on { color: #fff; }
.qz-steps div.on i { background: var(--lime); border-color: var(--lime); }
.qz-steps div.on i svg { opacity: 1; }

/* result */
.qz-result .tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 4px; background: #101a0d; border: 1px solid rgba(76,199,46,.45); color: var(--lime-2); font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.qz-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.qz-sum div { padding: 16px; background: #151515; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; }
.qz-sum div.wide { grid-column: 1 / -1; }
.qz-sum small { display: block; font-family: var(--f-head); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 4px; }
.qz-sum b { font-family: var(--f-head); font-size: 1.02rem; line-height: 1.3; }
.qz-next { padding: 20px; border-radius: 4px; background: #fff; color: #0a0a0a; margin-bottom: 20px; }
.qz-next h3 { font-size: 1.1rem; margin-bottom: 10px; }
.qz-next ol { list-style: none; counter-reset: n; display: grid; gap: 8px; }
.qz-next li { counter-increment: n; display: flex; gap: 10px; font-size: .95rem; color: #333; }
.qz-next li::before { content: counter(n); width: 22px; height: 22px; border-radius: 50%; background: #0a0a0a; color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.qz-acts { display: grid; gap: 10px; }
.qz-acts .btn { width: 100%; padding: 18px; }
.qz-acts .btn-wa { background: #25d366; color: #0a0a0a; }
.qz-acts .btn-wa:hover { background: #3be27a; transform: translateY(-2px); }
.qz-acts .btn-wa svg { width: 20px; height: 20px; }
.qz-restart { display: block; margin: 16px auto 0; background: none; border: 0; color: #8a8a8a; font-size: .9rem; text-decoration: underline; cursor: pointer; padding: 8px; }

/* sticky continue bar */
.qz-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #0a0a0a; border-top: 1px solid #1f1f1f; transform: translateY(110%); transition: transform .35s var(--ease); }
.qz-cta.show { transform: none; }
.qz-continue { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 600px; margin: 0 auto; height: 64px; padding: 0 24px; border: 0; border-radius: 4px; background: var(--lime); color: #0a0a0a; font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: background .2s, opacity .2s; }
.qz-continue svg { width: 24px; height: 24px; }
.qz-continue:hover { background: var(--lime-2); }
.qz-continue:disabled { background: #1f2a1b; color: #55704a; cursor: not-allowed; }
.qz-noscript { color: #c8c8c8; }
.qz-noscript a { color: var(--lime-2); text-decoration: underline; }

@media (min-width: 761px) {
  .qz-head { padding-top: 26px; }
  .qz { padding-bottom: 150px; }
  .qz-info .qz-img { margin: 0 0 28px; border-radius: 6px; }
}
@media (max-width: 420px) {
  .qz-head { padding: 14px 16px 4px; }
  .qz { padding: 6px 16px 120px; }
  .qz-top { margin: 8px 0 24px; gap: 12px; }
  .qz-opt { min-height: 66px; padding: 14px 16px; font-size: 1rem; gap: 14px; }
  .qz-opts.grid2 { gap: 10px; }
  .qz-opts.grid2 .qz-opt { min-height: 104px; }
  .qz-info .qz-img { margin: 0 -16px 22px; }
  .qz-fields.two { grid-template-columns: 1fr; }
  .qz-cta { padding-left: 16px; padding-right: 16px; }
  .qz-continue { height: 58px; font-size: 1.02rem; }
  .qz-sum { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .qz-screen, .qz-screen.out, .qz-note { animation: none; } }
.qz-cta:not(.show) { visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.qz-done .qz-cta { display: none; }
@media (max-width: 420px) and (min-width: 341px) { .qz-sum { grid-template-columns: 1fr 1fr; } }

/* Phone with searchable country code */
.qz-tel { display: flex; gap: 10px; }
.qz-cc { position: relative; flex: none; }
.qz-cc-btn { display: flex; align-items: center; gap: 8px; min-width: 118px; height: 62px; padding: 0 12px 0 14px; background: #1c1c1c; border: 2px solid transparent; border-radius: 4px; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; white-space: nowrap; cursor: pointer; transition: border-color .2s; }
.qz-cc-btn:focus-visible, .qz-cc-btn[aria-expanded="true"] { outline: none; border-color: var(--lime); }
.qz-cc-btn svg { width: 16px; height: 16px; color: #8a8a8a; margin-left: auto; transition: transform .25s; }
.qz-cc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.qz-tel > input { flex: 1; min-width: 0; }
.qz-field.bad .qz-tel > input { border-color: #ff6a52; }

.qz-cc-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(380px, calc(100vw - 32px)); background: #161616; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); overflow: hidden; }
.qz-cc-pop[hidden] { display: none; }
.qz-cc-top { display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.qz-cc-search { position: relative; flex: 1; }
.qz-cc-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #8a8a8a; pointer-events: none; }
.qz-field .qz-cc-search input { height: 46px; padding: 0 12px 0 40px; font-family: var(--f-body); font-size: 16px; font-weight: 500; background: #222; border-radius: 8px; }
.qz-cc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.qz-cc-close { display: none; flex: none; width: 42px; height: 42px; border: 0; border-radius: 8px; background: #222; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.qz-cc-list { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.qz-cc-list li[role="option"] { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 8px; color: #eee; font-size: .98rem; cursor: pointer; }
.qz-cc-list li .f { font-size: 1.25rem; line-height: 1; }
.qz-cc-list li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-cc-list li .d { color: #9a9a9a; font-weight: 600; font-variant-numeric: tabular-nums; }
.qz-cc-list li.act, .qz-cc-list li[role="option"]:hover { background: rgba(110,224,74,.1); }
.qz-cc-list li[aria-selected="true"] { color: var(--lime-2); }
.qz-cc-list li[aria-selected="true"] .d { color: var(--lime-2); }
.qz-cc-sep { padding: 12px 10px 6px; font-family: var(--f-head); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #777; border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; }
.qz-cc-none { padding: 18px 10px; color: #8a8a8a; text-align: center; }

/* Phones: full-height bottom sheet so the keyboard never hides the list */
@media (max-width: 640px) {
  .qz-cc-pop { position: fixed; inset: 0; width: auto; top: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; background: #111; }
  .qz-cc-top { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
  .qz-cc-close { display: block; }
  .qz-cc-list { flex: 1; max-height: none; padding: 6px 10px 24px; }
  .qz-cc-list li[role="option"] { padding: 14px 10px; font-size: 1.02rem; }
  html.qz-cc-open, html.qz-cc-open body { overflow: hidden; }
}
@media (max-width: 380px) { .qz-cc-btn { min-width: 104px; font-size: 1rem; padding: 0 8px 0 10px; } }
