/* ==========================================================================
   TAAGIDIM — intake redesign layer (loaded last)
   Short 3-step wizard, tiles, labelled step dots, optional follow-up,
   hero quick-start panel, and contrast fixes for the yellow accent.
   ========================================================================== */

/* Contrast: dark text on the yellow accent, always ------------------------ */
.btn--accent { --btn-fg: var(--ink-950); }
.btn:hover { color: var(--ink-950); }
.btn--wa:hover { color: #06180d; }
.btn--ghost { --btn-fg: var(--fg); }
.card__icon { background: rgba(255, 214, 10, 0.14); color: var(--brass-500); }
.card--light .card__icon { background: rgba(8, 12, 22, 0.08); color: var(--ink-950); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Touch targets ----------------------------------------------------------- */
.opt span { min-height: 44px; display: inline-flex; align-items: center; }
.chip { min-height: 44px; }
.check { min-height: 48px; }

/* Hero quick-start panel ------------------------------------------------- */
.hero--home::before { content: ''; position: absolute; inset-inline-start: 55%; top: -30%; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(255, 214, 10, 0.1), transparent 72%); pointer-events: none; z-index: 0; }
.hero__motif { position: absolute; inset-inline-end: -6%; bottom: -14%; width: min(44vw, 520px); height: auto; opacity: 0.06; color: var(--parch-100); z-index: 0; pointer-events: none; }
.quick { position: relative; z-index: 1; display: grid; gap: 0.85rem; padding: 1.3rem; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(24, 35, 58, 0.92), rgba(13, 20, 36, 0.97)); box-shadow: var(--sh-lg); }
.quick__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--slate-300); text-transform: uppercase; }
.quick__live { color: var(--tone-green); letter-spacing: 0.06em; }
.quick__goals { display: grid; gap: 0.55rem; }
.quick__goal { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(244, 242, 236, 0.03); color: inherit; transition: border-color var(--d-fast), background var(--d-fast), transform var(--d-base) var(--ease-out); }
.quick__goal:hover, .quick__goal:focus-visible { border-color: var(--tone-yellow); background: rgba(255, 214, 10, 0.07); transform: translateX(-3px); outline: none; }
.quick__goal .ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 214, 10, 0.14); color: var(--tone-yellow); }
.quick__goal .ico svg { width: 21px; height: 21px; }
.quick__goal b { display: block; font-weight: 800; font-size: 1.02rem; }
.quick__goal small { display: block; color: var(--fg-3); font-size: 0.82rem; margin-top: 0.1rem; }
.quick__goal .btn-arrow { margin-inline-start: auto; width: 18px; height: 18px; opacity: 0.55; flex: 0 0 auto; }
.quick__or { text-align: center; font-size: 0.8rem; color: var(--fg-3); position: relative; }
.quick__or::before, .quick__or::after { content: ''; position: absolute; top: 50%; width: 18%; height: 1px; background: var(--line); }
.quick__or::before { inset-inline-start: 0; } .quick__or::after { inset-inline-end: 0; }
.lookup-widget--compact { padding: 0.9rem; border-radius: var(--r-md); gap: 0.6rem; background: rgba(244, 242, 236, 0.03); }
.lookup-widget--compact .lookup-widget__row input { padding: 0.7rem 0.9rem; font-size: 0.95rem; }
.lookup-widget--compact .lookup-widget__out:empty { display: none; }
.quick__foot { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.8rem; color: var(--fg-2); }
.quick__foot span::before { content: '✓ '; color: var(--tone-green); font-weight: 800; }

/* Wizard shell --------------------------------------------------------------- */
.qsteps { display: none; }
.qdots { display: flex; gap: 0.45rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.qdots li { flex: 1 1 0; display: flex; align-items: center; gap: 0.55rem; min-width: 0; font-size: 0.84rem; font-weight: 600; color: var(--fg-3); padding: 0.5rem 0.65rem; border-radius: var(--r-sm); border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qdots li span { flex: 0 0 auto; width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--font-grotesk); font-size: 0.74rem; font-weight: 700; }
.qdots li.is-current { color: var(--fg); border-color: var(--line-2); background: var(--glass-light); }
.qdots li.is-current span { background: var(--tone-yellow); color: var(--ink-950); border-color: transparent; }
.qdots li.is-done { color: var(--fg-2); }
.qdots li.is-done span { background: var(--tone-green); color: var(--ink-950); border-color: transparent; }
.qprogress[hidden] { display: none; }
.qwrap--single .qnav { justify-content: flex-end; }
.fq__hint { font-size: 0.86rem; color: var(--fg-3); line-height: 1.55; margin-top: -0.15rem; }
.notice-line { font-size: 0.86rem; color: var(--fg-3); line-height: 1.7; max-width: 100ch; }
.notice-line b { color: var(--fg-2); font-weight: 700; }
.step__intro { font-size: 1rem; }
.step { scroll-margin-top: calc(var(--header-h) + 120px); }
.qform[hidden], .qside[hidden] { display: none; }
.step__body { gap: 1.4rem; }
.qnav .btn--lg { min-width: 180px; }

/* Tiles: big single-choice cards ---------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.7rem; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tile__body { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.1rem 2.6rem 1.1rem 1.15rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--glass-light); transition: background var(--d-fast), border-color var(--d-fast), transform var(--d-base) var(--ease-out); }
.tile__body b { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.tile__body small { font-size: 0.86rem; color: var(--fg-2); line-height: 1.5; }
.tile:hover .tile__body { border-color: var(--fg-2); transform: translateY(-2px); }
.tile__mark { position: absolute; top: 0.95rem; inset-inline-end: 0.95rem; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: all var(--d-fast); }
.tile:has(input:checked) .tile__body { background: var(--tone-yellow); border-color: transparent; color: var(--ink-950); }
.tile:has(input:checked) .tile__body small { color: rgba(8, 12, 22, 0.72); }
.tile:has(input:checked) .tile__mark { background: var(--ink-950); border-color: var(--ink-950); box-shadow: inset 0 0 0 4px var(--tone-yellow); }
.tile:has(input:focus-visible) .tile__body { outline: 2px solid var(--tone-yellow); outline-offset: 2px; }

/* Success + follow-up -------------------------------------------------------- */
.form-success__actions { display: flex; justify-content: center; margin-top: 1.3rem; }
.fuwrap { margin-top: 1.6rem; padding: 1.5rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-3); }
.fuwrap[hidden] { display: none; }
.fuwrap__head .display-m { margin-top: 0.6rem; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.fuwrap__head .lead { margin-top: 0.6rem; font-size: 1rem; }
.fuform { margin-top: 1.2rem; display: grid; gap: 0.55rem; }
details.fu { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.fu__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.1rem; font-weight: 700; }
.fu__sum::-webkit-details-marker { display: none; }
.fu__sum svg { width: 18px; height: 18px; margin-inline-start: auto; color: var(--fg-3); transition: transform var(--d-base); }
details[open] .fu__sum svg { transform: rotate(180deg); }
.fu__count { font-size: 0.78rem; font-weight: 600; color: var(--tone-green); }
.fu__body { padding: 0.9rem 1.1rem 1.2rem; display: grid; gap: 1.1rem; border-top: 1px solid var(--line); }
.fu__body .fq__head, .fu__body .fq__label { font-size: 0.95rem; }
.fuform select, .fuform input:not([type="radio"]):not([type="checkbox"]), .fuform textarea { width: 100%; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--fg); font: inherit; padding: 0.8rem 1rem; }
.fuform select:focus, .fuform input:focus, .fuform textarea:focus { outline: none; border-color: var(--tone-yellow); box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.2); }
.fuform select option { color: var(--ink-950); background: var(--parch-50); }
.step select option { color: var(--ink-950); background: var(--parch-50); }
.qnav--fu { margin-top: 1rem; padding-top: 1rem; }
.fu-done { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); }
.fu-done[hidden] { display: none; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero__motif { display: none; }
}
@media (max-width: 560px) {
  .qdots li { justify-content: center; gap: 0; font-size: 0; padding: 0.45rem; }
  .qdots li span { font-size: 0.74rem; }
  .qdots li.is-current { font-size: 0.82rem; gap: 0.5rem; flex: 2 1 0; }
  .tiles { grid-template-columns: 1fr; }
  .qnav { flex-direction: column-reverse; align-items: stretch; }
  .qnav .btn { width: 100%; }
  .qnav__count { order: 1; }
  .quick { padding: 1.1rem; }
}

/* The questionnaire page has its own buttons: no sticky start bar there */
.page-q .qbar { display: none !important; }
.page-q .wa-float { bottom: 24px; }

/* Step entrance: a class-driven transition instead of a keyframe animation, so a step
   can never be left half-transparent (seen on phones when the animation did not run). */
.step { animation: none !important; opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.step.is-enter { opacity: 0; transform: translateY(10px); }
.step[hidden] { display: none; }
