/* Quiz screens (Mars Men quiz flow) in a full-screen overlay, styled like blackoutmedical.com */
.qz { position: fixed; inset: 0; z-index: 50; background: #fff; color: var(--ink); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: qz-in .25s ease both; }
.qz[hidden] { display: none; }
@keyframes qz-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.qz-open { overflow: hidden; }
.qz-close { position: absolute; top: 14px; right: 12px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.qz-close:hover { background: var(--panel); }
.top { position: relative; padding: 22px 16px 0; text-align: center; }
.progress { max-width: var(--col); height: 3px; margin: 18px auto 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 5%; background: var(--ink); transition: width .45s ease; }

.quiz { max-width: var(--col); margin: 0 auto; padding: 28px 16px 56px; }
.quiz.enter { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.headline { font-size: clamp(38px, 9vw, 54px); margin-bottom: 16px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); margin: 0 0 30px; }
.check { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ink); position: relative; }
.check::after { content: ''; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }

.question { font-size: clamp(28px, 6.6vw, 36px); line-height: 1.08; margin-bottom: 18px; }
.hint { margin: -8px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 58px; padding: 14px 20px; text-align: left;
  color: var(--ink); font-size: 15.5px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.option:hover { border-color: var(--ink); background: #fff; }
.option:active { transform: scale(.99); }
.option small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.option .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #bdb7ae; background: #fff; }
.option.is-picked { background: var(--ink); border-color: var(--ink); color: #fff; }
.option.is-picked small { color: rgba(255,255,255,.75); }
.option.is-picked .dot { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 4px var(--ink); }

.fields { display: grid; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.f { display: grid; gap: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.f input, .f select { width: 100%; min-height: 56px; padding: 0 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 500; appearance: none; -webkit-appearance: none; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.f input:focus, .f select:focus { outline: none; border-color: var(--ink); }
.err { min-height: 18px; margin: 0; color: #b42318; font-size: 13.5px; }
.err:empty { min-height: 0; }
.consent { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

.back { margin-top: 18px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; font-size: 14px; }
.back:hover { color: var(--ink); }
.quiz .badges { margin-top: 28px; }

.analyzing { text-align: center; padding-top: 40px; }
.ring { width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing ul { list-style: none; padding: 0; margin: 10px auto 0; max-width: 300px; text-align: left; }
.analyzing li { padding: 9px 0 9px 30px; position: relative; color: #bdb7ae; transition: color .3s; }
.analyzing li::before { content: ''; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #cfc8bd; transition: all .3s; }
.analyzing li.done { color: var(--ink); }
.analyzing li.done::before { background: var(--ink); border-color: var(--ink); }

/* Soft-stop results */
.results { padding-bottom: 96px; }
.r-hero { max-width: var(--col); margin: 0 auto; padding: 28px 16px 8px; }
.r-hero .h-display { margin: 14px 0 16px; font-size: clamp(34px, 8vw, 48px); }
.lede { font-size: 16.5px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 22px; }
.r-foot { text-align: center; padding: 30px 16px 40px; }

@media (min-width: 720px) {
  .top { padding-top: 30px; }
  .quiz { padding-top: 44px; }
}
