/* ============================================================
   Sunshine Registered Agent — "Start my LLC" flow
   Shares tokens, buttons, brand & footer from styles.css
   ============================================================ */

.form-page { background: var(--ivory-warm); }

/* ---------- Focused checkout-style header ---------- */
.form-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.form-header-inner {
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
}
.form-secure { font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 7px; }
.form-secure .lock { color: var(--gold); }

/* ---------- Progress steps ---------- */
.progress { background: var(--ivory); border-bottom: 1px solid var(--line); }
.progress-inner { max-width: 920px; margin: 0 auto; padding: 18px var(--pad-x); }
.steps { list-style: none; display: flex; align-items: center; gap: 10px; }
.step-item { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--slate-soft); font-size: 14px; font-weight: 600; }
.step-item:last-child { flex: 0; white-space: nowrap; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #ECE6D8; color: var(--slate-soft); border: 1px solid var(--line-card);
}
.step-line { flex: 1; height: 2px; background: var(--line-card); border-radius: 2px; }
.step-item.is-active { color: var(--navy); }
.step-item.is-active .step-dot { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }
.step-item.is-done .step-dot { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.step-item.is-done { color: var(--navy); }

/* ---------- Form card ---------- */
.form-main { padding: 44px var(--pad-x) 72px; }
.form-card {
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line-card); border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 30px 70px -42px rgba(20,35,58,0.4);
}
.form-intro { margin-bottom: 30px; }
.form-intro h1 {
  font-family: 'DM Serif Display', serif; font-size: 34px; line-height: 1.12;
  color: var(--navy); margin: 14px 0 8px; font-weight: 400;
}
.form-intro p { font-size: 16px; color: var(--slate); line-height: 1.55; }

/* ---------- Field blocks ---------- */
.field-block { border: 0; padding: 0; margin: 0 0 32px; }
.field-block > legend {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 14px; padding: 0;
}
.field-hint { font-size: 14px; color: var(--slate); margin: -6px 0 14px; line-height: 1.5; }

.field { display: flex; flex-direction: column; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }

.name-row { display: grid; grid-template-columns: 1fr 240px; gap: 16px; }
.name-row.even { grid-template-columns: 1fr 1fr; }

input[type="text"], input[type="email"], select {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-card); border-radius: 9px;
  padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
input[type="text"]::placeholder, input[type="email"]::placeholder { color: #A9A294; }
input[type="text"]:focus, input[type="email"]:focus, select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,35,58,0.10);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2314233A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}

.name-preview { margin-top: 12px; font-size: 14px; color: var(--slate); }
.name-preview strong { color: var(--navy); }

/* ---------- Management choice cards ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line-card); border-radius: 11px; padding: 16px 18px;
  background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: #C9B98F; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #F7F4EC; box-shadow: inset 0 0 0 1px var(--navy); }
.radio-mark {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C3BAA8; flex-shrink: 0;
  margin-top: 2px; position: relative; transition: border-color .15s ease;
}
.choice:has(input:checked) .radio-mark { border-color: var(--navy); }
.choice:has(input:checked) .radio-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
}
.choice-title { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.choice-sub { font-size: 13px; color: var(--slate); line-height: 1.45; margin-top: 3px; }

/* ---------- People (members / managers) ---------- */
.person-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.person-input { flex: 1; }
.person-remove {
  width: 44px; height: 44px; flex-shrink: 0; border: 1.5px solid var(--line-card); border-radius: 9px;
  background: #fff; color: var(--slate-soft); font-size: 15px; cursor: pointer; line-height: 1;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.person-remove:hover { border-color: #D98A8A; color: #B4453E; background: #FCF3F2; }
.add-person {
  width: 100%; margin-top: 4px; background: none; border: 1.5px dashed #C9B98F; color: var(--navy);
  padding: 13px; border-radius: 9px; font-family: 'DM Sans', sans-serif; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.add-person:hover { border-color: var(--gold); background: #FBF7EE; }

/* ---------- Actions ---------- */
.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}

/* ---------- Required-by-state badge ---------- */
.req-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  background: #F3ECDC; color: var(--gold-ink); border: 1px solid #E5D8BE;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; padding: 6px 13px; border-radius: 999px;
}
.req-badge .req-ico { font-size: 14px; }
.lead-sm { font-size: 15px; color: var(--slate); line-height: 1.55; margin-top: 14px; }

/* ---------- Custom select (styled options) ---------- */
.cselect { position: relative; }
.cselect-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1.5px solid var(--line-card); border-radius: 9px; padding: 13px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cselect-trigger:focus, .cselect.open .cselect-trigger {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,35,58,0.10);
}
.cselect-caret { color: var(--navy); font-size: 12px; transition: transform .2s ease; }
.cselect.open .cselect-caret { transform: rotate(180deg); }
.cselect-list {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--line-card); border-radius: 10px; padding: 6px;
  box-shadow: 0 20px 44px -20px rgba(20,35,58,0.4); display: none;
}
.cselect.open .cselect-list { display: block; }
.cselect-option { padding: 11px 12px; border-radius: 7px; font-size: 15px; color: var(--ink); cursor: pointer; }
.cselect-option:hover { background: #F2EFE7; }
.cselect-option.is-selected { background: #F7F4EC; }
.cselect .rec { color: #2F6FEB; font-weight: 600; }
.cselect .cs-price {
  display: block; margin-top: 3px;
  font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 400; color: var(--slate-soft);
  letter-spacing: -0.01em;
}
.cselect .cs-red { color: #C0392B; font-weight: 500; }

/* ---------- "Just to be certain" modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(14,26,44,0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 16px; max-width: 480px; width: 100%; padding: 32px 32px 26px;
  position: relative; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.5);
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; font-size: 15px; color: var(--slate-soft); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--navy); }
.modal-title { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--navy); font-weight: 400; margin-bottom: 8px; padding-right: 24px; }
.modal-sub { font-size: 15px; color: var(--slate); margin-bottom: 18px; line-height: 1.5; }
.modal-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.modal-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.modal-list .mc { color: var(--green); flex-shrink: 0; font-weight: 700; }
.modal-price-compare {
  text-align: center; font-size: 14.5px; color: var(--navy); margin-bottom: 18px; line-height: 1.5;
}
.modal-price-compare strong { color: var(--gold-ink); }
.modal-price-compare em { font-style: normal; font-weight: 700; color: var(--green); }
.modal-primary { width: 100%; }
.modal-secondary {
  display: block; width: 100%; text-align: center; background: none; border: 0;
  color: var(--navy); font-weight: 600; font-size: 14.5px; padding: 14px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.modal-secondary:hover { color: var(--gold-ink); text-decoration: underline; }
.modal-foot { font-size: 12.5px; color: var(--slate-soft); text-align: center; line-height: 1.45; }

/* ---------- Step 3 — review & file ---------- */
.summary { border: 1px solid var(--line-card); border-radius: 12px; overflow: hidden; }
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-label { font-size: 12px; color: var(--slate-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 3px; white-space: nowrap; }
.summary-value { font-size: 15px; color: var(--navy); font-weight: 600; text-align: right; }
.summary-value .muted { display: block; font-weight: 400; color: var(--slate); font-size: 13.5px; margin-top: 2px; }
.summary-edit { font-size: 12.5px; color: #2F6FEB; text-decoration: none; font-weight: 600; margin-left: 10px; }
.summary-edit:hover { text-decoration: underline; }

.totals { background: #F7F4EC; border: 1px solid var(--line-card); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.total-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--slate); padding: 6px 0; }
.total-row .t-val { color: var(--navy); font-weight: 600; }
.total-row .t-was { text-decoration: line-through; color: #C0392B; font-weight: 400; margin-right: 7px; }
.total-row .t-now { color: var(--green); font-weight: 700; }
.total-row.grand { border-top: 1px solid var(--line-card); margin-top: 8px; padding-top: 14px; font-size: 18px; color: var(--navy); font-weight: 700; }
.total-row.grand .t-val { font-weight: 800; }
.totals-note { font-size: 12px; color: var(--slate-soft); line-height: 1.5; margin-top: 12px; }

.card-field-label { font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.stripe-badge { font-size: 12px; color: var(--slate-soft); display: flex; align-items: center; gap: 5px; font-weight: 500; }
#card-element.is-stripe { border: 1.5px solid var(--line-card); border-radius: 9px; padding: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
#card-element.is-stripe.focused { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,35,58,0.10); }
#card-errors { color: #C0392B; font-size: 13px; margin-top: 8px; min-height: 1em; }

.mock-card { display: flex; flex-direction: column; gap: 10px; }
.mock-card .mock-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mock-card input { font-family: 'DM Mono', monospace; }

.success-panel { text-align: center; padding: 22px 8px 8px; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: #E7F5EC; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 18px; }
.success-panel h1 { font-family: 'DM Serif Display', serif; font-size: 30px; color: var(--navy); font-weight: 400; margin-bottom: 10px; }
.success-panel p { font-size: 15.5px; color: var(--slate); line-height: 1.6; max-width: 460px; margin: 0 auto 24px; }

/* ---------- Placeholder (step 2) ---------- */
.placeholder-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: #F7F4EC; border: 1px solid var(--line-card); border-radius: 11px; padding: 20px 22px;
  margin-bottom: 8px;
}
.placeholder-note .pn-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}
.placeholder-note .pn-title { font-weight: 700; color: var(--navy); font-size: 15px; }
.placeholder-note .pn-sub { font-size: 14px; color: var(--slate); line-height: 1.5; margin-top: 3px; }

/* ---------- Field errors ---------- */
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #C0392B;
  font-weight: 500;
}
input.is-error, select.is-error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .form-card { padding: 28px 22px; }
  .name-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-intro h1 { font-size: 28px; }
  .steps { justify-content: center; gap: 8px; }
  .step-item { flex: 0 0 auto; gap: 0; }
  .step-item:last-child { flex: 0 0 auto; }
  .step-line { flex: 1 1 20px; min-width: 16px; max-width: 48px; }
  .step-label { display: none; }
}
