* { box-sizing: border-box; }

:root {
  --primary: #0b6b5d;
  --primary-dark: #075248;
  --mint: #e8f6f2;
  --text: #17312d;
  --muted: #6c7e7a;
  --border: #dbe6e3;
  --bg: #f5f8f7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 55, 48, .08);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.topbar {
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary); color: white; font-weight: 800; font-size: 21px;
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.brand-subtitle { font-size: 11px; color: var(--muted); }
.topbar-help { color: var(--muted); font-size: 13px; }

.page { width: min(1040px, 92%); margin: 0 auto; padding: 48px 0 30px; }

.hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 35px;
}
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.hero h1 { margin: 10px 0 12px; font-size: clamp(38px, 5vw, 58px); line-height: 1.03; letter-spacing: -2.5px; }
.hero h1 span { color: var(--primary); }
.hero p { margin: 0; color: var(--muted); max-width: 570px; line-height: 1.6; }
.hero-card {
  min-width: 280px; max-width: 310px; padding: 18px; background: var(--mint);
  border: 1px solid #cde9e2; border-radius: 16px; display: flex; gap: 12px; align-items: center;
}
.shield { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 800; }
.hero-card strong, .hero-card small { display: block; }
.hero-card small { margin-top: 3px; color: var(--muted); line-height: 1.4; }

.steps {
  display: flex; align-items: center; margin-bottom: 18px; padding: 0 8px;
}
.step { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.step span {
  width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: white; font-size: 12px; font-weight: 700;
}
.step.active { color: var(--text); }
.step.active span { color: white; background: var(--primary); border-color: var(--primary); }
.step b, .step small { display: block; }
.step b { font-size: 12px; }
.step small { font-size: 10px; margin-top: 2px; color: var(--muted); }
.step-line { height: 1px; background: var(--border); flex: 1; margin: 0 16px; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: 34px;
}
.section-heading { display: flex; gap: 14px; align-items: flex-start; }
.section-number { color: var(--primary); font-size: 12px; font-weight: 900; padding-top: 5px; }
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading p, .member-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 18px; margin: 25px 0 5px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
input, select {
  width: 100%; height: 47px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 13px; font: inherit; color: var(--text); background: white; outline: none;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,107,93,.09); }
.section-divider { height: 1px; background: var(--border); margin: 30px 0; }
.member-section { margin-top: 25px; padding: 22px; background: #f8fbfa; border: 1px solid var(--border); border-radius: 16px; }
.member-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.member-heading h3 { margin: 0; font-size: 15px; }
.member-row { display: grid; grid-template-columns: 1fr 1fr 42px; gap: 12px; margin-top: 14px; align-items: end; }
.remove-btn { height: 42px; border: 1px solid #e5c9c9; background: white; color: #a24d4d; border-radius: 9px; cursor: pointer; }
.primary-btn, .secondary-btn {
  border: 0; border-radius: 10px; padding: 0 18px; height: 46px; font-weight: 800; cursor: pointer; font-size: 13px;
}
.primary-btn { background: var(--primary); color: white; display: inline-flex; align-items: center; gap: 16px; }
.primary-btn:hover { background: var(--primary-dark); }
.arrow { font-size: 18px; }
.secondary-btn { background: white; border: 1px solid var(--border); color: var(--text); }
.secondary-btn:hover { border-color: var(--primary); color: var(--primary); }
.secondary-btn.large { margin-top: 24px; }
.form-footer { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.privacy-note { font-size: 11px; color: var(--muted); }
.message { margin-top: 18px; padding: 13px 15px; border-radius: 10px; font-size: 13px; }
.message.error { background: #fff1f1; color: #9d3f3f; border: 1px solid #f0d0d0; }
.message.success { background: var(--mint); color: var(--primary-dark); border: 1px solid #cde9e2; }

.status-card, .result-card { margin-top: 20px; text-align: center; }
.loader { width: 42px; height: 42px; margin: 3px auto 20px; border: 4px solid #d9ebe7; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-card h2, .result-card h2 { margin: 0; }
.status-card p, .result-subtitle { color: var(--muted); font-size: 13px; }
.progress-list { width: min(420px, 100%); margin: 25px auto 0; text-align: left; }
.progress-list div { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.progress-list .processing { color: var(--primary); font-weight: 700; }
.success-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--primary); font-size: 28px; font-weight: 900; }
.premium-box { margin: 25px auto; width: min(390px, 100%); padding: 23px; background: var(--mint); border-radius: 16px; }
.premium-box span, .premium-box small { display: block; color: var(--muted); font-size: 11px; }
.premium-box strong { display: block; font-size: 38px; margin: 4px 0; letter-spacing: -1px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-align: left; }
.result-grid > div { padding: 15px; border-bottom: 1px solid var(--border); }
.result-grid > div:nth-child(odd) { border-right: 1px solid var(--border); }
.result-grid span, .result-grid strong { display: block; }
.result-grid span { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.result-grid strong { font-size: 13px; word-break: break-word; }
.status-pill { color: var(--primary); }
.hidden { display: none !important; }
footer { width: min(1040px, 92%); margin: 10px auto 35px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }

@media (max-width: 720px) {
  .topbar { padding: 0 4%; }
  .topbar-help { display: none; }
  .page { padding-top: 30px; }
  .hero { display: block; }
  .hero-card { margin-top: 20px; max-width: none; }
  .grid.two, .result-grid { grid-template-columns: 1fr; }
  .result-grid > div:nth-child(odd) { border-right: 0; }
  .member-row { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .primary-btn { justify-content: center; }
  .steps { display: none; }
  .card { padding: 22px; }
}
