:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --blue: #2563eb;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --orange: #f97316;
  --orange-100: #ffedd5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --green: #16a34a;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  padding: 20px;
  background: #ffffff;
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-right {
  text-align: right;
}
.bir-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.bir-text {
  line-height: 1.1;
}
.bir-text-main {
  font-size: 12px;
  font-weight: 600;
}
.bir-text-sub {
  font-size: 11px;
  color: var(--muted);
}
.brand {
  font-size: 20px;
  font-weight: 600;
}
.subtext {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
}
.progress {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.steps .step[data-active="true"] {
  color: var(--text);
  font-weight: 600;
}
.bar {
  height: 6px;
  background: var(--gray-300);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width .25s ease;
}
.count {
  font-size: 12px;
  color: var(--muted);
}
.card {
  background: var(--card);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.hidden { display: none }
.q {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.q-title {
  font-weight: 600;
  font-size: 14px;
}
.required {
  color: var(--orange);
}
.hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices-multi .inline {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.choice {
  appearance: none;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1;
  min-width: 120px;
  text-align: center;
  cursor: pointer;
}
.choice[data-selected="true"] {
  border-color: var(--blue);
  background: var(--blue-100);
}
.choice:active { transform: scale(0.98) }
.other-input, .text-input {
  flex: 1;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.primary {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
}
.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
}
.thanks-title {
  font-size: 18px;
  font-weight: 600;
}
.thanks-sub {
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 10px;
}
.json {
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
  font-size: 13px;
}
.links {
  margin-top: 12px;
}
.admin-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.assurance-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.privacy-text {
  margin: 4px 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.privacy-link {
  color: var(--blue);
}
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.privacy-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--orange);
}
@media (min-width: 640px) {
  .choice { min-width: 140px }
}
