/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  margin: 0;
  padding: 0;
  color: #0f172a;
}

.container {
  max-width: 560px;
  margin: 24px auto 40px;
  padding: 16px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
  padding: 28px 22px 22px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero h1 {
  margin: 10px 0 6px;
  text-align: left;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 15px;
  line-height: 1.4;
  color: #c7d2fe;
  margin: 0;
}

.badge {
  display: inline-block;
  background: #22c55e;
  color: #022c22;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.6px;
}

.rules {
  margin-top: 14px;
  border-left: 3px solid #22c55e;
  padding-left: 12px;
}

.rule { font-size: 13px; margin-bottom: 6px; }

.microcopy {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.9;
}

/* ---------- Progress ---------- */
.progress-wrap {
  margin-top: 16px;
  height: 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.25s ease;
}

/* ---------- Cards ---------- */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-title {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* ---------- Form ---------- */
label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
}

select, textarea, .text-input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 15px;
  background: #ffffff;
}

textarea { resize: vertical; min-height: 90px; }

/* ---------- Radios ---------- */
.radio-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.radio-pill { flex: 1; cursor: pointer; }
.radio-pill input { display: none; }

.radio-pill span {
  display: block;
  text-align: center;
  padding: 11px 0;
  border-radius: 999px;
  border: 2px solid #cbd5f5;
  font-weight: 800;
  background: #f8fafc;
}

.radio-pill input:checked + span {
  border-color: #22c55e;
  background: #dcfce7;
}

/* ---------- Button ---------- */
button {
  margin-top: 22px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #022c22;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
}

button:hover { filter: brightness(0.95); }

.fineprint {
  margin-top: 12px;
  font-size: 11px;
  opacity: 0.7;
  text-align: center;
}

/* ---------- Confirmation ---------- */
.confirmation {
  margin-top: 18px;
  padding: 12px;
  background: #dcfce7;
  border-radius: 10px;
  color: #14532d;
  font-weight: 800;
  text-align: center;
}

/* ---------- Live Impact ---------- */
.live {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
}

.live-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.live-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.live-note {
  font-size: 11px;
  opacity: 0.75;
}

.live-updated {
  font-size: 11px;
  opacity: 0.9;
  color: #a5b4fc;
}

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

.live-card {
  background: rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.live-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.live-label {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.8;
}

.live-error {
  margin-top: 12px;
  font-size: 12px;
  color: #fecaca;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  padding: 10px 12px;
  border-radius: 10px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  font-size: 12px;
  opacity: 0.75;
  color: #e5e7eb;
  margin-top: 16px;
}

/* ---------- Utilities ---------- */
.hidden { display: none; }
