/* HACRI-E — Survey App Styles (Modernized Premium Edition)
   Palette: Navy-Slate, Warm Gold/Amber, Cyan-Teal Accent */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --teal: #06b6d4;
  --teal-hover: #0891b2;
  --lgray: #f8fafc;
  --dgray: #cbd5e1;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --err: #ef4444;
  --ok: #10b981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --maxw: 920px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--lgray);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background-image: radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.04) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--teal-hover);
}

/* ── Header / Topbar ──────────────────────────────────────────────────────── */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  background: linear-gradient(135deg, var(--gold) 0%, #fbbf24 100%);
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.brand-text strong {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--navy);
}

.brand-text small {
  display: block;
  color: var(--teal-hover);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

.topnav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.topnav a:hover {
  color: var(--navy);
  background: rgba(15, 23, 42, 0.05);
}

.topnav .who {
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(15, 23, 42, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.topnav .who span {
  color: var(--teal-hover);
  font-weight: 600;
}

.topnav .muted {
  color: var(--text-muted);
  font-size: 13px;
}
.topnav .muted:hover {
  color: #ef4444;
}

/* ── Content Container ────────────────────────────────────────────────────── */
.content {
  max-width: var(--maxw);
  margin: 36px auto;
  padding: 0 20px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 36px 42px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Add a subtle top border gradient accent to cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%);
}

.card h1 {
  margin-top: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card h2 {
  margin-top: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px 0;
}

.lede {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 6px;
  margin-bottom: 20px;
}

.footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Wizard Navigation & Progress Tracker ────────────────────────────────── */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  padding: 0 12px;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 12px;
  right: 12px;
  height: 4px;
  background: var(--border);
  z-index: 1;
  border-radius: 2px;
}

.wizard-progress-bar {
  position: absolute;
  top: 18px;
  left: 12px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%);
  z-index: 2;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.wizard-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}

.wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.15);
}

.wizard-step.completed .wizard-step-circle {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(6, 182, 212, 0.2);
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  transition: color 0.3s ease;
  text-align: center;
  letter-spacing: 0.02em;
}

.wizard-step.active .wizard-step-label {
  color: var(--navy);
  font-weight: 700;
}

.wizard-step.completed .wizard-step-label {
  color: var(--teal);
}

.wizard-section {
  display: none;
}

.wizard-section.active {
  display: block;
  animation: wizardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
}

/* ── Forms, Inputs, Dropdowns ─────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 20px;
  max-width: 480px;
  margin: 16px 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-light);
}

.field input,
.q-body select,
.q-body input[type="text"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background-color: #ffffff;
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.field input:focus,
.q-body select:focus,
.q-body input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12), inset 0 1px 2px rgba(0,0,0,0.02);
  background-color: #ffffff;
}

/* Dropdown styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 9l3 3 3-3' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

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

.actions {
  margin-top: 16px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--navy-light);
  border: 1.5px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: var(--shadow-sm);
  gap: 8px;
}

.btn:hover {
  background: var(--lgray);
  border-color: var(--dgray);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, #fbbf24 100%);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
  border-color: var(--gold-hover);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.btn.accent {
  background: linear-gradient(135deg, var(--teal) 0%, #22d3ee 100%);
  color: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.btn.accent:hover {
  background: linear-gradient(135deg, var(--teal-hover) 0%, var(--teal) 100%);
  border-color: var(--teal-hover);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Survey Fieldset Sections ─────────────────────────────────────────────── */
.survey {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  background: #ffffff;
  margin: 0;
}

.section legend {
  padding: 0 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.subhead {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-hover);
  margin: 28px 0 12px 0;
  border-bottom: 2px solid rgba(245, 158, 11, 0.15);
  padding-bottom: 4px;
}

.question {
  padding: 16px 0;
  border-bottom: 1.5px dashed var(--border);
  transition: all 0.3s ease;
}

.question:last-child {
  border-bottom: 0;
}

.q-label {
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 12px 0;
  color: var(--navy-light);
  line-height: 1.5;
}

.q-label strong {
  color: var(--navy);
  font-weight: 700;
}

/* ── Likert Options (Enriched Selection Experience) ───────────────────────── */
.likert-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}

/* Hide default radio elements, but keep accessible */
.likert-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.likert-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 80px;
}

.likert-opt:hover {
  background: var(--lgray);
  border-color: var(--dgray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.likert-opt:active {
  transform: translateY(0);
}

.likert-opt .num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.likert-opt .lbl {
  color: var(--text-muted);
  line-height: 1.25;
  transition: color 0.2s ease;
}

/* Selected state styling (has checked input) */
.likert-opt:has(input:checked) {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  transform: scale(1.02);
}

.likert-opt:has(input:checked) .num {
  color: #b45309;
}

.likert-opt:has(input:checked) .lbl {
  color: #78350f;
  font-weight: 600;
}

/* Focus indicators for accessibility */
.likert-opt:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
  border-color: var(--teal);
}

/* ── Checkboxes ───────────────────────────────────────────────────────────── */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.check-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.check-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* Custom checkbox graphic marker */
.check-opt::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--dgray);
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-opt:hover {
  background: var(--lgray);
  border-color: var(--dgray);
}

.check-opt:has(input:checked) {
  border-color: var(--teal);
  background: rgba(6, 182, 212, 0.05);
}

.check-opt:has(input:checked)::before {
  background: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 10l3 3 5-6' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

.check-opt:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
  border-color: var(--teal);
}

/* Disabled option style for exceeding checkbox limits */
.check-opt.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Error Pulse Animations ───────────────────────────────────────────────── */
@keyframes pulseError {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    border-color: #ef4444;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    border-color: var(--border);
  }
}

.error-pulse {
  animation: pulseError 0.8s ease-in-out;
  border-color: #ef4444 !important;
  border-radius: var(--radius-sm);
}

/* ── Callouts ─────────────────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.callout::before {
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.callout.ok {
  background: #ecfdf5;
  color: var(--ok);
  border-color: #a7f3d0;
}
.callout.ok::before {
  content: '✓';
}

.callout.err {
  background: #fef2f2;
  color: var(--err);
  border-color: #fecaca;
}
.callout.err::before {
  content: '⚠';
}

.callout ul {
  margin: 0;
  padding-left: 20px;
}

/* ── Results scorecards ───────────────────────────────────────────────────── */
.scorecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.scorecard {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scorecard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.scorecard.literacy::after {
  background: var(--teal);
}

.scorecard.readiness::after {
  background: var(--gold);
}

.scorecard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scorecard h3 {
  margin: 0 0 12px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scorecard .big {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.scorecard .sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 4px;
}

.scorecard .arrow {
  font-size: 16px;
  color: var(--dgray);
  margin: 6px 0;
}

.scorecard .delta {
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lgray);
}

.scorecard .delta.up {
  color: var(--ok);
  background: rgba(16, 185, 129, 0.1);
}

.scorecard .delta.down {
  color: var(--err);
  background: rgba(239, 68, 68, 0.1);
}

.quadrants {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 20px 0;
}

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}

.chip-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

.chip-val {
  color: var(--text);
  font-weight: 600;
}

.chip-band {
  font-size: 12px;
}

.movement {
  background: #fffbeb;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin: 16px 0;
  color: #78350f;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.hist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hist-grid > div h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 8px;
}

.chart {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw);
  margin: 24px auto 48px auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .scorecards {
    grid-template-columns: 1fr;
  }
  .hist-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 0 8px;
    margin: 16px auto;
  }
  .sub-section-card {
    padding: 16px 10px;
    margin-bottom: 16px;
  }
  .subhead {
    font-size: 1.05rem;
    padding: 8px 12px;
    margin-bottom: 1.25rem;
    display: flex;
  }
  .likert-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .likert-opt {
    padding: 6px 2px;
    min-height: 60px;
  }
  .likert-opt .num {
    font-size: 13px;
  }
  .likert-opt .lbl {
    font-size: 7.5px;
    line-height: 1.1;
    word-break: break-word;
  }
  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .brand-text small {
    font-size: 9px;
  }
  .topnav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
  }
  .card {
    padding: 16px 12px;
  }
  .section {
    padding: 12px 0px;
  }
  .wizard-progress {
    justify-content: center;
    margin-bottom: 24px;
    padding: 0;
  }
  .wizard-progress::before, .wizard-progress-bar {
    display: none;
  }
  .wizard-step {
    display: none;
  }
  .wizard-step.active {
    display: flex;
    pointer-events: none;
  }
  .wizard-step.active .wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-width: 2px;
    border-color: var(--gold);
    color: var(--gold);
    transform: none;
  }
  .wizard-step.active .wizard-step-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
  }
  .wizard-buttons {
    flex-direction: column-reverse;
    gap: 10px;
    padding-top: 16px;
    margin-top: 24px;
  }
  .wizard-buttons .btn {
    width: 100%;
  }
}

/* Subsection dividers, logo, and subheadings */
.logo-img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.subhead {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 1.75rem;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.07) 0%, rgba(245, 158, 11, 0.07) 100%);
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.02);
}

/* Subsection cards with grid background */
.sub-section-card {
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sub-divider-thick {
  border: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
  margin: 3.5rem 0;
  border-radius: 3px;
  opacity: 0.85;
}

/* Asterisk for required inputs */
.question:has(input[required]) .q-label::after,
.question:has(select[required]) .q-label::after,
.question:has(input[type="checkbox"]) .q-label::after {
  content: " *";
  color: var(--err);
  font-weight: bold;
  margin-left: 2px;
}