:root {
  --blue: #0b5d8f;
  --blue-dark: #084466;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --border: #d9e2ec;
  --yes: #e8f7ee;
  --no: #fff1f0;
  --na: #f6f7f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.header {
  background: linear-gradient(135deg, var(--blue), #2b8bc0);
  color: #fff;
  padding: 28px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.header h1 { margin: 0 0 8px; font-size: 30px; }
.header p { margin: 0; opacity: .96; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  margin-bottom: 18px;
}

.progress {
  height: 10px;
  background: #e7eef7;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.step-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media(max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

input[type="email"], input[type="text"], select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
}

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

.question {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}

.question:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.subquestion-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.subquestion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.subquestion-title {
  font-weight: 700;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}

.radio-chip input {
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}

.note {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 10px;
}

.nav {
  position: sticky;
  bottom: 0;
  background: rgba(244,247,251,.96);
  padding: 14px 0 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  background: #e7eef7;
  color: var(--blue-dark);
}

.consent-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
}

.consent-row input {
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.switchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.switchbar label {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
}

.switchbar input {
  width: auto;
  margin-right: 8px;
}

@media(max-width: 720px) {
  .subquestion {
    grid-template-columns: 1fr;
  }

  .radio-group {
    justify-content: flex-start;
  }
}