* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--page, #f3f4f6); color: var(--ink, #111);
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
@media (min-width: 520px) { #app { margin: 24px auto; min-height: auto; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.08); } }

.top { background: var(--header-bg, #fff); padding: 14px 16px; display: flex; justify-content: var(--logo-align, center); }
.logo { height: var(--logo-h, 56px); width: auto; display: block; }

.wrap { padding: 16px 16px 8px; flex: 1; }
.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.progress { margin-bottom: 14px; }
.progress-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; min-height: 24px; }
.back { background: none; border: 0; font: inherit; color: var(--ink, #111); cursor: pointer; padding: 4px 0; }
.bars { display: flex; gap: 6px; }
.bars span { flex: 1; height: 4px; border-radius: 4px; background: #e5e7eb; }
.bars span.on { background: var(--brand, #111); }

h1.q { font-size: 22px; line-height: 1.25; text-align: center; margin: 10px 0 6px; font-weight: 800; }
.sub { text-align: center; color: #444; margin: 0 0 14px; font-size: 15px; line-height: 1.4; }
.note { text-align: center; font-weight: 700; font-size: 14px; line-height: 1.45; margin: 18px 6px 6px; }

.opts { display: grid; gap: 10px; margin-top: 12px; }
.opts-grid { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--border, #111); border-radius: 10px; padding: 14px;
  font: inherit; color: inherit; cursor: pointer; transition: transform .1s, background .15s, border-color .15s;
}
.opt:hover { border-color: var(--brand, #111); background: var(--hover, #f8f8f8); }
.opt:active { transform: scale(.98); }
.opt.sel { border-color: var(--brand, #111); background: var(--selected, #f1f5f9); box-shadow: 0 0 0 2px var(--brand, #111) inset; }
.opt strong { font-size: 16px; display: block; }
.opt .bullet { font-size: 13px; margin-top: 3px; }
.opt .badge { margin-top: 8px; background: var(--badge, #ffd400); color: #111; font-weight: 700; font-size: 13px; padding: 6px 8px; border-radius: 4px; }
.opt .emoji { font-size: 22px; width: 28px; text-align: center; }
.opts-grid .opt { flex-direction: column; padding: 0; overflow: hidden; gap: 0; position: relative; }
.opts-grid .opt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.opts-grid .opt .opt-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 8px 8px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.opts-grid .opt:last-child:nth-child(odd) { grid-column: 1 / -1; width: 50%; justify-self: center; }

.cta {
  display: block; width: 100%; margin-top: 16px; padding: 16px; border: 0; border-radius: 10px;
  background: var(--cta, #111); color: var(--cta-ink, #fff); font: inherit; font-weight: 800; font-size: 17px; cursor: pointer;
  text-decoration: none; text-align: center;
}
.cta:disabled { opacity: .45; cursor: not-allowed; }
.cta.wa { background: #25d366; color: #fff; }

.form { margin-top: 8px; }
.field { display: flex; align-items: center; border: 1.5px solid #d1d5db; border-radius: 10px; margin-bottom: 10px; background: #fff; }
.field:focus-within { border-color: var(--brand, #111); }
.ficon { padding-left: 12px; }
.field input { flex: 1; border: 0; outline: 0; padding: 14px 12px; font: inherit; font-size: 16px; background: transparent; min-width: 0; }
.field input:disabled { color: #888; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; margin: 6px 0 10px; color: #333; }
.check input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.err { color: #c0262d; font-size: 14px; min-height: 0; margin: 4px 0 0; }

.result { text-align: center; padding-top: 8px; }
.result h1 { font-size: 24px; margin: 8px 0; }
.result p { font-size: 16px; line-height: 1.5; }
.steps3 { text-align: left; margin-top: 22px; }
.steps3 .row { display: flex; gap: 12px; margin-bottom: 14px; }
.steps3 .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand, #111); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps3 b { display: block; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 16px auto 6px; display: block; }

.foot { text-align: center; padding: 18px 0 22px; font-size: 12px; }
.foot a { color: #666; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.8s ease-in forwards; }
@keyframes fall { to { top: 110%; transform: rotate(720deg); } }
