/* ============================================================
   Lead form — the centerpiece. Multi-step, validated, friendly.
   ============================================================ */
.lead { display: grid; grid-template-columns: 360px 1fr; min-height: 640px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ---- left rail ---- */
.lead__rail { position: relative; background: var(--ink-700); color: #fff; padding: 40px 34px; overflow: hidden; }
.lead__rail-glow { position: absolute; right: -30%; bottom: -20%; width: 90%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,112,123,.55), transparent 65%); }
.lead__rail h3 { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -.02em; margin: 22px 0 10px; line-height: 1.15; }
.lead__rail p { position: relative; color: var(--fg-on-dark-2); font-size: 15px; line-height: 1.6; margin: 0; }
.lead__steps { position: relative; margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.lead__step { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.lead__step-dot { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  color: var(--fg-on-dark-2); flex: none; transition: all var(--dur) var(--ease-out); }
.lead__step-lbl { font-size: 14.5px; font-weight: 600; color: var(--fg-on-dark-3); transition: color var(--dur); }
.lead__step.is-active .lead__step-dot { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }
.lead__step.is-active .lead__step-lbl { color: #fff; }
.lead__step.is-done .lead__step-dot { background: var(--taupe-400); border-color: var(--taupe-400); color: var(--ink-800); }
.lead__step.is-done .lead__step-lbl { color: var(--fg-on-dark-2); }
.lead__rail-trust { position: relative; margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.lead__rail-trust .sfc-trustchip { color: rgba(255,255,255,.8); }
.lead__rail-foot { position: relative; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 14px; color: var(--fg-on-dark-2); display: flex; align-items: center; gap: 10px; }

/* ---- form panel ---- */
.lead__panel { padding: 40px 44px; display: flex; flex-direction: column; }
.lead__progress { height: 4px; background: var(--grey-150); border-radius: 999px; overflow: hidden; margin-bottom: 30px; }
.lead__progress-bar { height: 100%; background: var(--accent-500); border-radius: 999px; transition: width var(--dur-slow) var(--ease-out); }
.lead__stepnum { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-500); }
.lead__title { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -.02em; margin: 8px 0 6px; }
.lead__desc { font-size: 15px; color: var(--fg-2); margin: 0 0 26px; line-height: 1.55; }
.lead__body { flex: 1; animation: leadIn var(--dur-slow) var(--ease-out); }
@keyframes leadIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* option cards */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px solid var(--line-3);
  border-radius: var(--r-md); cursor: pointer; transition: all var(--dur-fast) var(--ease-out); background: var(--paper); text-align: left; }
.opt:hover { border-color: var(--accent-400); background: var(--accent-50); }
.opt.is-on { border-color: var(--accent-500); background: var(--accent-50); box-shadow: 0 0 0 1.5px var(--accent-500) inset; }
.opt__ico { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--grey-100); color: var(--grey-600);
  display: flex; align-items: center; justify-content: center; flex: none; transition: all var(--dur-fast); }
.opt.is-on .opt__ico { background: var(--accent-500); color: #fff; }
.opt__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.15; }
.opt__s { display: block; font-size: 12.5px; color: var(--fg-3); line-height: 1.3; }

/* field rows */
.fld { margin-bottom: 18px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 7px; }
.fld label .req { color: var(--accent-500); margin-left: 2px; }
.fld input, .fld textarea, .fld select { width: 100%; box-sizing: border-box; font-family: var(--font-ui);
  font-size: 15px; padding: 13px 14px; border: 1.5px solid var(--line-3); border-radius: var(--r-sm);
  background: var(--paper); color: var(--fg-1); transition: all var(--dur-fast) var(--ease-out); }
.fld textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--grey-400); }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--focus-ring); }
.fld.is-err input, .fld.is-err textarea { border-color: var(--danger); }
.fld__err { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* segmented chips */
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg button { font-family: var(--font-ui); font-size: 14px; font-weight: 600; padding: 11px 18px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-3); color: var(--fg-2); background: var(--paper);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.seg button:hover { border-color: var(--accent-400); color: var(--accent-600); }
.seg button.is-on { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }

/* dropzone */
.drop { border: 1.5px dashed var(--line-3); border-radius: var(--r-md); padding: 26px; text-align: center;
  cursor: pointer; transition: all var(--dur-fast); background: var(--grey-50); }
.drop:hover { border-color: var(--accent-400); background: var(--accent-50); }
.drop__ico { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.drop p { margin: 0; font-size: 14px; color: var(--fg-2); }
.drop p b { color: var(--accent-600); }
.drop small { font-size: 12px; color: var(--fg-3); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.thumb { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line-2); }

/* review */
.rev { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.rev__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-1); }
.rev__row:last-child { border-bottom: 0; }
.rev__k { font-size: 13px; color: var(--fg-3); font-weight: 600; }
.rev__v { font-size: 14px; color: var(--fg-1); font-weight: 600; text-align: right; max-width: 60%; }
.rev__edit { font-size: 12.5px; color: var(--accent-600); cursor: pointer; font-weight: 600; }

/* footer nav */
.lead__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px;
  padding-top: 24px; border-top: 1px solid var(--line-1); }
.lead__back { font-family: var(--font-ui); font-size: 14.5px; font-weight: 600; color: var(--fg-3);
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.lead__back:hover { color: var(--fg-1); }

/* success */
.lead__done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 60px 40px; grid-column: 1 / -1; animation: leadIn var(--dur-slow) var(--ease-out); }
.lead__done-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.lead__done h2 { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -.02em; margin: 0 0 12px; }
.lead__done p { font-size: 16px; color: var(--fg-2); max-width: 46ch; line-height: 1.6; margin: 0 0 30px; }

@media (max-width: 880px) {
  .lead { grid-template-columns: 1fr; }
  .lead__rail { display: none; }
  .lead__panel { padding: 30px 24px; }
  .opt-grid, .fld-row { grid-template-columns: 1fr; }
}
