:root {
  --navy-950: #061a2b;
  --navy-900: #0a2942;
  --navy-800: #103b5c;
  --blue-700: #165c8d;
  --blue-600: #1c73ad;
  --blue-500: #2a87c8;
  --blue-100: #eaf4fb;
  --blue-050: #f4f9fd;
  --surface: #ffffff;
  --text: #102533;
  --muted: #5f7484;
  --border: #d8e4ec;
  --danger: #b42318;
  --danger-bg: #fff0ee;
  --warning-bg: #fff8e8;
  --warning-border: #e8cc87;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(6, 42, 68, .10);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: #edf4f8; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #eef5f9 0%, #f8fbfd 100%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.site-strip { height: 7px; background: linear-gradient(90deg, var(--navy-900), var(--blue-600)); }
.survey-shell { width: min(860px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 60px; }
.survey-shell--intro { min-height: calc(100vh - 7px); display: grid; place-items: center; }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); min-height: 44px; }
.brand img { display: block; height: 52px; width: auto; max-width: 300px; object-fit: contain; }
.brand-fallback { display: flex; align-items: baseline; gap: 7px; font-weight: 850; letter-spacing: -.035em; font-size: 1.15rem; }
.brand-fallback .brand-360 { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--navy-900); letter-spacing: -.05em; font-size: .9rem; }
.brand-fallback .brand-name { font-size: 1.18rem; }
.pilot-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.survey-header { margin-bottom: 18px; }
.survey-header-top { display: grid; grid-template-columns: 1fr minmax(180px, 260px); gap: 24px; align-items: end; }
.eyebrow { margin: 0 0 6px; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); }
.block-title { margin: 0; color: var(--muted); font-size: .98rem; }

.progress-wrap { display: grid; gap: 7px; }
.progress-text { font-size: .83rem; font-weight: 800; color: var(--blue-700); justify-self: end; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #dbe8f0; }
.progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); border-radius: inherit; transition: width .2s ease; }

.survey-card { background: var(--surface); border: 1px solid rgba(22, 92, 141, .14); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 48px); }
.intro-card { border-top: 5px solid var(--blue-700); }
.intro-card h1, .question-title { margin: 0 0 18px; line-height: 1.13; letter-spacing: -.025em; color: var(--navy-950); }
.intro-card h1 { font-size: clamp(1.85rem, 5vw, 2.85rem); max-width: 17ch; }
.intro-card p { line-height: 1.65; }
.intro-meta { margin: 28px 0 16px; display: grid; gap: 8px; padding: 20px; border-radius: 14px; background: var(--blue-050); border: 1px solid #dcecf6; }
.intro-meta strong { color: var(--navy-900); }
.privacy-note { color: var(--muted); font-size: .92rem; }

.question-meta { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; font-size: .8rem; font-weight: 750; color: var(--muted); }
.question-meta > span:first-child { color: var(--blue-700); background: var(--blue-100); padding: 5px 9px; border-radius: 999px; }
.question-title { font-size: clamp(1.5rem, 4vw, 2.15rem); }
.required-note { color: var(--blue-700); }
.optional-note { font-weight: 600; }
.question-help { margin: -6px 0 22px; line-height: 1.55; color: var(--muted); }

.choice-list { display: grid; gap: 11px; margin: 24px 0; }
.choice { position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 16px 17px; border: 1px solid var(--border); border-radius: 13px; background: #fff; line-height: 1.42; transition: border-color .12s ease, background .12s ease, transform .12s ease, box-shadow .12s ease; }
.choice:hover { border-color: #9ec4dd; box-shadow: 0 5px 16px rgba(16, 59, 92, .06); transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--blue-600); background: var(--blue-050); box-shadow: inset 0 0 0 1px rgba(28,115,173,.15); }
.choice input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--blue-700); }
.choice--compact { margin-top: 12px; width: fit-content; }
.choice--pending-label { border-style: dashed; }
.selection-counter, .char-counter { color: var(--muted); font-size: .88rem; text-align: right; }

.number-field { margin: 24px 0; }
.number-input-wrap { display: flex; align-items: center; gap: 10px; }
.number-input-wrap input, .other-field input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 11px; padding: 14px 15px; background: #fff; color: var(--text); outline: none; }
.number-input-wrap input:focus, .other-field input:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(42,135,200,.13); }
.number-input-wrap input { max-width: 220px; }
.input-suffix { color: var(--muted); }
.other-field { margin-top: 18px; }
.other-field label { display: block; margin-bottom: 7px; font-weight: 750; }
.textarea-wrap { display: grid; gap: 7px; margin-top: 22px; }
textarea { resize: vertical; min-height: 170px; line-height: 1.5; }

.info-box { margin: 0 0 28px; padding: 18px 20px; border-left: 4px solid var(--blue-600); background: var(--blue-050); border-radius: 11px; }
.info-box p { margin: 8px 0 0; line-height: 1.55; }
.form-error { margin: 20px 0 0; padding: 13px 15px; border-radius: 11px; background: var(--danger-bg); color: var(--danger); font-weight: 750; }
.loading-state { color: var(--muted); }

.survey-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.button { min-height: 50px; padding: 13px 22px; border-radius: 11px; border: 1px solid transparent; font-weight: 800; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.button--primary { color: white; background: linear-gradient(135deg, var(--navy-800), var(--blue-700)); box-shadow: 0 8px 20px rgba(22,92,141,.18); }
.button--primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); transform: translateY(-1px); }
.button--secondary { color: var(--navy-900); background: white; border-color: #bfd2df; }
.button--secondary:hover:not(:disabled) { background: var(--blue-050); }

.footer-note { margin-top: 18px; color: #708391; font-size: .76rem; text-align: center; }

@media (max-width: 720px) {
  .survey-header-top { grid-template-columns: 1fr; gap: 14px; }
  .progress-wrap { width: 100%; }
  .progress-text { justify-self: start; }
  .brand-row { align-items: flex-start; }
  .pilot-badge { font-size: .65rem; }
}

@media (max-width: 520px) {
  .survey-shell { width: min(100% - 18px, 860px); padding-top: 12px; }
  .survey-card { padding: 22px 17px; border-radius: 15px; }
  .intro-card h1 { font-size: 2rem; }
  .brand { gap: 9px; }
  .brand img { height: 44px; width: auto; max-width: 240px; }
  .brand-fallback .brand-name { font-size: 1rem; }
  .pilot-badge { display: none; }
  .survey-nav { position: sticky; bottom: 0; margin-inline: -17px; padding: 14px 17px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
  .button { flex: 1; padding-inline: 12px; }
  .choice { padding: 14px; }
}
