*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F0F4FB;
  min-height: 100vh;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* ── Shared ── */
.screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }

/* ── Start screen ── */
.start-screen {
  background: linear-gradient(145deg, #EBF1FE 0%, #F5F8FF 55%, #ECF2FF 100%);
  justify-content: center;
  padding: 32px 20px;
}
.start-card {
  background: #fff;
  border-radius: 24px;
  padding: 52px 48px 44px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(28,99,237,.06), 0 8px 32px rgba(28,99,237,.10), 0 2px 8px rgba(0,0,0,.04);
}
.logo-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.event-badge {
  display: inline-block;
  background: #EEF4FF; color: #1C63ED;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 22px;
}
.start-heading {
  font-size: 32px; font-weight: 800; line-height: 1.18;
  color: #0D1B3E; margin-bottom: 14px; letter-spacing: -.02em;
}
.start-sub { font-size: 15px; color: #6B7280; line-height: 1.65; margin-bottom: 32px; max-width: 360px; margin-left: auto; margin-right: auto; }
.start-note { margin-top: 14px; font-size: 12px; color: #9CA3AF; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1C63ED; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px; padding: 16px 32px; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 2px 10px rgba(28,99,237,.28); letter-spacing: -.01em;
}
.btn-primary:hover { background: #1552CC; box-shadow: 0 4px 18px rgba(28,99,237,.36); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-start { font-size: 17px; padding: 18px 40px; border-radius: 14px; }

/* ── Question / context screens ── */
.question-screen { background: #F0F4FB; justify-content: flex-start; }

.q-header {
  width: 100%; background: #fff;
  border-bottom: 1px solid #E9EEFB;
  padding: 14px 32px; display: flex; align-items: center; flex-shrink: 0;
}
.question-wrap {
  width: 100%; max-width: 680px;
  padding: 32px 20px 48px;
  margin: 0 auto;
}

/* Progress bar */
.progress-area { margin-bottom: 32px; }
.progress-track { position: relative; height: 4px; background: #DDE5F7; border-radius: 4px; margin-top: 28px; }
.progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: #1C63ED; border-radius: 4px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.progress-dot {
  position: absolute; width: 20px; height: 20px;
  background: #1C63ED; border-radius: 50%;
  top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(28,99,237,.14);
  transition: left .35s cubic-bezier(.4,0,.2,1);
}
.progress-label {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 700; color: #1C63ED; white-space: nowrap;
}

/* Category badge */
.category-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 12px;
}

/* Question text */
.question-text { font-size: 24px; font-weight: 700; line-height: 1.35; color: #0D1B3E; margin-bottom: 24px; letter-spacing: -.02em; }

/* Options */
.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.option-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 62px; padding: 14px 18px;
  background: #fff; border: 2px solid #E3EBFF; border-radius: 14px;
  cursor: pointer; text-align: left;
  font-family: inherit; font-size: 15px; color: #374151;
  transition: border-color .13s, background .13s, color .13s, box-shadow .13s;
  box-shadow: 0 1px 3px rgba(28,99,237,.04);
}
.option-btn:hover { border-color: #1C63ED; background: #F5F8FF; box-shadow: 0 2px 8px rgba(28,99,237,.10); }
.option-btn:hover .option-letter { background: #1C63ED; color: #fff; }
.option-btn.selected { border-color: #1C63ED; background: #1C63ED; color: #fff; box-shadow: 0 4px 16px rgba(28,99,237,.28); }
.option-letter {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #EEF3FF; color: #1C63ED;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s, color .13s;
}
.option-btn.selected .option-letter { background: rgba(255,255,255,.22); color: #fff; }
.option-text { flex: 1; line-height: 1.4; }
.option-check { flex-shrink: 0; opacity: 0; color: #fff; transition: opacity .13s; }
.option-btn.selected .option-check { opacity: 1; }

/* Nav row */
.question-nav { display: flex; align-items: center; justify-content: space-between; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: #9CA3AF;
  font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; padding: 10px 0;
  transition: color .13s;
}
.btn-back:hover { color: #1C63ED; }
.btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  background: #D1D9E6; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px; padding: 14px 28px; cursor: not-allowed;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-next.active { background: #1C63ED; cursor: pointer; box-shadow: 0 2px 10px rgba(28,99,237,.3); }
.btn-next.active:hover { background: #1552CC; transform: translateY(-1px); }
.btn-next.active:active { transform: translateY(0); }

/* ── Context slide ── */
.context-intro { margin-bottom: 24px; }
.context-sub { font-size: 14px; color: #9CA3AF; margin-top: 6px; }
.context-form { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.context-row { display: flex; gap: 14px; }
.context-field { flex: 1; }
.context-field-full { width: 100%; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 7px; }
.req { color: #EF4444; }
.num-input {
  width: 100%; padding: 13px 14px;
  border: 2px solid #E3EBFF; border-radius: 10px;
  font-family: inherit; font-size: 16px; color: #111827;
  outline: none; transition: border-color .15s, box-shadow .15s;
  background: #FAFBFF;
}
.num-input:focus { border-color: #1C63ED; box-shadow: 0 0 0 3px rgba(28,99,237,.10); }
.num-input::placeholder { color: #B0BAD0; }
.patients-options { display: flex; flex-wrap: wrap; gap: 10px; }
.patient-opt {
  padding: 11px 18px; border: 2px solid #E3EBFF; border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 14px; font-weight: 500; color: #374151;
  cursor: pointer; transition: border-color .13s, background .13s, color .13s;
}
.patient-opt:hover { border-color: #1C63ED; background: #F5F8FF; }
.patient-opt.selected { border-color: #1C63ED; background: #1C63ED; color: #fff; }

/* ── Results screen ── */
.results-screen { background: #F0F4FB; justify-content: flex-start; }
.results-wrap { width: 100%; max-width: 720px; padding: 28px 20px 60px; margin: 0 auto; }

.overall-card {
  background: #fff; border-radius: 20px; padding: 32px 32px 28px;
  text-align: center; margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(28,99,237,.06), 0 4px 20px rgba(28,99,237,.08);
}
.overall-label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #9CA3AF; margin-bottom: 6px; }
.overall-score { font-size: 56px; font-weight: 800; color: #0D1B3E; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.band-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 100px; margin-bottom: 12px; }
.overall-peer { font-size: 14px; color: #6B7280; line-height: 1.5; }
.peer-loading { color: #B0BAD0; font-style: italic; }

.gauges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gauge-card {
  background: #fff; border-radius: 16px; padding: 22px 16px 20px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(28,99,237,.06), 0 2px 12px rgba(28,99,237,.06);
  display: flex; flex-direction: column; align-items: center;
}
.gauge-svg { display: flex; justify-content: center; margin-bottom: 10px; }
.gauge-name { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.gauge-peer { font-size: 11px; color: #9CA3AF; line-height: 1.45; max-width: 150px; }
.gauge-peer strong { color: #374151; }

/* Contact form */
.contact-card {
  background: #fff; border-radius: 20px; padding: 32px;
  box-shadow: 0 0 0 1px rgba(28,99,237,.06), 0 4px 20px rgba(28,99,237,.08);
}
.contact-heading { font-size: 18px; font-weight: 700; color: #0D1B3E; margin-bottom: 6px; letter-spacing: -.01em; }
.contact-sub { font-size: 14px; color: #6B7280; line-height: 1.55; margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; }
.form-field { flex: 1; display: flex; flex-direction: column; }
.field {
  width: 100%; padding: 13px 15px;
  border: 2px solid #E3EBFF; border-radius: 10px;
  font-family: inherit; font-size: 15px; color: #111827;
  outline: none; transition: border-color .15s, box-shadow .15s; background: #FAFBFF;
}
.field:focus { border-color: #1C63ED; box-shadow: 0 0 0 3px rgba(28,99,237,.10); }
.field::placeholder { color: #B0BAD0; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #6B7280; line-height: 1.5; cursor: pointer; }
.consent-check { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; accent-color: #1C63ED; cursor: pointer; }
.form-error { font-size: 13px; color: #EF4444; padding: 10px 14px; background: #FEF2F2; border-radius: 8px; }
.btn-submit { width: 100%; justify-content: center; padding: 16px; font-size: 16px; border-radius: 10px; margin-top: 4px; }

/* ── Confirmation screen ── */
.confirm-card { max-width: 480px; }
.confirm-icon {
  width: 64px; height: 64px; background: #DCFCE7; color: #16A34A;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.confirm-heading { font-size: 28px; font-weight: 800; color: #0D1B3E; margin-bottom: 12px; letter-spacing: -.02em; }
.confirm-note { font-size: 14px; color: #6B7280; margin-top: 16px; margin-bottom: 16px; }
.confirm-gift {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px;
  padding: 14px 20px; font-size: 15px; font-weight: 600; color: #92400E;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .start-heading { font-size: 26px; }
  .question-text { font-size: 20px; }
  .option-btn { font-size: 14px; min-height: 56px; }
  .context-row { flex-direction: column; gap: 12px; }
  .gauges-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-row { flex-direction: column; gap: 12px; }
  .start-card, .contact-card { padding: 32px 20px; }
  .overall-score { font-size: 44px; }
}

@media (max-width: 420px) {
  .patients-options { gap: 8px; }
  .patient-opt { font-size: 13px; padding: 9px 12px; }
  .gauges-grid { grid-template-columns: 1fr 1fr; }
}
