/* bizmaxPRO onboarding — design tokens sampled from brand/ assets:
 * red family #DA322F..#EB443B (core #E63C36), ink navy #1B2335, ground #FCF9F9 warm.
 * Motion: transform+opacity only, spring easings, reduced-motion respected. */

:root{
  --red:        #E63C36;
  --red-deep:   #C52D28;
  --red-bright: #EB443B;
  --red-soft:   rgba(230, 60, 54, .10);
  --red-tint:   rgba(230, 60, 54, .05);
  --ink:        #1B2335;
  --ink-soft:   #45506B;
  --ink-mute:   #7A8299;
  --ground:     #FBF7F4;
  --card:       #FFFFFF;
  --line:       #ECE4DE;
  --line-soft:  #F3EDE8;
  --ok:         #178A50;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(230,60,54,.05), 0 10px 32px -8px rgba(27,35,53,.10), 0 24px 60px -20px rgba(230,60,54,.12);
  --shadow-btn:  0 2px 6px rgba(197,45,40,.28), 0 8px 20px -6px rgba(230,60,54,.35);
  --shadow-focus: 0 0 0 3px rgba(230,60,54,.28);

  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-ui:     cubic-bezier(.4, 0, .2, 1);
  --dur-ui: 220ms;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(230,60,54,.07), transparent 62%),
    radial-gradient(900px 420px at -12% 12%, rgba(27,35,53,.05), transparent 58%),
    var(--ground);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img{ max-width: 100%; height: auto; }
a{ color: var(--red-deep); text-underline-offset: 2px; }

:focus-visible{
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 6px;
}

/* ── Header / footer ── */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand{ display: inline-flex; align-items: center; }
.brand-logo{ height: 30px; width: auto; display: block; }
.header-hint{
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.site-footer{
  margin-top: auto;
  padding: 28px 16px 34px;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-mute);
}

/* ── Shell + progress ── */
.shell{
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px) 16px 24px;
}
.progress-wrap{ margin: 0 4px 14px; }
.progress-meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.progress-step{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .86rem;
  color: var(--ink);
}
.progress-momentum{ font-size: .82rem; color: var(--ink-mute); }
.progress-track{
  height: 8px;
  border-radius: var(--radius-pill);
  background: #F0E6DF;
  overflow: hidden;
}
.progress-fill{
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  transition: width 420ms var(--ease-spring);
}
.progress-slim{ height: 6px; }
.progress-fill.is-complete{ background: linear-gradient(90deg, #128047, #1DA05F); }

/* ── Cards + step transitions ── */
.card{
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 5vw, 44px);
}
.step{ display: none; }
.step.is-active{ display: block; animation: stepIn 380ms var(--ease-spring) both; }
[data-dir="back"] .step.is-active{ animation-name: stepInBack; }
#stepIntro.is-active, #stepDone.is-active{ animation-name: stepIn; }
@keyframes stepIn{
  from{ opacity: 0; transform: translateX(26px); }
  to{ opacity: 1; transform: none; }
}
@keyframes stepInBack{
  from{ opacity: 0; transform: translateX(-26px); }
  to{ opacity: 1; transform: none; }
}

/* ── Intro ── */
#stepIntro{ text-align: center; }
.intro-badge{ margin-bottom: 6px; }
.intro-badge img{
  width: 64px; height: 64px;
  filter: drop-shadow(0 6px 16px rgba(230,60,54,.30));
}
.intro-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 8px 0 10px;
}
.intro-sub{
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  max-width: 46ch;
  margin: 0 auto 22px;
}
.intro-points{
  list-style: none;
  margin: 0 auto 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.intro-points li{ width: min(100%, 320px); }
#startBtn{ display: block; margin: 0 auto; }
.intro-points li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.pt-ico{ width: 20px; height: 20px; color: var(--red); flex: none; }
.intro-footnote{
  margin: 22px 0 0;
  font-size: .85rem;
  color: var(--ink-mute);
}

.proof{ margin-top: 30px; }
.proof-caption{
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.proof-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.proof-strip img{
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px -4px rgba(27,35,53,.14);
  transition: transform var(--dur-ui) var(--ease-spring);
}
@media (hover: hover){
  .proof-strip img:hover{ transform: translateY(-3px) scale(1.02); }
}
@media (max-width: 560px){
  .proof-strip{ grid-template-columns: repeat(2, 1fr); }
}

/* ── Steps ── */
.step-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-deep);
  margin-bottom: 14px;
}
.step-chip svg{ width: 24px; height: 24px; }
.step-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.step-sub{ color: var(--ink-soft); margin: 0 0 22px; max-width: 56ch; }

/* ── Fields ── */
.field{ margin-bottom: 18px; }
.field:last-child{ margin-bottom: 0; }
.field-gap-top{ margin-top: 22px; }
.field label{
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 7px;
}
.req{ color: var(--red); }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea{
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui);
}
textarea{ resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder{ color: #A7ADBE; }
input:focus-visible, textarea:focus-visible{
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
  border-radius: var(--radius-md);
}
input.is-invalid, textarea.is-invalid{ border-color: var(--red-deep); background: #FFF9F8; }
.field-err{
  margin: 7px 0 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--red-deep);
}
.field-hint{
  margin: 7px 0 0;
  font-size: .83rem;
  color: var(--ink-mute);
}
.field-label{
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 10px;
}
.choice-compact .choice-body{ padding: 13px 16px; }
.choice-compact .choice-title{ font-size: .95rem; }
.turnstile-box{ margin-top: 20px; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

/* ── Choice cards ── */
.choice-group{ display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 560px){ .choice-group{ grid-template-columns: 1fr 1fr; } }
.choice{ position: relative; display: block; cursor: pointer; }
.choice input{
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice-body{
  position: relative;
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-height: 48px;
  transition: border-color var(--dur-ui) var(--ease-ui), background var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-spring);
}
@media (hover: hover){
  .choice:hover .choice-body{ border-color: #D9CFC8; transform: translateY(-1px); }
}
.choice input:checked + .choice-body{
  border-color: var(--red);
  background: var(--red-tint);
  box-shadow: inset 0 0 0 1px var(--red);
}
.choice input:focus-visible + .choice-body{ box-shadow: var(--shadow-focus); }
.choice-title{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding-right: 26px;
}
.choice-sub{ display: block; font-size: .85rem; color: var(--ink-mute); margin-top: 2px; }
.choice-body::after{
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color var(--dur-ui) var(--ease-ui), background var(--dur-ui) var(--ease-ui);
}
.choice input:checked + .choice-body::after{
  border-color: var(--red);
  background:
    radial-gradient(circle at center, #fff 0 26%, transparent 30%),
    var(--red);
}

/* ── Dropzone + photos ── */
.dropzone{
  border: 2px dashed #DACFC7;
  border-radius: 16px;
  background: #FFFDFC;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-ui), background var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-spring);
}
@media (hover: hover){
  .dropzone:hover{ border-color: var(--red); background: #FFFAF9; }
}
.dropzone.is-drag{
  border-color: var(--red);
  background: var(--red-tint);
  transform: scale(1.01);
}
.dz-inner{ display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dz-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-deep);
  margin-bottom: 6px;
}
.dz-badge svg{ width: 24px; height: 24px; }
.dz-title{ font-family: var(--font-display); font-weight: 700; }
.dz-sub{ font-size: .85rem; color: var(--ink-mute); }

.photo-grid{
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.photo-item{
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line-soft);
  animation: thumbIn 300ms var(--ease-spring) both;
}
@keyframes thumbIn{
  from{ opacity: 0; transform: scale(.9); }
  to{ opacity: 1; transform: none; }
}
.photo-item img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove{
  position: absolute;
  top: 5px; right: 5px;
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(27,35,53,.72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.photo-badge{
  position: absolute;
  left: 5px; bottom: 7px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--ok);
  color: #fff;
}
.photo-item.is-error .photo-badge{ background: var(--red-deep); }
.photo-state{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(27,35,53,.18);
}
.photo-state-fill{
  height: 100%;
  width: 0;
  background: var(--red-bright);
  transition: width 200ms linear;
}
.photo-item.is-done .photo-state-fill{ background: var(--ok); }

/* ── Buttons + nav ── */
.btn{
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 26px;
  transition: transform var(--dur-ui) var(--ease-spring), box-shadow var(--dur-ui) var(--ease-ui), background var(--dur-ui) var(--ease-ui);
}
.btn:disabled{ opacity: .6; cursor: default; }
.btn-primary{
  color: #fff;
  background: linear-gradient(180deg, var(--red-bright), #D93430);
  box-shadow: var(--shadow-btn);
}
@media (hover: hover){
  .btn-primary:hover:not(:disabled){ transform: translateY(-1px); box-shadow: 0 4px 10px rgba(197,45,40,.3), 0 12px 26px -6px rgba(230,60,54,.42); }
}
.btn-primary:active:not(:disabled){ transform: translateY(0) scale(.99); }
.btn-lg{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 34px;
}
.btn-ghost{
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
@media (hover: hover){
  .btn-ghost:hover{ border-color: #D9CFC8; color: var(--ink); }
}
.wizard-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0 4px;
}
.wizard-nav .btn-primary, .wizard-nav .btn-lg{ margin-left: auto; }

/* ── Submit error ── */
.submit-error{
  margin-top: 16px;
  border: 1.5px solid rgba(197,45,40,.4);
  background: #FFF6F5;
  border-radius: 14px;
  padding: 18px 20px;
}
.submit-error strong{ color: var(--red-deep); }
.submit-error p{ margin: 6px 0 12px; color: var(--ink-soft); font-size: .93rem; }

/* ── Success ── */
#stepDone{ text-align: center; }
.done-check{
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  color: var(--ok);
  position: relative;
}
.done-check::before{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,138,80,.16), transparent 70%);
  animation: haloPulse 900ms var(--ease-spring) both;
}
@keyframes haloPulse{
  0%{ opacity: 0; transform: scale(.6); }
  55%{ opacity: 1; transform: scale(1.12); }
  100%{ opacity: 1; transform: scale(1); }
}
.dc-ring{
  stroke-dasharray: 202;
  stroke-dashoffset: 202;
  animation: dcDraw 600ms var(--ease-ui) 80ms forwards;
}
.dc-tick{
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: dcDraw 350ms var(--ease-ui) 560ms forwards;
}
@keyframes dcDraw{ to{ stroke-dashoffset: 0; } }
.done-title{ font-size: clamp(1.6rem, 4.6vw, 2rem); }
#stepDone .step-sub{ margin-left: auto; margin-right: auto; }

.timeline{
  list-style: none;
  margin: 26px auto 4px;
  padding: 0;
  max-width: 380px;
  text-align: left;
}
.tl-item{
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.tl-item:last-child{ padding-bottom: 0; }
.tl-item:not(:last-child)::before{
  content: "";
  position: absolute;
  left: 15px; top: 32px; bottom: 2px;
  width: 2px;
  background: var(--line);
}
.tl-dot{
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
}
.tl-body{ display: block; padding-top: 3px; }
.tl-body strong{ display: block; font-family: var(--font-display); font-weight: 700; }
.tl-body span{ display: block; font-size: .87rem; color: var(--ink-mute); }

.upload-status{ margin: 24px auto 0; max-width: 420px; }
.upload-line{ font-weight: 600; font-size: .95rem; margin: 0 0 8px; }
.upload-retry{ margin-top: 14px; }
.upload-retry p{ font-size: .88rem; color: var(--ink-soft); margin: 0 0 8px; }

/* ── Motion safety ── */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
