/* ============================================================
   Web Wizard — form.css (Get a Website and the Price Estimator)
   The live site's form markup and logic, restyled. Class names are the
   ones the form scripts already toggle, so behaviour is unchanged.
   ============================================================ */

.form-page{ position:relative; overflow-x:clip; padding:clamp(120px, 18vw, 170px) var(--gutter) var(--s-xl); min-height:100dvh; }
.form-page::before{
  content:""; position:absolute; left:50%; top:0; width:min(1100px, 150vw); height:900px; transform:translateX(-50%);
  background:radial-gradient(closest-side, var(--gold-soft), transparent 70%); pointer-events:none; z-index:-1; opacity:.8;
}
.wizard-wrap{ max-width:720px; margin-inline:auto; }
.wizard-intro{ text-align:center; margin-bottom:clamp(28px, 5vw, 44px); }
.wizard-intro .eyebrow{ justify-content:center; margin:0 0 var(--s-md); }   /* the eyebrow is a <p>: keep the rule below from taking its gap */
.wizard-intro .eyebrow::after{ content:""; width:28px; height:1px; background:currentColor; }   /* centred, so a line on both sides */
.wizard-intro h1{ max-width:14ch; margin-inline:auto; }
.wizard-intro p{ margin:18px auto 0; color:var(--muted); max-width:52ch; }
.wizard-card{
  position:relative; background:var(--panel); border:1px solid var(--hairline); border-radius:var(--r-md);
  padding:clamp(22px, 5vw, 44px); box-shadow:var(--shadow-lift);
}
#intro-panel p{ color:var(--text); margin-bottom:14px; }

/* utilities that replaced the old inline styles */
.is-hidden{ display:none; }
.btn--block{ width:100%; margin-top:12px; }
.align-start{ align-items:flex-start !important; }
.box--top{ margin-top:2px; }
.mb-10{ margin-bottom:10px; }
.mb-6{ margin-bottom:6px; }
.hint-tight{ margin-top:0 !important; margin-bottom:12px; }
.link-strong{ color:var(--glint); font-weight:700; text-decoration:underline; text-underline-offset:3px; }

/* ---------- step boxes ---------- */
.progress-track{ display:flex; gap:5px; margin-bottom:12px; }
.progress-seg{
  flex:1; min-width:20px; height:36px; display:flex; align-items:center; justify-content:center; padding:0;
  border-radius:10px; border:1px solid var(--hairline); background:var(--void);
  font:700 .75rem var(--font-body); color:var(--muted); cursor:pointer;
  transition:background-color var(--dur-mid) linear, border-color var(--dur-mid) linear, color var(--dur-mid) linear, transform var(--dur-fast) var(--ease-out);
}
.progress-seg.complete,.progress-seg.visited{ border-color:var(--hairline-strong); color:var(--glint); background:var(--glint-soft); }
.progress-seg:active{ transform:scale(.94); }
.progress-seg[aria-current="step"]{ background:var(--gold); border-color:var(--gold); color:var(--void); cursor:default; box-shadow:var(--shadow-glow); }
.progress-seg.skipped{ opacity:.35; text-decoration:line-through; }
@media (hover:hover){ .progress-seg:not([aria-current="step"]):hover{ border-color:var(--glint); transform:translateY(-2px); } }
.step-nav-hint{ font-size:.75rem; color:var(--muted); margin-bottom:18px; }
.progress-label{ font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--glint); margin-bottom:10px; }

/* ---------- steps ---------- */
.wizard-step{ display:none; }
.wizard-step.active{ display:block; }
@media (prefers-reduced-motion:no-preference){
  .wizard-step.active{ animation:step-in .55s var(--ease-out); }
  .success-card.show{ animation:step-in .7s var(--ease-out); }
}
@keyframes step-in{ from{ opacity:0; transform:translateX(18px); } }
.step-title{ font-family:var(--font-display); font-size:clamp(1.6rem, 3.4vw, 2.1rem); font-weight:420; letter-spacing:-.02em; line-height:1.1; color:var(--ink); margin-bottom:18px; }
.step-lead{ color:var(--muted); font-size:.9375rem; margin-bottom:18px; }
.field-group-label{ font-size:1.0625rem; font-weight:700; color:var(--ink); margin:16px 0 12px; }
.business-only-note{ font-size:.9375rem; color:var(--text); padding:16px 18px; border-radius:var(--r-sm); background:var(--glint-soft); border:1px solid var(--hairline); }
.step-important-note{ font-size:.875rem; color:var(--glint); padding:12px 16px; border-radius:var(--r-sm); background:var(--glint-soft); border:1px solid var(--hairline-strong); margin-bottom:12px; }
.mini-bullets li{ font-size:.875rem; color:var(--muted); margin-bottom:4px; list-style:disc; margin-left:18px; }

/* ---------- fields ---------- */
.field{ position:relative; margin-bottom:20px; }
.field > label,.field label:not(.checkbox-row){ display:block; font-size:.875rem; font-weight:600; color:var(--ink); margin-bottom:8px; }
.field .optional{ color:var(--muted); font-weight:500; }
.field input,.field select,.field textarea{
  width:100%; min-height:52px; padding:13px 16px; border-radius:var(--r-sm);
  border:1px solid var(--hairline-strong); background:var(--panel-raised); color:var(--ink); font-size:1rem;
  transition:border-color var(--dur-mid) linear, box-shadow var(--dur-mid) linear;
}
.field textarea{ resize:vertical; min-height:110px; line-height:1.6; }
#q-industry-other{ min-height:52px; }
.field input::placeholder,.field textarea::placeholder{ color:var(--muted); }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--glint); box-shadow:0 0 0 4px var(--glint-soft); }
.field input.invalid,.field select.invalid,.field textarea.invalid{ border-color:var(--alert); }
.field select{
  appearance:none; padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23FFD771' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center;
}
.field select option{ background:var(--panel); color:var(--ink); }
.field-error{ display:none; margin-left:8px; font-size:.75rem; font-weight:600; color:var(--alert); }
.field-error.show{ display:inline; }
.field-hint{ font-size:.8125rem; color:var(--muted); margin-top:8px; line-height:1.5; }
.word-counter{ font-size:.75rem; color:var(--muted); margin-top:6px; text-align:right; }
.word-counter.over-limit{ color:var(--alert); font-weight:700; }
.form-row{ display:grid; gap:0 18px; }
@media (min-width:640px){ .form-row{ grid-template-columns:1fr 1fr; } }
.hp-field{ position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ---------- choices (checkbox and radio rows) ---------- */
.checkbox-row{
  position:relative; display:flex !important; align-items:center; gap:14px; min-height:52px; padding:14px 16px; margin-bottom:10px;
  border-radius:var(--r-sm); border:1px solid var(--hairline); background:var(--void); cursor:pointer;
  transition:border-color var(--dur-mid) linear, background-color var(--dur-mid) linear, transform var(--dur-fast) var(--ease-out);
}
.checkbox-row:active{ transform:scale(.99); }
@media (hover:hover){ .checkbox-row:hover{ border-color:var(--hairline-strong); } }
.checkbox-row input{ position:absolute; opacity:0; width:0; height:0; }
.checkbox-row .box{
  width:22px; height:22px; flex:none; display:grid; place-items:center; border-radius:7px;
  border:1.5px solid var(--hairline-strong); background:var(--panel); color:var(--void);
  transition:background-color var(--dur-mid) linear, border-color var(--dur-mid) linear;
}
.checkbox-row .box.radio-box{ border-radius:var(--r-full); }
.checkbox-row .box svg{ width:14px; height:14px; stroke-width:3; opacity:0; transform:scale(.4); transition:opacity var(--dur-mid) linear, transform var(--dur-mid) var(--ease-out); }
.checkbox-row input:checked + .box{ background:var(--gold); border-color:var(--gold); }
.checkbox-row input:checked + .box svg{ opacity:1; transform:none; }
.checkbox-row:has(input:checked){ border-color:var(--glint); background:var(--panel-raised); }
.checkbox-row input:focus-visible + .box{ outline:2px solid var(--glint); outline-offset:3px; }
.checkbox-row span{ font-size:.9375rem; color:var(--text); }

/* ---------- small "i" with a dot-point explanation ---------- */
.info-icon{
  position:relative; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle;
  width:22px; height:22px; margin-left:6px; border-radius:50%; background:var(--glint-soft); color:var(--glint); cursor:pointer;
}
.info-icon svg{ width:13px; height:13px; pointer-events:none; }
.info-icon:hover,.info-icon.open{ background:var(--hairline-strong); }
.info-popover{
  position:absolute; bottom:calc(100% + 10px); left:50%; z-index:60; width:min(280px, 80vw); padding:14px 16px; text-align:left;
  border-radius:var(--r-sm); border:1px solid var(--hairline); background:var(--panel-raised); box-shadow:var(--shadow-lift);
  opacity:0; pointer-events:none; transform:translate(calc(-50% + var(--shift, 0px)), 6px) scale(.96);
  transition:opacity var(--dur-mid) linear, transform var(--dur-mid) var(--ease-out);
}
.info-popover::after{ content:""; position:absolute; top:100%; left:50%; transform:translateX(calc(-50% - var(--shift, 0px))); border:6px solid transparent; border-top-color:var(--panel-raised); }
.info-icon:hover .info-popover,.info-icon.open .info-popover{ opacity:1; pointer-events:auto; transform:translate(calc(-50% + var(--shift, 0px)), 0) scale(1); }
/* opened below the icon when there's no room above (placeInfo in the form scripts) */
.info-popover.below{ bottom:auto; top:calc(100% + 10px); transform:translate(calc(-50% + var(--shift, 0px)), -6px) scale(.96); }
.info-popover.below::after{ top:auto; bottom:100%; border-top-color:transparent; border-bottom-color:var(--panel-raised); }
.info-popover ul{ list-style:disc; margin-left:16px; }
.info-popover li,.info-popover p{ font-size:.8125rem; color:var(--muted); line-height:1.5; font-weight:400; }
.info-popover li + li{ margin-top:6px; }

/* ---------- uploads ---------- */
.file-drop{
  display:block; padding:26px 16px; text-align:center; cursor:pointer; color:var(--muted); font-size:.9rem;
  border:1.5px dashed var(--hairline-strong); border-radius:var(--r-sm);
  transition:border-color var(--dur-mid) linear, background-color var(--dur-mid) linear, color var(--dur-mid) linear;
}
.file-drop svg{ display:block; margin:0 auto 10px; color:var(--glint); }
.file-drop:hover,.file-drop:focus-visible,.file-drop.dragover{ border-color:var(--glint); background:var(--glint-soft); color:var(--ink); outline:none; }
.file-count{ font-size:.75rem; font-weight:600; color:var(--muted); margin-top:14px; }
.file-count:empty{ display:none; }
.file-list{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-top:8px; }
.file-list:empty{ display:none; }
@media (min-width:560px){ .file-list{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
.file-tile{ position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden; border-radius:var(--r-sm); border:1px solid var(--hairline); background:var(--panel-raised); }
.file-thumb{ position:relative; aspect-ratio:4 / 3; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--void); }
.file-thumb img{ width:100%; height:100%; object-fit:cover; transition:opacity var(--dur-mid) linear; }
.file-thumb.is-pdf{ flex-direction:column; gap:6px; color:var(--glint); }
.file-thumb.is-pdf span{ font-size:.66rem; font-weight:700; letter-spacing:.16em; }
.file-tile.is-cleaning .file-thumb img{ opacity:.45; }
.file-tile.is-cleaning .file-thumb::after{ content:""; position:absolute; width:26px; height:26px; border-radius:50%; border:2.5px solid var(--hairline-strong); border-top-color:var(--glint); animation:file-spin .8s linear infinite; }
@keyframes file-spin{ to{ transform:rotate(360deg); } }
.file-meta{ display:flex; flex-direction:column; gap:3px; padding:9px 11px 11px; min-width:0; }
.file-name{ font-size:.8rem; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-info{ font-size:.7rem; color:var(--muted); line-height:1.4; }
.file-ok{ display:flex; align-items:flex-start; gap:4px; margin-top:3px; color:var(--glint); }
.file-ok svg{ flex:none; margin-top:2px; }
.file-remove{
  position:absolute; top:6px; right:6px; width:32px; height:32px; display:grid; place-items:center; border-radius:50%;
  background:var(--shade); color:var(--ink); border:1px solid var(--hairline); cursor:pointer;
}
.file-remove::before{ content:""; position:absolute; inset:-6px; }
.file-remove:hover,.file-remove:focus-visible{ background:var(--alert); color:var(--void); }
@media (prefers-reduced-motion:no-preference){ .file-tile.is-new{ animation:step-in .35s var(--ease-out); } }

/* ---------- the "current website" popup ---------- */
.url-capture-row{ display:flex; gap:10px; align-items:center; }
.url-capture-row input{ flex:1; }
.modal-overlay{
  position:fixed; inset:0; z-index:2050; display:flex; align-items:center; justify-content:center; padding:20px;
  background:var(--shade); opacity:0; visibility:hidden;
  transition:opacity var(--dur-mid) linear, visibility 0s linear var(--dur-mid);
}
.modal-overlay.show{ opacity:1; visibility:visible; transition-delay:0s; }
.modal-box{
  width:100%; max-width:440px; padding:32px; border-radius:var(--r-md); border:1px solid var(--hairline);
  background:var(--panel); box-shadow:var(--shadow-lift); transform:translateY(12px); transition:transform var(--dur-slow) var(--ease-out);
}
.modal-overlay.show .modal-box{ transform:none; }
.modal-box h3{ font-size:1.375rem; font-weight:500; margin-bottom:6px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:12px; margin-top:22px; }

/* ---------- back / next ---------- */
.wizard-buttons{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:32px; }
.btn-back{ min-height:48px; padding:0 8px; font-weight:600; font-size:.9375rem; color:var(--muted); transition:color var(--dur-fast) linear; }
.btn-back:hover{ color:var(--ink); }
.btn-back.hidden{ visibility:hidden; }
.btn-next{
  display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:0 28px; border-radius:var(--r-full);
  background:var(--gold); color:var(--void); font-weight:700; font-size:.9375rem; box-shadow:var(--shadow-glow);
  transition:transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.btn-next svg{ width:18px; height:18px; transition:transform var(--dur-mid) var(--ease-out); }
.btn-next:active{ transform:translateY(1px) scale(.98); }
.btn-next[disabled]{ opacity:.6; cursor:progress; }
@media (hover:hover){ .btn-next:hover{ transform:translateY(-2px); } .btn-next:hover svg{ transform:translateX(4px); } }

/* ---------- thank you ---------- */
.success-card{ display:none; text-align:center; padding:12px 4px; }
.success-card.show{ display:block; }
.success-check{ width:76px; height:76px; margin:0 auto 24px; display:grid; place-items:center; border-radius:50%; background:var(--glint-soft); color:var(--glint); box-shadow:0 0 0 1px var(--hairline-strong), 0 0 60px -6px rgba(198,129,39,.6); }
.success-check svg{ width:34px; height:34px; stroke-width:2.4; }
.success-card h2{ font-size:clamp(1.6rem, 3.6vw, 2.2rem); font-weight:420; margin-bottom:12px; }
.success-card p{ color:var(--muted); max-width:46ch; margin-inline:auto; }
/* what happens next: four stops on one line, the first already lit */
.success-track{ margin-top:32px; padding-top:26px; border-top:1px solid var(--hairline); }
.track{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, 1fr); }
.track-step{ position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 4px; text-align:center; }
/* the line from each stop to the next one */
.track-step:not(:last-child)::after{
  content:""; position:absolute; top:15px; left:calc(50% + 20px); right:calc(-50% + 20px); height:2px; border-radius:2px;
  background:var(--hairline-strong);
}
.track-step.is-done::after{ background:linear-gradient(90deg, var(--glint), var(--hairline-strong)); }
.track-dot{
  position:relative; z-index:1; width:32px; height:32px; display:grid; place-items:center; border-radius:50%;
  border:2px solid var(--hairline-strong); background:var(--panel-raised); color:var(--void);
}
.track-dot svg{ width:16px; height:16px; }
/* the ring that ripples out of a dot, and the spark that runs along the line (form.css motion block) */
.track-dot::before{ content:""; position:absolute; inset:-2px; border-radius:50%; border:2px solid var(--glint); opacity:0; pointer-events:none; }
.track-wrap{ position:relative; }
.track-run{ display:none; position:absolute; top:15px; left:37.5%; width:50%; height:2px; pointer-events:none; }
.track-run i{
  position:absolute; inset:-9px 0; opacity:0; transform:translateX(-100%);
  background:radial-gradient(circle at calc(100% - 10px) 50%, #FFF6D6 0 2px, var(--glint) 3px, rgba(255,215,113,.35) 6px, transparent 11px);
}
.track-step:not(.is-done) .track-dot{ color:var(--muted); }
.track-step:not(.is-done) .track-dot svg{ width:14px; height:14px; }
.track-step.is-done .track-dot{ border-color:var(--glint); background:var(--glint); box-shadow:0 0 0 5px var(--glint-soft), 0 0 26px -4px rgba(255,215,113,.7); }
.track-step.is-next .track-dot{ border-color:var(--glint); color:var(--glint); }
.track-name{ font-size:.8125rem; font-weight:600; line-height:1.3; color:var(--muted); }
.track-step.is-done .track-name{ color:var(--glint); }
.track-step.is-next .track-name{ color:var(--ink); }
@media (min-width:560px){ .track-name{ font-size:.875rem; } }

.success-next{ margin-top:32px; padding-top:26px; border-top:1px solid var(--hairline); }
.success-next-label{ font-size:.75rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--glint); margin-bottom:14px; }
.success-actions{ display:grid; gap:10px; text-align:left; }
@media (min-width:560px){ .success-actions{ grid-template-columns:1fr 1fr; } }
.success-action{
  display:flex; align-items:center; gap:14px; padding:16px; border-radius:var(--r-sm); border:1px solid var(--hairline); background:var(--void);
  transition:border-color var(--dur-mid) linear, transform var(--dur-fast) var(--ease-out);
}
.success-action:hover{ border-color:var(--glint); }
.success-action:active{ transform:scale(.98); }
.success-action b{ display:block; color:var(--ink); font-size:.9375rem; }
.success-action small{ display:block; color:var(--muted); font-size:.8125rem; }
.success-action-icon{ width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--glint-soft); color:var(--glint); }
.success-action-icon svg{ width:20px; height:20px; fill:currentColor; }
.success-action-icon .icon{ fill:none; }

/* ---------- the estimate ---------- */
.estimate-result{ text-align:center; padding:8px; }
.estimate-figure{
  margin:18px 0 12px; font-family:var(--font-display); font-weight:300; font-size:clamp(2.4rem, 7vw, 3.6rem); line-height:1;
  letter-spacing:-.03em; color:var(--glint); font-variation-settings:'opsz' 144; font-variant-numeric:tabular-nums;
}
.estimate-note{ font-size:.9rem; color:var(--muted); max-width:44ch; margin:0 auto 26px; }
.estimate-actions{ display:flex; flex-direction:column; gap:12px; max-width:360px; margin-inline:auto; }
.estimate-actions .btn{ width:100%; }

/* ---------- "Fully booked" (availability.js, when bookings are closed in /operator) ---------- */
.booked{ display:grid; gap:14px; justify-items:start; }
.booked-icon{ width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:var(--glint-soft); color:var(--glint); }
.booked-icon svg{ width:26px; height:26px; }
.booked p{ color:var(--text); }
.booked-contact{ font-size:.9375rem; }
.booked .btn-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }

/* ============================================================
   Exaggerated feedback for the two step-by-step forms (22 Nov 2026)
   Price Estimator and Get a Website. Every answer, step and mistake
   gets a reaction pushed a little past real, so it lands. Quick (most
   under 300ms) and all of it off with reduced motion.
   ============================================================ */
@media (prefers-reduced-motion:no-preference){

  /* ---------- picking an answer: squash, pop, ripple, tick draws itself ---------- */
  .checkbox-row{ transition:border-color 200ms linear, background-color 200ms linear, transform 220ms var(--ease-spring, ease); }
  .checkbox-row:active{ transform:scale(.97, .94); transition-duration:80ms; }
  .checkbox-row:has(input:checked){ animation:row-pick 380ms var(--ease-spring, ease); }
  .checkbox-row input:checked + .box{ animation:box-pop 420ms var(--ease-spring, ease); }
  .checkbox-row input:checked + .box::after{
    content:""; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
    animation:box-ripple 520ms var(--ease-out) forwards;
  }
  .checkbox-row .box{ position:relative; }
  .checkbox-row input:checked + .box svg{ stroke-dasharray:24; animation:tick-draw 320ms 90ms var(--ease-out) both; }
  @keyframes row-pick{ 0%{ transform:scale(.97, .94); } 45%{ transform:scale(1.025, 1.04); } 100%{ transform:none; } }
  @keyframes box-pop{ 0%{ transform:scale(.55); } 55%{ transform:scale(1.35); } 80%{ transform:scale(.92); } 100%{ transform:none; } }
  @keyframes box-ripple{ 0%{ box-shadow:0 0 0 0 rgba(255,215,113,.7); } 100%{ box-shadow:0 0 0 14px rgba(255,215,113,0); } }
  @keyframes tick-draw{ from{ stroke-dashoffset:24; opacity:1; transform:none; } to{ stroke-dashoffset:0; opacity:1; transform:none; } }

  /* ---------- the step tabs ---------- */
  .progress-seg{ transition:background-color 200ms linear, border-color 200ms linear, color 200ms linear, transform 220ms var(--ease-spring, ease), box-shadow 220ms var(--ease-out); }
  .progress-seg:active{ transform:scale(1.1, .82); transition-duration:80ms; }
  /* the step you land on jumps up and glows; a finished step gives a little nod */
  .progress-seg[aria-current="step"]{ animation:seg-land 460ms var(--ease-spring, ease); }
  .progress-seg.complete:not([aria-current="step"]),.progress-seg.visited:not([aria-current="step"]){ animation:seg-done 360ms var(--ease-spring, ease); }
  /* a dropdown answer picked from the list gets the same pop as a ticked option */
  .cselect-btn.ff-picked{ animation:row-pick 380ms var(--ease-spring, ease); }
  @keyframes seg-land{
    0%{ transform:scale(.8); box-shadow:0 0 0 0 rgba(255,215,113,.8); }
    50%{ transform:scale(1.22) translateY(-3px); }
    75%{ transform:scale(.96); }
    100%{ transform:none; box-shadow:var(--shadow-glow), 0 0 0 10px rgba(255,215,113,0); }
  }
  @keyframes seg-done{ 0%{ transform:none; } 40%{ transform:scale(1.14, .9); } 100%{ transform:none; } }
  /* the gap a skipped step leaves */
  .progress-seg.skipped{ transition:opacity 300ms var(--ease-out); }

  /* ---------- moving between steps: comes in from the side you're heading,
     a touch past the mark, then settles (follow through) ---------- */
  .wizard-step.active{ animation:step-fwd 360ms var(--ease-out); }
  .wizard-step.active[data-dir="back"]{ animation:step-back 360ms var(--ease-out); }
  /* "backwards", not "both": a finished animation that kept holding its end
     state would keep each field in its own layer, and the fields below an
     open dropdown would paint over its list and catch the clicks */
  .wizard-step.active > *{ animation:step-child 420ms var(--ease-out) backwards; }
  .wizard-step.active > :nth-child(2){ animation-delay:40ms; } .wizard-step.active > :nth-child(3){ animation-delay:80ms; }
  .wizard-step.active > :nth-child(4){ animation-delay:120ms; } .wizard-step.active > :nth-child(n+5){ animation-delay:150ms; }
  @keyframes step-fwd{ 0%{ opacity:0; transform:translateX(36px); } 65%{ opacity:1; transform:translateX(-4px); } 100%{ opacity:1; transform:none; } }
  @keyframes step-back{ 0%{ opacity:0; transform:translateX(-36px); } 65%{ opacity:1; transform:translateX(4px); } 100%{ opacity:1; transform:none; } }
  @keyframes step-child{ from{ opacity:0; transform:translateY(10px); } }

  /* ---------- Next and Back ---------- */
  .btn-next{ transition:transform 220ms var(--ease-spring, ease), box-shadow 220ms var(--ease-out); }
  .btn-next:active:not([disabled]){ transform:translateY(1px) scale(1.06, .88); transition-duration:80ms; }
  @media (hover:hover){ .btn-next:hover svg{ animation:wind-up 280ms var(--ease-snap, ease) forwards; transform:none; } }
  .btn-back{ transition:color 150ms linear, transform 220ms var(--ease-spring, ease); }
  .btn-back:active{ transform:translateX(-4px) scale(.96); transition-duration:80ms; }

  /* ---------- a mistake says "no": a quick head shake, and the message pops ---------- */
  .ff-shake{ animation:ff-shake 420ms var(--ease-out); }
  @keyframes ff-shake{
    0%, 100%{ transform:none; } 15%{ transform:translateX(-9px) rotate(-1deg); } 35%{ transform:translateX(8px) rotate(.8deg); }
    55%{ transform:translateX(-5px); } 75%{ transform:translateX(3px); }
  }
  .field-error.show{ display:inline-block; animation:err-pop 300ms var(--ease-spring, ease); }
  @keyframes err-pop{ 0%{ opacity:0; transform:translateY(4px) scale(.8); } 100%{ opacity:1; transform:none; } }
  .field input.invalid,.field select.invalid,.field textarea.invalid,.cselect.invalid .cselect-btn{ animation:field-flash 600ms var(--ease-out); }
  @keyframes field-flash{ 0%{ box-shadow:0 0 0 0 rgba(255,107,107,.55); } 100%{ box-shadow:0 0 0 10px rgba(255,107,107,0); } }

  /* ---------- typing: the field you're in lifts a touch ---------- */
  .field input:focus,.field textarea:focus{ transition:border-color 150ms linear, box-shadow 200ms var(--ease-out); }

  /* ---------- the payoff: the estimate and the thank-you land big ---------- */
  .success-card.show{ animation:card-land 520ms var(--ease-spring, ease); }
  @keyframes card-land{ 0%{ opacity:0; transform:translateY(28px) scale(.94); } 60%{ opacity:1; transform:translateY(-4px) scale(1.01); } 100%{ opacity:1; transform:none; } }
  .success-card.show .success-check{ animation:check-pop 640ms 120ms var(--ease-spring, ease) both; }
  .success-card.show .success-check svg{ stroke-dasharray:30; animation:tick-draw-big 420ms 420ms var(--ease-out) both; }
  @keyframes check-pop{ 0%{ transform:scale(0) rotate(-30deg); } 60%{ transform:scale(1.25) rotate(6deg); } 80%{ transform:scale(.94); } 100%{ transform:none; } }
  @keyframes tick-draw-big{ from{ stroke-dashoffset:30; } to{ stroke-dashoffset:0; } }
  .estimate-figure.is-landed{ animation:figure-land 520ms var(--ease-spring, ease); }
  @keyframes figure-land{
    0%{ transform:none; text-shadow:none; } 35%{ transform:scale(1.14, .9); }
    60%{ transform:scale(.97, 1.04); text-shadow:0 0 28px rgba(255,215,113,.65); } 100%{ transform:none; text-shadow:none; }
  }
  .success-card.show .estimate-actions > *,.success-card.show .success-actions > *{ animation:step-child 380ms var(--ease-out) both; }
  .success-card.show .estimate-actions > :nth-child(2),.success-card.show .success-actions > :nth-child(2){ animation-delay:70ms; }
  .success-card.show .estimate-actions > :nth-child(3),.success-card.show .success-actions > :nth-child(3){ animation-delay:140ms; }
  .success-card.show .success-actions > :nth-child(4){ animation-delay:210ms; }
  /* the track tells the story in order:
     1. the four dots pop in one after another, each label rising in after its dot
     2. "Submit a quote" lands with a gold ripple and the line to "Contact" draws out
     3. "Contact" lights up as the line reaches it, then keeps sending out a soft ripple
     4. a spark runs on along the rest of the line, and "Planning" and "Demo ready"
        flash as it passes them: what's coming. Three runs, then everything rests.
     Only transform and opacity move, except the two short flashes. */
  .success-card.show .track-dot{ animation:track-dot-in 520ms var(--ease-spring, ease) backwards; }
  .success-card.show .track-name{ animation:step-child 420ms var(--ease-out) backwards; }
  .success-card.show .track-step:nth-child(1) .track-dot{ animation-delay:450ms; }
  .success-card.show .track-step:nth-child(2) .track-dot{ animation:track-dot-in 520ms var(--ease-spring, ease) 570ms backwards, track-arrive 380ms ease-out 1.55s backwards; }
  .success-card.show .track-step:nth-child(3) .track-dot{ animation:track-dot-in 520ms var(--ease-spring, ease) 690ms backwards, track-flash-mid 3.6s ease-in-out 2.3s 3; }
  .success-card.show .track-step:nth-child(4) .track-dot{ animation:track-dot-in 520ms var(--ease-spring, ease) 810ms backwards, track-flash-end 3.6s ease-in-out 2.3s 3; }
  .success-card.show .track-step:nth-child(1) .track-name{ animation-delay:560ms; }
  .success-card.show .track-step:nth-child(2) .track-name{ animation:step-child 420ms var(--ease-out) 680ms backwards, track-name-arrive 380ms ease-out 1.55s backwards; }
  .success-card.show .track-step:nth-child(3) .track-name{ animation-delay:800ms; }
  .success-card.show .track-step:nth-child(4) .track-name{ animation-delay:920ms; }
  .success-card.show .track-step.is-done .track-dot::before{ animation:track-ripple 900ms ease-out 750ms backwards; }
  .success-card.show .track-step.is-done::after{ transform-origin:left; animation:track-draw 650ms var(--ease-out) 950ms backwards; }
  .success-card.show .track-step.is-next .track-dot::before{ animation:track-ripple-loop 2.4s ease-out 1.65s 4 backwards; }
  .success-card.show .track-run{ display:block; }
  .success-card.show .track-run i{ animation:track-run 3.6s cubic-bezier(.45,0,.25,1) 2.3s 3 backwards; }
  @keyframes track-dot-in{ 0%{ opacity:0; transform:scale(.2); } 60%{ opacity:1; transform:scale(1.18); } 100%{ opacity:1; transform:none; } }
  @keyframes track-draw{ from{ transform:scaleX(0); } }
  @keyframes track-ripple{ 0%{ opacity:.85; transform:none; } 100%{ opacity:0; transform:scale(2.1); } }
  @keyframes track-ripple-loop{ 0%{ opacity:.7; transform:none; } 45%, 100%{ opacity:0; transform:scale(2); } }
  @keyframes track-arrive{ from{ border-color:var(--hairline-strong); color:var(--muted); transform:scale(.9); } }
  @keyframes track-name-arrive{ from{ color:var(--muted); } }
  @keyframes track-run{
    0%{ opacity:0; transform:translateX(-100%); }
    8%{ opacity:1; }
    56%{ opacity:1; }
    62%, 100%{ opacity:0; transform:none; }
  }
  @keyframes track-flash-mid{
    0%, 20%, 44%, 100%{ border-color:var(--hairline-strong); color:var(--muted); box-shadow:none; }
    31%{ border-color:var(--glint); color:var(--glint); box-shadow:0 0 16px -2px rgba(255,215,113,.6); }
  }
  @keyframes track-flash-end{
    0%, 50%, 78%, 100%{ border-color:var(--hairline-strong); color:var(--muted); box-shadow:none; }
    61%{ border-color:var(--glint); color:var(--glint); box-shadow:0 0 16px -2px rgba(255,215,113,.6); }
  }

  /* ---------- dropping files ---------- */
  .file-drop{ transition:border-color 200ms linear, background-color 200ms linear, transform 220ms var(--ease-spring, ease); }
  .file-drop.dragover{ transform:scale(1.025); }
  .file-tile.is-new{ animation:tile-in 420ms var(--ease-spring, ease); }
  @keyframes tile-in{ 0%{ opacity:0; transform:scale(.7) translateY(10px); } 70%{ opacity:1; transform:scale(1.06); } 100%{ opacity:1; transform:none; } }
}
.estimate-host{ margin-top:-14px; }
