:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #162033;
  --muted: #667085;
  --line: #d7dde5;
  --brand: #151b2d;
  --brand-2: #27324d;
  --accent: #b48a3c;
  --soft: #f8fafc;
  --danger: #b42318;
  --success: #027a48;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #eef2f7 0, #f7f8fb 38%, #eef1f5 100%);
  line-height: 1.45;
}
.page-shell { max-width: 1180px; margin: 0 auto; padding: 28px 18px 50px; }
.page-shell.narrow { max-width: 780px; }
.hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #344054 100%);
  color: white;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  margin-bottom: 22px;
}
.compact-hero { margin-top: 40px; }
.brand-row { display: flex; align-items: center; gap: 20px; }
.logo {
  width: 100px; height: auto; background: #fff; border-radius: 14px; padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 0.14em; color: #d7dde5; margin-bottom: 4px; }
h1 { margin: 0; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.subtitle { margin: 12px 0 0; color: #e8edf3; max-width: 780px; font-size: 17px; }
.hero-card {
  margin-top: 22px; padding: 15px 18px; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px; background: rgba(255,255,255,0.08); color: #f8fafc;
}
.progress-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 248, 0.92); backdrop-filter: blur(8px);
  padding: 12px 0 10px; margin-bottom: 14px;
}
.progress-label { display:flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.progress { height: 8px; background: #e6eaf0; border-radius: 100px; overflow: hidden; }
.progress div { height: 100%; width: 14%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 100px; transition: width .25s ease; }
.section-card {
  background: var(--card);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 34px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}
h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 31px); letter-spacing: -0.02em; }
h3 { margin: 26px 0 8px; }
.section-note { color: var(--muted); margin: 0 0 22px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.label-title { font-weight: 800; margin-bottom: 10px; }
input, select, textarea {
  width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 13px; font: inherit; color: var(--ink); background: #fff; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180,138,60,.14); }
.field-block { margin-bottom: 18px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-check { margin: 0; font-weight: 600; font-size: 13px; }
.pill-check input { width: auto; margin: 0; position: absolute; opacity: 0; }
.pill-check span {
  display: inline-flex; align-items: center; min-height: 39px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--soft); color: #344054; cursor: pointer; transition: all .16s ease;
}
.pill-check input:checked + span { background: #111827; color: #fff; border-color: #111827; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: #fffbeb; border: 1px solid #f1d38a; padding: 14px; border-radius: 16px; font-weight: 600; }
.consent input { width: auto; margin: 3px 0 0; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin: 16px 0 22px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th { text-align: left; background: #111827; color: #fff; padding: 13px 12px; font-size: 13px; }
td { border-top: 1px solid #eef1f5; padding: 10px 12px; vertical-align: middle; font-size: 13px; }
tr:nth-child(even) td { background: #fbfcfe; }
td:first-child { font-weight: 700; min-width: 240px; }
.matrix input, .matrix select { margin-top: 0; min-width: 105px; padding: 10px; border-radius: 10px; }
.matrix.compact input, .matrix.compact select { min-width: 90px; }
.step { display: none; }
.step.active { display: block; animation: fade .18s ease; }
@keyframes fade { from {opacity: .6; transform: translateY(4px);} to {opacity: 1; transform: translateY(0);} }
.nav-actions { display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: 0; background: rgba(244,246,248,.92); padding: 14px 0; backdrop-filter: blur(8px); }
button, .button-link {
  border: 0; border-radius: 14px; padding: 13px 22px; font-weight: 800; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: 0 10px 25px rgba(17, 24, 39, .16);
}
button.secondary { background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
button.submit { background: linear-gradient(135deg, var(--brand), var(--accent)); }
button:disabled { opacity: .45; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; opacity: 0; }
footer { text-align: center; color: var(--muted); margin: 22px 0 0; font-size: 13px; }
.success-card { text-align: center; padding: 45px 30px; }
.success-card h2 { color: var(--success); }
.ref { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
a { color: var(--brand); font-weight: 800; }
@media (max-width: 820px) {
  .page-shell { padding: 14px 10px 36px; }
  .hero { padding: 20px; border-radius: 20px; }
  .brand-row { align-items: flex-start; gap: 14px; }
  .logo { width: 76px; border-radius: 12px; padding: 8px; }
  .grid.two, .grid.four { grid-template-columns: 1fr; }
  .section-card { border-radius: 19px; }
  .nav-actions { justify-content: stretch; }
  .nav-actions button { flex: 1; padding: 13px 10px; }
  th, td { padding: 9px; }
  table { min-width: 780px; }
}

/* Logo cleanup: remove white patch/tile behind logo */
.logo {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  width: 100px !important;
  height: auto !important;
  object-fit: contain !important;
}
