/* =====================================================
   Debt Duck — Two-Part Form (Responsive)
   Color system aligned with existing site:
   --Primary: #009DDA, --Text: #545863, success: #338132
   Mobile-first with progressive enhancements
   ===================================================== */
:root{
  --Primary:#009DDA;
  --Text:#545863;
  --Bg:#FFFFFF;
  --Card:#FFFFFF;
  --Muted:#6B7280;
  --Ring: rgba(0,157,218,0.35);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--Text); background: var(--Bg); }
img{ max-width:100%; height:auto; display:block; }

.content{ max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header{ border-bottom: 1px solid #E5E7EB; background: #F8FAFC; }
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding: 12px 0; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; color: var(--Text); }
.logo-dot{ width:14px; height:14px; border-radius:50%; background: var(--Primary); }
.brand-text{ letter-spacing:0.2px; text-decoration: none; font-size: 20px; }

/* Footer */
.site-footer{ margin: 24px 0 48px; }
.site-footer p{ color:#6B7280; font-size:14px; }

/* Card */
.card{ background: var(--Card); border: 1px solid #E5E7EB; border-radius: 16px; padding: 20px; margin: 24px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.card h1{ font-size: 28px; margin: 0 0 6px; color: var(--Primary); }
.card h2{ font-size: 22px; margin: 6px 0 12px; color: var(--Primary); }
.muted{ color: var(--Muted); margin-bottom: 12px; }
.green-text{ color:#338132; }

/* Stepper */
.stepper{ display:flex; gap:8px; margin: 8px 0 16px; }
.step{
  appearance:none; border:1px solid #E5E7EB; background:#fff; color: var(--Text);
  padding:10px 14px; border-radius: 16px; font-weight:600; cursor:pointer;
}
.step.is-active{ background: var(--Primary); color:#fff; border-color: var(--Primary); }

/* Form */
form{ width:100%; }
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field{ display:flex; flex-direction:column; gap:6px; }
label{ font-size: 14px; color: var(--Text); }
input, select{
  width:100%;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  background:#fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, select:focus{
  border-color: var(--Primary);
  box-shadow: 0 0 0 4px var(--Ring);
}
input[readonly]{ background: #F3F4F6; color:#6B7280; }

/* Actions */
.actions{ display:flex; gap: 12px; margin-top: 12px; }
.actions.two-col{ justify-content: space-between; }
.button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: 10px; padding: 12px 16px; font-weight: 700;
  border: 1px solid transparent; cursor:pointer; min-height:44px; text-decoration:none;
}
.button.primary{ background: var(--Primary); color:#fff; }
.button.inverted{ background:#fff; color: var(--Primary); border-color: var(--Primary); }
.button.ghost{ background:#fff; color: var(--Text); border:1px solid #E5E7EB; }

/* Steps visibility */
.form-step.is-hidden{ display:none; }

/* Responsive tweaks */
@media (max-width: 992px){
  .nav-wrap{ flex-direction: column; gap: 8px; align-items: stretch; }
  .stepper{ justify-content:center; flex-wrap: wrap; }
}
@media (max-width: 768px){
  .form-grid{ grid-template-columns: 1fr; }
  .card{ padding: 16px; }
  .card h1{ font-size:24px; }
  .card h2{ font-size:20px; }
}
@media (max-width: 420px){
  .button{ width:100%; }
  .actions{ flex-direction: column; }
}
