:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --soft: #fff7ed;
  --ink: #171717;
  --muted: #6f6b66;
  --line: #eee7dc;
  --brand: #ff8a00;
  --brand-dark: #d66f00;
  --brand-soft: #fff1db;
  --success: #0f7b4f;
  --success-bg: #ecfdf3;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --shadow: 0 24px 80px rgba(31, 20, 6, .08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 0, .10), transparent 34rem),
    linear-gradient(180deg, #fff, #fffaf4 100%);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; }
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}
.hero-card, .form-card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card { padding: 34px; margin-bottom: 22px; }
.hero-card.slim { padding: 30px; }
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.brand-logo { width: min(420px, 68vw); height: auto; display: block; }
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--brand-soft);
  color: #8a4b00;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.status-pill.secure { background: #effaf5; color: #087443; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 24px;
  align-items: stretch;
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.07em;
  max-width: 820px;
}
h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.045em; }
h3 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.04em; }
.hero-copy {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-row span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4d4742;
  font-size: 13px;
  font-weight: 600;
}
.summary-card {
  background: #fff8ee;
  border: 1px solid #ffe1b8;
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.summary-card h2 { font-size: 22px; margin-bottom: 16px; }
.summary-card ol { margin: 0; padding-left: 20px; color: #5f4b35; line-height: 1.9; font-weight: 500; }
.summary-watermark {
  position: absolute;
  width: 240px;
  right: -64px;
  bottom: -66px;
  opacity: .08;
}
.form-card { padding: 28px; }
.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.progress-wrap { min-width: 220px; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress-bar { height: 8px; background: #f3ede4; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress-bar span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 99px; transition: width .25s ease; }
.step { display: none; }
.step.is-active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.field-grid { display: grid; gap: 16px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.one { grid-template-columns: 1fr; }
label { display: grid; gap: 8px; color: #38322d; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 138, 0, .65);
  box-shadow: 0 0 0 4px rgba(255, 138, 0, .12);
}
.question-list { display: grid; gap: 16px; }
.question-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fffdf9);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.question-title { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.option-grid { display: grid; gap: 10px; }
.option-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: all .18s ease;
  background: #fff;
}
.option-card:hover { transform: translateY(-1px); border-color: #ffd19a; }
.option-card input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.muted, .microcopy { color: var(--muted); line-height: 1.7; }
.microcopy { font-size: 12px; margin: 10px 0 0; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fffdf9;
}
.check-row input { width: auto; margin-top: 4px; accent-color: var(--brand); }
.turnstile-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #ffd19a;
  background: #fffaf2;
  border-radius: var(--radius-md);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 14px 26px rgba(255, 138, 0, .28); }
.btn.secondary { background: #fff; color: #3c342f; border: 1px solid var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.alert {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 18px;
  line-height: 1.65;
  font-size: 14px;
  font-weight: 600;
}
.alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #ffd1cc; }
.alert.success { background: var(--success-bg); color: var(--success); border: 1px solid #bff0d4; }
.admin-shell { width: min(1280px, calc(100% - 32px)); }
.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.field-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.field-inline label { min-width: 220px; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 920px; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
.admin-table th { background: #fff8ee; color: #7a4b11; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.admin-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: #864a04; font-size: 11px; font-weight: 800; margin: 2px; }
.candidate-name { font-weight: 800; font-size: 14px; }
.candidate-sub { color: var(--muted); margin-top: 5px; line-height: 1.6; }
.link-list { display: grid; gap: 4px; }
.link-list a { color: var(--brand-dark); font-weight: 700; }
.status-select { min-width: 150px; }
@media (max-width: 860px) {
  .hero-grid, .field-grid.two { grid-template-columns: 1fr; }
  .brand-row, .form-header, .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .progress-wrap, .field-inline label { width: 100%; min-width: 0; }
  .form-actions { justify-content: stretch; }
  .btn { flex: 1; }
  h1 { letter-spacing: -.045em; }
}
@media (max-width: 520px) {
  .page-shell { width: min(100% - 18px, 1120px); padding-top: 12px; }
  .hero-card, .form-card { border-radius: 22px; padding: 20px; }
  .brand-logo { width: 100%; }
  .form-actions { flex-direction: column; }
}
