/* ==========================================================================
   CODABITE — one question per screen (the report form and the qualify page)
   ========================================================================== */
.flow { min-height: 100svh; display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; padding: 22px 20px 26px; position: relative; z-index: 2; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-top .brand span { font-size: 1.45rem; }
.flow-top .brand svg { width: 26px; height: 26px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233, 185, 180, 0.2); transition: all 0.3s; }
.dots i.f { background: var(--gold); }
.dots i.c { background: var(--gold); box-shadow: 0 0 0 4px rgba(216, 185, 140, 0.25); }
.flow-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.screen { animation: screen-in 0.4s var(--ease) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px); } }
.intro { margin: 0 0 24px; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.qi { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: rgba(216, 185, 140, 0.14); border: 1px solid var(--line-strong); }
.flow svg.i { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flow h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.12; margin: 0 0 28px; }
.flow h1 { font-size: clamp(2.5rem, 8vw, 3.6rem); line-height: 1.05; margin: 0; }
.qsub { margin: -16px 0 24px; color: var(--muted); font-size: 0.98rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts.one { grid-template-columns: 1fr; }
.opt {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 98px; text-align: left; position: relative;
  padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: rgba(40, 18, 27, 0.6); color: var(--ivory); font: 500 1rem/1.3 var(--sans); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.opts.one .opt { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 18px; }
.opt:hover { border-color: var(--gold); }
.opt:active { transform: scale(0.97); }
.opt.on { border-color: var(--gold); background: rgba(216, 185, 140, 0.14); }
.opt .tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.opt .tick svg { width: 12px; height: 12px; stroke: #1c0a11; fill: none; stroke-width: 3; opacity: 0; }
.opt.on .tick { background: var(--gold); border-color: var(--gold); }
.opt.on .tick svg { opacity: 1; }
.lvl { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.lvl b { width: 8px; border-radius: 3px; background: rgba(233, 185, 180, 0.18); }
.lvl b.f { background: var(--gold); }
.flow-row { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 12px; }
.back { background: none; border: 0; font: inherit; font-size: 1.3rem; color: var(--muted); cursor: pointer; padding: 6px 4px; }
.back:hover { color: var(--ivory); }
.flow .btn[disabled] { opacity: 0.35; cursor: not-allowed; transform: none; }
.fields { display: grid; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow input[type=text], .flow input[type=email], .flow input[type=tel], .flow textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(40, 18, 27, 0.6); color: var(--ivory); font: 500 1rem var(--sans);
}
.flow input:focus, .flow textarea:focus { outline: none; border-color: var(--gold); }
.flow textarea { min-height: 110px; resize: vertical; }
.flow .consent { margin-top: 4px; }
.flow-err { color: #f0a0a0; font-size: 0.86rem; min-height: 1.2em; margin: 4px 0 0; }
.priv { display: flex; gap: 10px; align-items: flex-start; margin: 30px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.priv svg.i { width: 18px; height: 18px; margin-top: 1px; }
.priv a { color: var(--blush); }
.center { text-align: center; }
/* the little celebration between parts */
.pop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(11, 6, 8, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: pop-fade 0.25s ease both; }
.pop .pop-card { width: 100%; max-width: 400px; text-align: center; padding: 40px 30px 30px; border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, #2a1119, #12080c); box-shadow: 0 30px 80px -20px rgba(150, 34, 70, 0.8); animation: pop-rise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.ring { width: 84px; height: 84px; margin: 0 auto 20px; display: block; }
.ring circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 0.6s ease 0.1s forwards; }
.ring path { fill: none; stroke: var(--blush); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.35s ease 0.55s forwards; }
.pop h2 { margin: 0 0 6px; font-size: 1.9rem; }
.pop p { margin: 0; color: var(--muted); }
.track { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.track i { width: 34px; height: 5px; border-radius: 5px; background: rgba(233, 185, 180, 0.2); }
.track i.f { background: var(--gold); }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-rise { from { opacity: 0; transform: translateY(20px) scale(0.92); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* "building your report" */
.build { display: grid; gap: 18px; margin-top: 6px; }
.build div { display: flex; align-items: center; gap: 14px; font-weight: 500; transition: opacity 0.4s; }
.build div.wait { opacity: 0.22; }
@media (max-width: 440px) { .two { grid-template-columns: 1fr; } .opt { min-height: 88px; padding: 14px; font-size: 0.94rem; } }
@media (prefers-reduced-motion: reduce) { .screen, .pop, .pop .pop-card { animation: none; } .ring circle, .ring path { animation: none; stroke-dashoffset: 0; } }

.field-hint { margin: -4px 2px 2px; font-size: 0.78rem; color: var(--muted); }
