/* ==========================================================
   DEADLINE MONITOR - ONBOARDING STYLES (REDESIGNED)
   Modern, calm, professional — conversion-oriented
   ========================================================== */

/* ===== BASE RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== TYPOGRAPHY & COLORS ===== */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  
  /* Softer palette */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f3f4f6;
  
  --border-light: #e5e7eb;
  --border-input: #e5e7eb;
  --border-focus: #4E81EE;
  
  --accent: #4E81EE;
  --accent-hover: #3B6FD9;
  --accent-light: rgba(78, 129, 238, 0.08);
  
  --success: #10b981;
  --error: #ef4444;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-focus: 0 0 0 3px rgba(78, 129, 238, 0.12);
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== WRAPPER LAYOUT ===== */
.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ===== TOP BAR ===== */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.muted {
  font-size: 13px;
  color: var(--text-muted);
}

.muted a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.muted a:hover {
  color: var(--text-secondary);
}

/* ===== PROGRESS BAR ===== */
.dm-progress {
  margin-bottom: 32px;
  position: relative;
}

.dm-progress-line {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
}

.dm-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dm-progress-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.dm-dot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  transition: all 0.25s ease;
}

.dm-dot.is-done span {
  background: var(--accent);
  border-color: var(--accent);
}

.dm-dot.is-current span {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

/* Progress fill calculation by step (0–5) */
.dm-progress[data-step="0"] .dm-progress-fill { width: 0%; }
.dm-progress[data-step="1"] .dm-progress-fill { width: 20%; }
.dm-progress[data-step="2"] .dm-progress-fill { width: 40%; }
.dm-progress[data-step="3"] .dm-progress-fill { width: 60%; }
.dm-progress[data-step="4"] .dm-progress-fill { width: 80%; }
.dm-progress[data-step="5"] .dm-progress-fill { width: 100%; }

/* ===== CARD / PAGE CONTAINER ===== */
Tpx 24px 20px;
  box-shadow: var(--shadow-sm);
}


/* Keep Steps 1–3 content narrow even when the card is wider */
.dm-step-narrow {
  max-width: 100%;
  margin: 0;
}

/* ===== HEADINGS ===== */
.dm-onb-h2,
.card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.dm-onb-muted {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.45;
}

/* ===== FORM STRUCTURE ===== */
.dm-onb-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dm-onb-field {
  margin-bottom: 18px;
}

.dm-onb-field:last-of-type {
  margin-bottom: 0;
}

.dm-onb-field > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
/* Base inputs (Steps 1–3) */
.dm-onb-field input:not([type="radio"]):not([type="checkbox"]),
.dm-onb-field select,
.dm-onb-field textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.25;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.dm-onb-field input:not([type="radio"]):not([type="checkbox"]):focus,
.dm-onb-field select:focus,
.dm-onb-field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

/* Keep numeric fields compact without changing style */
input[inputmode="numeric"],
input[type="number"] {
  max-width: 140px;
  /* Steps 2–3: prefilled numbers should read like normal text */
  text-align: left;
}


.dm-onb-label-muted {
  font-weight: 400;
  color: var(--text-muted);
}

/* ===== INFO ICON (hover guidance trigger) ===== */
.dm-info{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}
.dm-info:hover{
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.dm-info:focus{
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

/* ===== INPUTS (MODERN SOFT STYLE) ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input::placeholder {
  color: var(--text-muted);
}

input:hover {
  border-color: #d1d5db;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
/* Force consistent input styling across Steps 1–3 (even if markup differs) */
.card .dm-onb-form input:not([type="radio"]):not([type="checkbox"]),
.card .dm-onb-form select,
.card .dm-onb-form textarea,
.card .grid input,
.card .field input,
.card input.input {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border-input) !important;
  background: var(--bg-input) !important;
  border-radius: var(--radius-md) !important;
  width: 100% !important;
  padding: 12px 12px !important;
  font-size: 14px !important;
  line-height: 1.25;
  outline: none !important;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color: var(--text-primary) !important;
}

.card .dm-onb-form input:not([type="radio"]):not([type="checkbox"]):focus,
.card .dm-onb-form select:focus,
.card .dm-onb-form textarea:focus,
.card .grid input:focus,
.card .field input:focus,
.card input.input:focus {
  border-color: var(--border-focus) !important;
  box-shadow: var(--shadow-focus) !important;
}


/* Numeric inputs - narrower */
input[inputmode="numeric"],
input[type="number"] {
  max-width: 140px;
  text-align: left;
}

/* Date inputs */
input[type="date"] {
  cursor: pointer;
}

/* ===== 2-COLUMN GRID ===== */
.dm-onb-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dm-onb-grid2 > * {
  min-width: 0;
}

@media (max-width: 520px) {
  .dm-onb-grid2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dm-onb-grid2 .dm-onb-field {
    margin-bottom: 18px;
  }
}

/* Legacy grid support */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}

.grid .row {
  display: flex;
  flex-direction: column;
}

.grid .row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

/* ===== HELP TEXT ===== */
.dm-onb-help,
.help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== RADIO BUTTONS ===== */
.dm-onb-radio {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.dm-onb-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 400;
}

.dm-onb-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===== CHECKBOX ===== */
.dm-onb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  cursor: pointer;
  font-weight: 400;
}

.dm-onb-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===== CONDITIONAL REVEAL FIELDS ===== */
.dm-onb-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.3s ease;
  margin-top: 0;
}

.dm-onb-reveal.is-visible {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.dm-onb-reveal .dm-onb-grid2 {
  margin-bottom: 8px;
}

.dm-onb-reveal .dm-onb-help {
  margin-top: 0;
}

/* ===== BUTTONS ===== */
.btn,
.dm-onb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-main);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn,
.dm-onb-btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn:hover,
.dm-onb-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78, 129, 238, 0.2);
}

.dm-onb-btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.dm-onb-btn-secondary:hover {
  background: rgba(78, 129, 238, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===== UPLOAD PROCESSING OVERLAY ===== */
.dm-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dm-processing-overlay.is-visible {
  display: flex;
}

.dm-processing-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.dm-processing-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dm-processing-title {
  font-weight: 700;
  color: #0a2540;
}

.dm-processing-text {
  margin-top: 6px;
  color: #6b7280;
  line-height: 1.35;
}

.dm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dmSpin 1s linear infinite;
  margin-top: 3px;
}

@keyframes dmSpin {
  to { transform: rotate(360deg); }
}

/* Full width button */
.dm-onb-btn-full {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
}

/* ===== FORM ACTIONS (Back/Continue) ===== */
.dm-onb-actions {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

/* Spacer used in Step 1 to keep Continue aligned right */
.dm-onb-actions > span {
  margin-right: auto;
  display: block;
}

/* Back link pins to the left edge of the form width */
.dm-onb-actions .dm-onb-link {
  margin-right: auto;
}

.dm-onb-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.dm-onb-link:hover {
  color: var(--accent);
}

.dm-onb-actions-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

/* ===== ERROR / SUCCESS MESSAGES ===== */
.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #dc2626;
}

.err strong {
  display: block;
  margin-bottom: 6px;
}

.err ul {
  margin: 0;
  padding-left: 18px;
}

.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #059669;
}

/* ===== STEP TRANSITIONS (CONTENT SLIDE, CARD STAYS FIXED) ===== */
j0px;
  min-height: var(--onb-card-height);
  overflow: hidden;
}

/* Desktop: lock card height so the white container never jumps */
@media (min-width: 780px) {
  .dm-page {
    height: var(--onb-card-height);
    max-height: var(--onb-card-height);
  }
  .dm-page-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
  }
}

/* Mobile: allow natural height */
@media (max-width: 779px) {
  .dm-page {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .dm-page-inner {
    overflow: visible;
    padding-right: 0;
  }
}

.dm-page-inner {
  opacity: 1;
  transform: translateX(0);
  will-change: transform, opacity;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.dm-page-inner.is-enter {
  opacity: 0;
  transform: translateX(40px);
}

.dm-page-inner.is-leave-left {
  opacity: 0;
  transform: translateX(-40px);
}

/* Step 4 layout: payoff left, activate/signup right (desktop) */
.dm-step4-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}

.dm-step4-left {
  flex: 1 1 auto;
  min-width: 0;
}

.dm-step4-right {
  flex: 0 0 auto;
  min-width: 0;
}

@media (min-width: 780px) {
  .dm-step4-layout {
    flex-direction: row !important;
    align-items: flex-start;
  }
  .dm-step4-left {
    flex: 1.25 1 0;
  }
  .dm-step4-right {
    flex: 0 0 380px;
  }
}

@media (max-width: 779px) {
  .dm-step4-layout {
    flex-direction: column !important;
  }
  .dm-step4-right {
    width: 100%;
  }
}
/* ===== STEP 4: PAYOFF SCREEN (REDESIGNED) ===== */
.dm-payoff {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 780px) {
  .dm-payoff { gap: 18px; }
  .dm-payoff-headline {
    text-align: left;
    padding-bottom: 14px;
  }
  .dm-signup-section,
  .dm-activate-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .dm-signup-title { text-align: left; }
}


/* Headline */
.dm-payoff-headline {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.dm-payoff-headline h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.dm-payoff-headline p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Stats row */
.dm-payoff-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dm-payoff-stat {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.dm-payoff-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.dm-payoff-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Timeline preview card */
.dm-payoff-preview {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 16px;
}

.dm-payoff-preview-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.dm-timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Dual-rail teaser (left + right), to hint there are more milestones */
.dm-timeline-mini-dual {
  padding-right: 12px; /* space for the right rail */
}

/* Vertical line connecting dots */
.dm-timeline-mini::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
  border-radius: 1px;
}

/* Right rail (mirrors the left rail) */
.dm-timeline-mini-dual::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
  border-radius: 1px;
}

.dm-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.dm-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.dm-timeline-dot-right {
  opacity: 0.25;
}

.dm-timeline-dot-right.is-locked,
.dm-timeline-item.is-locked .dm-timeline-dot-right {
  opacity: 1;
}

.dm-timeline-dot.is-reminder {
  background: var(--text-muted);
  width: 8px;
  height: 8px;
  margin: 5px 2px 0 2px;
}

.dm-timeline-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.dm-timeline-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.dm-timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dm-timeline-more {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 24px;
  margin-top: 4px;
}

/* Email preview card */
.dm-email-preview {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.dm-email-preview::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.dm-email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dm-email-from {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dm-email-badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 10px;
}

.dm-email-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dm-email-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Reassurance text */
.dm-payoff-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 12px;
}

/* ===== STEP 4 (TEASER / LOCKED) ===== */
.dm-step4-teaser {
  width: 100%;
}

.dm-payoff-stats-single {
  grid-template-columns: 1fr;
  max-width: 360px;
}

.dm-step4-actions {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;

  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dm-timeline-item.is-locked {
  opacity: 0.65;
}

.dm-timeline-dot.is-locked {
  background: var(--border-light);
  border-color: var(--border-light);
}

.dm-lock {
  font-size: 12px;
}

/* ===== STEP 5 (SIGNUP / UNLOCK) ===== */
.dm-step5-layout {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;

  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

.dm-step5-bullets {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .dm-step5-layout {
    grid-template-columns: 1fr;
  }
}

/* Signup section */
.dm-signup-section {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 8px;
}

.dm-signup-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.dm-signup-form .field {
  margin-bottom: 14px;
}

.dm-signup-form .field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dm-signup-form .field .help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dm-signup-form .input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.dm-signup-form .input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

/* Logged-in activate section */
.dm-activate-section {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 8px;
  text-align: center;
}

.dm-activate-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ===== LEGACY PAYOFF STYLES (for backward compat) ===== */
.dm-onb-payoff {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dm-onb-payoff-left,
.dm-onb-payoff-right {
  width: 100%;
}

.dm-onb-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.dm-onb-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.dm-onb-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.dm-onb-stat {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  border: none;
}

.dm-onb-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.dm-onb-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dm-onb-box {
  background: var(--bg-page);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.dm-onb-box-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.dm-onb-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2px;
}

.dm-onb-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
  border-radius: 1px;
}

.dm-onb-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.dm-onb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.dm-onb-dot.is-reminder {
  background: var(--text-muted);
  width: 8px;
  height: 8px;
  margin: 4px 2px 0 2px;
}

.dm-onb-timeline-label {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.dm-onb-timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dm-email {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.dm-email::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.dm-email-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dm-email-from {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dm-email-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dm-email-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.dm-onb-reassure {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  padding: 0 8px;
}

.dm-onb-sticky {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .wrap {
    padding: 24px 16px 40px;
  }
  
  .card {
    padding: 20px 18px;
  }
  
  .dm-onb-h2,
  .card h2 {
    font-size: 18px;
  }
  
  .dm-progress-line {
    left: 16px;
    right: 16px;
  }
  
  .dm-payoff-stats,
  .dm-onb-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .dm-payoff-stat,
  .dm-onb-stat {
    padding: 12px;
  }
  
  .dm-payoff-stat-value,
  .dm-onb-stat-num {
    font-size: 24px;
  }
}


/* ===== FIELD WRAPPER (Steps 1–3) ===== */
.dm-onb-fields{
  width: 100%;
  max-width: 860px;
  margin: 0;
}



.dm-timeline-date-locked{
  color: var(--text-muted);
  letter-spacing: 2px;
}


/* Progress labels */
.dm-dot-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:60px;}
.dm-dot-label{font-size:11px;color:var(--text-muted);margin-top:-2px;white-space:nowrap;}
@media (max-width: 720px){.dm-dot-label{display:none;}}


/* Step 4 benefits row */
.dm-teaser-benefits{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:14px;color:var(--text-muted);font-size:13px;}
.dm-teaser-benefits span{display:inline-flex;align-items:center;gap:8px;}
.dm-teaser-dot{width:6px;height:6px;border-radius:999px;background:var(--accent);display:inline-block;opacity:.9;}

.dm-onb-hint{margin-top:14px;color:var(--text-muted);font-size:13px;}
.dm-onb-hint-title{font-weight:700;color:var(--text);margin-bottom:6px;}
.dm-onb-hint ul{margin:0;padding-left:18px;}
.dm-onb-hint li{margin:4px 0;}


/* Step 4 CTA meta */
.dm-step4-count{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8b93a6;margin-bottom:10px;text-align:right;}
.dm-step4-count span{display:block;font-size:22px;letter-spacing:0;text-transform:none;color:#111827;font-weight:700;margin-bottom:2px;}

input[type=number]{text-align:left;}
