/* ==========================================================================
   SEAT — Institutional Verification Dossier (Mercury-Inspired Design System)
   Typography: Geist (400, 500, 600) + Geist Mono (400, 500)
   Desktop: Locked 100dvh Split Application Shell (Zero Page Scroll)
   Mobile: 90% Mobile-Traffic Ergonomic Single-Column Flow
   ========================================================================== */

:root {
  /* Mercury-Inspired Institutional Slate & Ink Palette */
  --bg-sidebar: #F6F7F9;
  --bg-stage: #FFFFFF;
  --bg-subtle: #F8F9FB;
  --bg-hover: #F1F3F6;
  --bg-active: #EBEEF3;

  --fg: #14151A;
  --fg-secondary: #494E5B;
  --fg-muted: #767C8C;
  --fg-faint: #9BA1B0;

  --border: #E4E7EC;
  --border-input: #D6DAE1;
  --border-hover: #B8BFC9;
  --border-strong: #14151A;

  /* Fynex Network Royal Blue & Verification Emerald */
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EFF6FF;
  --accent-border: #BFDBFE;

  --ink-btn: #2563EB;
  --ink-btn-hover: #1D4ED8;

  --success: #059669;
  --success-soft: #ECFDF5;
  --success-border: #A7F3D0;

  --danger: #C83232;
  --danger-soft: #FDF2F2;
  --danger-border: #F3C4C4;

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii — Crisp Mercury Proportions */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  /* Shadows — Subtle Elevation */
  --shadow-xs: 0 1px 2px rgba(20, 21, 26, 0.04);
  --shadow-dropdown: 0 10px 28px -4px rgba(20, 21, 26, 0.12), 0 2px 6px -1px rgba(20, 21, 26, 0.06);
  --focus-ring: 0 0 0 3px rgba(56, 67, 208, 0.13);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg-stage);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Lock desktop to 100dvh with zero page scroll */
@media (min-width: 920px) {
  html, body {
    height: 100dvh;
    overflow: hidden;
  }
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   TOPBAR (Visible on Mobile/Tablet; Integrated into Left Sidebar on Desktop)
   ========================================================================== */
.topbar {
  display: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

@media (max-width: 919px) {
  .topbar {
    display: block;
  }
}

.topbar-inner {
  min-height: 40px;
  padding: 3px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-width: 0;
  max-width: 100%;
}

.brand-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--fg);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid var(--border-input);
  background: #000000;
  flex-shrink: 0;
}

.live-hiring-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--success);
}

.live-hiring-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success-soft);
}

.partner-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0 12px;
}

.pillar-chip {
  display: flex;
  align-items: flex-start;
  padding: 6px 8px 6px 9px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.pillar-icon {
  font-size: 12px;
  line-height: 1.2;
  flex-shrink: 0;
}

.pillar-chip strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
}

.pillar-chip span {
  display: block;
  font-size: 10.5px;
  color: var(--fg-muted);
  line-height: 1.3;
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: break-word;
}

.roadmap-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin: 4px 0 4px;
}

.fynex-inline-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  vertical-align: bottom;
  max-width: 100%;
}

.fynex-node-badge {
  display: inline-block;
  flex-shrink: 0;
  margin: 0 3px;
  transform: rotate(20deg);
  border-radius: 6px;
}

.fynex-blue-text {
  color: var(--accent);
}

.req-star {
  color: var(--accent);
  font-weight: 600;
}

.mobile-ad-promise {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mobile-ad-promise span {
  font-size: 11px;
  font-weight: 500;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  padding: 3px 8px;
  border-radius: 99px;
}

@media (max-width: 919px) {
  .mobile-ad-promise {
    display: flex;
  }
}

.qual-unlock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-sm);
}

.qual-unlock-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qual-unlock-text {
  min-width: 0;
}

.qual-unlock-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #065F46;
  line-height: 1.25;
}

.qual-unlock-text span {
  display: block;
  font-size: 11.5px;
  color: #047857;
  line-height: 1.3;
  margin-top: 1px;
}

.trust-explainer-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  margin-bottom: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--fg-secondary);
}

.trust-explainer-box svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-explainer-box strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1px;
}

.trust-explainer-box span {
  display: block;
  line-height: 1.35;
}

.brand-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

/* Quiet Auto-Save Status Indicator */
.autosave-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--fg-muted);
  font-weight: 400;
  white-space: normal;
  min-width: 0;
  line-height: 1.2;
}

@media (max-width: 380px) {
  .brand-divider {
    display: none;
  }
}

.autosave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  transition: transform 150ms ease, background-color 150ms ease;
}

.autosave-pill.saving .autosave-dot {
  background: var(--accent);
  transform: scale(1.25);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.meta-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.meta-pill svg {
  width: 13px;
  height: 13px;
  color: var(--fg-muted);
}

/* ==========================================================================
   COMPLIANCE DRAWER (Popover Overlay)
   ========================================================================== */
.compliance-drawer {
  display: none;
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(680px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  z-index: 120;
}

.compliance-drawer.open {
  display: block;
  animation: fadeSlideDown 160ms var(--ease-out) both;
}

.compliance-inner {
  padding: 16px 18px;
}

.compliance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.compliance-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 560px) {
  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

.compliance-cell {
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.4;
}

.compliance-cell strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ==========================================================================
   MOBILE COMPACT PROGRESS BAR
   ========================================================================== */
.mobile-dossier-bar {
  display: none;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 41px;
  z-index: 35;
}

@media (max-width: 919px) {
  .mobile-dossier-bar {
    display: block;
  }
}

.mobile-bar-inner {
  padding: 5px 12px;
}

.mobile-bar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin-bottom: 4px;
  min-width: 0;
}

.mobile-step-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.mobile-step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}

.mobile-dossier-toggle {
  background: transparent;
  border: none;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mobile-dossier-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 150ms ease;
}

.mobile-dossier-bar.expanded .mobile-dossier-toggle svg {
  transform: rotate(180deg);
}

.mobile-segments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.mobile-seg {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.mobile-seg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), background-color 280ms ease;
}

.mobile-seg.active::after {
  background: var(--accent);
  transform: scaleX(1);
}

.mobile-seg.done::after {
  background: var(--success);
  transform: scaleX(1);
}

.mobile-checklist-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    margin-top 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease;
}

.mobile-checklist-drawer-inner {
  overflow: hidden;
}

.mobile-dossier-bar.expanded .mobile-checklist-drawer {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: var(--border);
}

/* ==========================================================================
   MERCURY SPLIT APPLICATION SHELL (Locked 100dvh on Desktop)
   ========================================================================== */
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 920px) {
  .page-shell {
    grid-template-columns: clamp(300px, 28vw, 344px) minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
  }
}

/* ==========================================================================
   LEFT SIDEBAR: MERCURY INSTITUTIONAL RAIL (Desktop Only)
   ========================================================================== */
.dossier-rail {
  display: none;
}

@media (min-width: 920px) {
  .dossier-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 18px clamp(16px, 2vw, 22px);
    user-select: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.dossier-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  margin: 0 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-kicker span.status-tag {
  color: var(--fg-secondary);
  font-family: var(--font-mono);
}

.dossier-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 2px;
  color: var(--fg);
}

.dossier-sub {
  font-size: 11.5px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.35;
}

/* 7-Item Vertical Stepper List */
.dossier-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4.5px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) ease;
}

.dossier-item.active {
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.dossier-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dossier-status-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: all var(--dur-fast) ease;
}

.dossier-item.active .dossier-status-icon {
  border-color: var(--fg);
  background: var(--fg);
  color: #FFFFFF;
}

.dossier-item.done .dossier-status-icon {
  border-color: var(--success);
  background: var(--success);
  color: #FFFFFF;
}

.dossier-item-text {
  min-width: 0;
}

.dossier-item-name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg-secondary);
  white-space: normal;
  overflow-wrap: break-word;
}

.dossier-item.active .dossier-item-name {
  color: var(--fg);
  font-weight: 600;
}

.dossier-item.done .dossier-item-name {
  color: var(--fg);
}

.dossier-item-meta {
  font-size: 11px;
  line-height: 1.35;
  color: var(--fg-muted);
  white-space: normal;
  overflow-wrap: break-word;
}

.dossier-item.done .dossier-item-meta {
  color: var(--success);
}

/* Sidebar Bottom Footer */
.sidebar-bottom {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--fg-muted);
}

.dossier-footer-row strong {
  color: var(--fg-secondary);
  font-weight: 500;
}

.vault-assurance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--fg-secondary);
}

.vault-assurance-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vault-assurance-left svg {
  width: 13px;
  height: 13px;
  color: var(--success);
  flex-shrink: 0;
}

/* ==========================================================================
   RIGHT STAGE: CLEAN MERCURY WORKSPACE (Zero Scroll on Desktop)
   ========================================================================== */
.stage-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 12px 20px;
  background: var(--bg-stage);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 920px) {
  .stage-column {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px clamp(20px, 4vw, 44px) 18px;
  }
}

.stage-workspace {
  width: 100%;
  max-width: 584px;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 920px) {
  .stage-workspace {
    margin: auto 0;
  }
}

/* Quiet Session Restored Pill Bar */
.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--fg-secondary);
}

.resume-banner[hidden] {
  display: none !important;
}

.resume-banner-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.resume-banner-left svg {
  width: 13px;
  height: 13px;
  color: var(--success);
  flex-shrink: 0;
}

.resume-reset-btn {
  background: transparent;
  border: none;
  padding: 2px 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}

.resume-reset-btn:hover {
  color: var(--danger);
}

/* ==========================================================================
   STEP VIEWS (Borderless Clean Mercury Stage — No Nested Cards)
   ========================================================================== */
.step-card {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.step-card.active {
  display: block;
}

.step-card.anim-forward {
  animation: stepForward var(--dur-base) var(--ease-out) backwards;
}

.step-card.anim-backward {
  animation: stepBackward var(--dur-base) var(--ease-out) backwards;
}

@keyframes stepForward {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes stepBackward {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.step-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
}

.step-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 10px;
  margin-bottom: 4px;
  min-width: 0;
  max-width: 100%;
}

.step-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.025em;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.step-time {
  font-size: 11px;
  color: var(--fg-muted);
  white-space: normal;
  overflow-wrap: break-word;
  text-align: left;
  line-height: 1.3;
  flex: 0 1 auto;
  min-width: 0;
}

.step-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 3px;
  color: var(--fg);
  line-height: 1.25;
}

.step-sub {
  font-size: 13px;
  color: var(--fg-secondary);
  margin: 0;
  line-height: 1.38;
}

/* ==========================================================================
   FORM FIELDS & GRIDS (Balanced Mercury Rhythm)
   ========================================================================== */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.step-card[data-step="1"] .field-stack,
.step-card[data-step="4"] .field-stack,
.step-card[data-step="5"] .field-stack {
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.field-row-street {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 12px;
  min-width: 0;
}

.field-row-zip {
  display: grid;
  grid-template-columns: 100px 1fr 156px;
  gap: 10px;
  min-width: 0;
}

@media (max-width: 600px) {
  .field-row,
  .field-row-street {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .field-row-zip {
    grid-template-columns: 96px 1fr;
  }
  .field-row-zip > .zip-state-col {
    grid-column: 1 / -1;
  }
}

.field-group {
  position: relative;
  min-width: 0;
}

.field-group:focus-within,
.field-group:has(.combobox.open),
.field-row:focus-within,
.field-row:has(.combobox.open),
.field-row-street:focus-within,
.field-row-street:has(.combobox.open),
.field-row-zip:focus-within,
.field-row-zip:has(.combobox.open) {
  position: relative;
  z-index: 70;
}

.field-label-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 8px;
  margin-bottom: 4px;
  min-width: 0;
}

label.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #2B2E38;
  min-width: 0;
  overflow-wrap: break-word;
}

.field-badge {
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-muted);
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
}

.field-badge.ok {
  color: var(--success);
  font-weight: 500;
}

.field-badge.warn {
  color: var(--danger);
}

.field-help {
  font-size: 11.5px;
  color: var(--fg-muted);
  margin: -2px 0 4px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 30px 0 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  appearance: none;
}

@media (max-width: 919px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select {
    height: 38px;
    font-size: 16px; /* Prevents iOS Safari & iPadOS auto-zoom on focus */
  }
  .field-stack {
    gap: 8px;
  }
  .step-card[data-step="1"] .field-stack,
  .step-card[data-step="4"] .field-stack,
  .step-card[data-step="5"] .field-stack,
  .step-card[data-step="6"] .field-stack {
    gap: 7px;
  }
  .mobile-ad-promise {
    margin-bottom: 7px;
    gap: 4px;
  }
  .mobile-ad-promise span {
    font-size: 10.5px;
    padding: 2px 7px;
  }
}

input::placeholder {
  color: var(--fg-faint);
  font-weight: 400;
}

input:hover,
select:hover {
  border-color: var(--border-hover);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

input.invalid,
select.invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.input-status-icon {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  color: var(--success);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  pointer-events: none;
}

.input-wrap.is-valid .input-status-icon {
  opacity: 1;
  transform: scale(1);
}

.field-error {
  display: none;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--danger);
  margin-top: 4px;
}

.field-error.visible {
  display: block;
}

/* ==========================================================================
   650+ CREDIT SCORE SEGMENTED SELECTOR (Step 1)
   ========================================================================== */
.credit-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 540px) {
  .credit-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credit-tier-btn {
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.credit-tier-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
}

.credit-tier-btn.selected {
  border-color: var(--fg);
  background: var(--bg-subtle);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.credit-tier-btn.below-threshold.selected {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px var(--danger);
}

.tier-range {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.tier-label {
  font-size: 11px;
  color: var(--fg-muted);
  white-space: normal;
  line-height: 1.3;
}

.credit-feedback-bar {
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-width: 0;
}

.credit-feedback-bar.qualifies {
  display: flex;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.credit-feedback-bar.ineligible {
  display: flex;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

/* ==========================================================================
   QUICK CHIPS & EMAIL DOMAIN AUTOCOMPLETE
   ========================================================================== */
.chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip-strip:empty {
  display: none;
}

.quick-chip {
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.quick-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  color: var(--fg);
}

.quick-chip.active {
  background: var(--fg);
  color: #FFFFFF;
  border-color: var(--fg);
}

/* ==========================================================================
   SEARCHABLE COMBOBOX DROPDOWNS (Street Address, State, Bank)
   ========================================================================== */
.combobox {
  position: relative;
  min-width: 0;
}

.combobox-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--fg-muted);
  pointer-events: none;
  transition: transform var(--dur-fast) ease;
}

.combobox.open .combobox-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: var(--fg);
}

.combobox-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 158px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dropdown);
  z-index: 100;
  padding: 4px;
}

#streetCombo .combobox-menu {
  position: relative;
  top: 0;
  margin-top: 6px;
  margin-bottom: 4px;
  max-height: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#stateCombo .combobox-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.combobox.open .combobox-menu {
  display: block;
  animation: fadeSlideDown 130ms var(--ease-out) both;
}

.combobox-option {
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.combobox-option:hover,
.combobox-option.active {
  background: var(--bg-hover);
}

.combobox-option-main {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

.combobox-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.combobox-tag {
  font-size: 11.5px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   COMPACT DOCUMENT UPLOAD ROWS (Steps 1, 3, 4 — Zero Scroll Fit)
   ========================================================================== */
.capture-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.statement-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

@media (max-width: 520px) {
  .capture-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .statement-grid-3 {
    gap: 6px;
  }
}

@media (max-width: 345px) {
  .statement-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.doc-slot {
  position: relative;
  border: 1px dashed var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.doc-slot:hover,
.doc-slot.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.doc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xs) - 1px);
  display: block;
}

.doc-slot.filled {
  border-style: solid;
  border-color: var(--success-border);
  background: var(--success-soft);
}

.doc-slot.invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}

/* Clean vertical cards for the 3-column monthly statements */
.doc-slot.doc-slot-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 9px 10px;
  gap: 6px;
}

.doc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.doc-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.doc-slot-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.doc-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-secondary);
  flex-shrink: 0;
}

.doc-slot.filled .doc-icon {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.doc-icon svg {
  width: 14px;
  height: 14px;
}

.doc-text {
  min-width: 0;
  flex: 1;
}

.doc-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}

.doc-sub {
  font-size: 11.5px;
  color: var(--fg-muted);
  line-height: 1.38;
  margin-top: 2px;
  white-space: normal;
  overflow-wrap: break-word;
}

.doc-slot.filled .doc-sub {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.doc-slot-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 1;
  min-width: 0;
}

.doc-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.doc-slot.filled .doc-badge {
  display: none;
}

.doc-remove {
  display: none;
  position: relative;
  z-index: 3;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
}

.doc-slot.filled .doc-remove {
  display: inline-flex;
}

.doc-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* POA 4-pill selector */
.poa-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

@media (max-width: 560px) {
  .poa-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.poa-type-pill {
  min-height: 34px;
  height: auto;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-secondary);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-width: 0;
  transition: all var(--dur-fast) ease;
}

.poa-type-pill:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.poa-type-pill.active {
  border-color: var(--fg);
  background: var(--fg);
  color: #FFFFFF;
}

/* ==========================================================================
   FUTURE KYC AVAILABILITY & PAYOUT RAIL (Step 5)
   ========================================================================== */
.availability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

@media (max-width: 340px) {
  .availability-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.avail-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  user-select: none;
  min-width: 0;
}

.avail-card:hover {
  border-color: var(--border-hover);
}

.avail-card.checked {
  border-color: var(--fg);
  background: var(--bg-subtle);
}

.avail-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avail-box {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
}

.avail-card.checked .avail-box {
  background: var(--fg);
  border-color: var(--fg);
  color: #FFFFFF;
}

.avail-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
}

.avail-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-muted);
}

.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

@media (max-width: 520px) {
  .rail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rail-pill {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  cursor: pointer;
  text-align: left;
  transition: all var(--dur-fast) ease;
  min-width: 0;
}

.rail-pill:hover {
  border-color: var(--border-hover);
}

.rail-pill.active {
  border-color: var(--fg);
  background: var(--bg-subtle);
  box-shadow: inset 0 0 0 1px var(--fg);
}

.rail-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  display: block;
}

.rail-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-muted);
}

/* ==========================================================================
   STEP NAVIGATION FOOTER (Clean Mercury Bar on Desktop; Thumb Bar on Mobile)
   ========================================================================== */
.step-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 919px) {
  .stage-column {
    padding: 4px 10px 8px;
  }
  .step-header {
    margin-bottom: 6px;
    padding-bottom: 5px;
  }
  .step-title {
    font-size: 16.5px;
    line-height: 1.18;
    margin: 0 0 2px;
  }
  .step-sub {
    font-size: 11.2px;
    line-height: 1.25;
  }
  .step-actions {
    position: static;
    margin-top: 6px;
    padding: 6px 0 calc(2px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    backdrop-filter: none;
    border-top: 1px solid var(--border);
  }
}

.btn-back {
  min-height: 38px;
  height: auto;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-width: 0;
  transition: all var(--dur-fast) ease;
}

.btn-back:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.btn-primary {
  flex: 1 1 180px;
  min-height: 38px;
  height: auto;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-btn);
  background: var(--ink-btn);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-width: 0;
  transition: background var(--dur-fast) ease;
}

/* Compact desktop laptops (13" 1366x768 / 125% scaling) */
@media (min-width: 920px) and (max-height: 760px) {
  .partner-pillars-grid {
    margin: 6px 0 8px;
    gap: 4px;
  }
  .pillar-chip {
    padding: 4px 6px;
  }
  .dossier-rail {
    padding: 12px 16px;
  }
}

@media (max-width: 919px) {
  .btn-back,
  .btn-primary {
    min-height: 36px;
    height: auto;
    font-size: 13px;
    padding: 5px 12px;
  }
}

.btn-primary:hover {
  background: var(--ink-btn-hover);
}

.btn-primary svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) ease;
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

/* ==========================================================================
   CONFIRMATION SCREEN (Step 6)
   ========================================================================== */
.thankyou-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.thankyou-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.receipt-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 4px;
}

.receipt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  min-width: 0;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-label,
.receipt-key {
  color: var(--fg-muted);
  flex: 1 1 auto;
  min-width: 0;
}

.receipt-val {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg);
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.contact-support-bar {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--fg-secondary);
}

.contact-support-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-support-left svg {
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE & TOUCH ANIMATION SYSTEM (60fps Spring Transitions & Micro-Feedback)
   ========================================================================== */
@keyframes mobileLabelSwap {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-step-title.anim-swap {
  animation: mobileLabelSwap 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slotAttachPop {
  0%   { transform: scale(0.985); }
  55%  { transform: scale(1.012); }
  100% { transform: scale(1); }
}

.doc-slot.filled {
  animation: slotAttachPop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  45%      { transform: translateX(4px); }
  70%      { transform: translateX(-3px); }
}

input.invalid,
select.invalid,
.doc-slot.invalid {
  animation: fieldShake 300ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Tactile Spring Press on Touch & Interactive Controls */
.btn-primary,
.btn-secondary,
.tier-pill,
.poa-type-pill,
.avail-card,
.rail-pill,
.doc-slot {
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease,
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary:active,
.btn-secondary:active,
.tier-pill:active,
.poa-type-pill:active,
.avail-card:active,
.rail-pill:active,
.doc-slot:active {
  transform: scale(0.978);
}

@media (max-width: 919px) {
  @keyframes mobileStepForward {
    from {
      opacity: 0;
      transform: translate3d(24px, 0, 0) scale(0.992);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes mobileStepBackward {
    from {
      opacity: 0;
      transform: translate3d(-24px, 0, 0) scale(0.992);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes mobileChildCascade {
    from {
      opacity: 0;
      transform: translate3d(0, 10px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .step-card.anim-forward {
    animation: mobileStepForward 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
  }

  .step-card.anim-backward {
    animation: mobileStepBackward 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
  }

  .step-card.anim-forward .step-header,
  .step-card.anim-backward .step-header {
    animation: mobileChildCascade 320ms cubic-bezier(0.22, 1, 0.36, 1) 25ms both;
  }

  .step-card.anim-forward .prequal-banner,
  .step-card.anim-backward .prequal-banner,
  .step-card.anim-forward .mobile-ad-promise {
    animation: mobileChildCascade 340ms cubic-bezier(0.22, 1, 0.36, 1) 55ms both;
  }

  .step-card.anim-forward .field-stack > *:nth-child(1),
  .step-card.anim-backward .field-stack > *:nth-child(1) {
    animation: mobileChildCascade 360ms cubic-bezier(0.22, 1, 0.36, 1) 75ms both;
  }

  .step-card.anim-forward .field-stack > *:nth-child(2),
  .step-card.anim-backward .field-stack > *:nth-child(2) {
    animation: mobileChildCascade 360ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both;
  }

  .step-card.anim-forward .field-stack > *:nth-child(3),
  .step-card.anim-backward .field-stack > *:nth-child(3) {
    animation: mobileChildCascade 360ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
  }

  .step-card.anim-forward .field-stack > *:nth-child(n+4),
  .step-card.anim-backward .field-stack > *:nth-child(n+4) {
    animation: mobileChildCascade 360ms cubic-bezier(0.22, 1, 0.36, 1) 170ms both;
  }
}

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

/* ==========================================================================
   WELCOME CARD (STEP 0) & INTERMEDIATE PRE-VERIFICATION BRIEFING (STEP 3)
   + $100 CANDIDATE TIME-COMPENSATION GUARANTEE CALLOUTS
   ========================================================================== */
.welcome-card-shell {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.welcome-card-shell .step-header {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.welcome-card-shell .step-title {
  font-size: 17.5px;
  margin: 0 0 2px;
  line-height: 1.22;
}

.welcome-card-shell .step-sub {
  font-size: 11.8px;
  line-height: 1.32;
}

.time-guarantee-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  border: 1px solid #BFDBFE;
  border-left: 3.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-bottom: 6px;
  min-width: 0;
  max-width: 100%;
}

.time-guarantee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
  min-width: 0;
}

.time-guarantee-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #047857;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 1.5px 6px;
  border-radius: 99px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.time-guarantee-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin: 0 0 2px;
}

.time-guarantee-body {
  font-size: 11.2px;
  color: var(--fg-secondary);
  line-height: 1.32;
  margin: 0;
}

.time-guarantee-body strong {
  color: var(--fg);
  font-weight: 600;
}

.welcome-steps-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 5px 0 6px;
  min-width: 0;
  max-width: 100%;
}

.welcome-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
  max-width: 100%;
}

.welcome-step-num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.welcome-step-num.emerald {
  background: var(--success);
}

.welcome-step-content {
  flex: 1;
  min-width: 0;
}

.welcome-step-title {
  font-size: 11.8px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin: 0 0 1px;
}

.welcome-step-desc {
  font-size: 11px;
  color: var(--fg-secondary);
  line-height: 1.32;
  margin: 0;
}

.welcome-step-desc strong {
  color: var(--fg);
  font-weight: 600;
}

.kyc-plain-note {
  margin-top: 4px;
  padding: 4px 7px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  color: var(--fg-secondary);
  line-height: 1.3;
  min-width: 0;
}

.kyc-plain-note strong {
  color: var(--accent);
  font-weight: 600;
}

.welcome-reassurance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--fg-secondary);
  min-width: 0;
}

.welcome-reassurance-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 1.5px 7px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-weight: 500;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.welcome-reassurance-pill strong {
  color: var(--success);
}

.sidebar-guarantee-box {
  margin: 10px 0 12px;
  padding: 9px 11px;
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  border: 1px solid #BFDBFE;
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg-secondary);
}

.sidebar-guarantee-box strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

@media (max-width: 919px) {
  .welcome-card-shell {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .welcome-card-shell .step-header {
    margin-bottom: 4px;
    padding-bottom: 4px;
  }
  .welcome-card-shell .step-title {
    font-size: 15.5px;
    line-height: 1.16;
  }
  .welcome-card-shell .step-sub {
    font-size: 10.6px;
    line-height: 1.22;
  }
  .time-guarantee-banner {
    padding: 5px 8px;
    margin-bottom: 4px;
  }
  .time-guarantee-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
  .time-guarantee-title {
    font-size: 11px;
    line-height: 1.18;
    margin: 0 0 1px;
  }
  .time-guarantee-body {
    font-size: 10.1px;
    line-height: 1.21;
  }
  .welcome-steps-list {
    gap: 4px;
    margin: 3px 0 4px;
  }
  .welcome-step-row {
    padding: 4px 7px;
    gap: 6px;
  }
  .welcome-step-num {
    width: 17px;
    height: 17px;
    font-size: 10px;
  }
  .welcome-step-title {
    font-size: 10.8px;
    line-height: 1.18;
    margin: 0 0 1px;
  }
  .welcome-step-desc {
    font-size: 10px;
    line-height: 1.2;
  }
  .kyc-plain-note {
    margin-top: 2px;
    padding: 2px 6px;
    font-size: 9.6px;
    line-height: 1.19;
  }
  .welcome-reassurance-strip {
    padding-top: 3px;
    gap: 3px;
    font-size: 9.5px;
  }
  .welcome-reassurance-pill {
    padding: 1px 5px;
  }
}

