/* ── Field label ────────────────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 16px;
}
.field-label:first-child { margin-top: 0; }

/* ── Text inputs & textarea ─────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 32, 64, 0.08);
}

textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder { color: #b0b7c3; }

/* ── Checkbox & radio ───────────────────────────────────────────────────────── */
.check-group,
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 8px;
}

.check-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.check-item input[type="checkbox"],
.radio-item input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  /* Override base input styles */
  padding: 0;
  border: none;
  box-shadow: none;
}

/* ── Sub-label (group header within a section) ──────────────────────────────── */
.sub-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 2px;
}

/* ── Two-column field pair ──────────────────────────────────────────────────── */
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */
.btn-submit {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 28px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.btn-submit:hover  { background: var(--navy-light); }
.btn-submit:active { transform: scale(0.98); }

/* ── Progress bar ───────────────────────────────────────────────────────────── */
.progress-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  padding: 10px 0;
}

.progress-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  border-radius: 99px;
  transition: width .35s ease;
}

.progress-count {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* ── Success message ────────────────────────────────────────────────────────── */
.success-msg {
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}

/* ── Section number badge ───────────────────────────────────────────────────── */
.sec-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .field-pair   { grid-template-columns: 1fr; }
  .check-grid   { grid-template-columns: 1fr; }
}
