:root {
  color-scheme: light;
  --blue: #174b94;
  --blue-dark: #102d5b;
  --blue-light: #eaf2fb;
  --orange: #f27b20;
  --orange-dark: #f27b20;
  --ink: #152741;
  --muted: #607087;
  --stroke: #dce5ef;
  --bg: #f8fbff;
  --white: #fff;
  --shadow: 0 18px 70px rgba(21, 52, 93, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(143deg, #f1f7fe 0%, #fff 49%, #fff8ef 100%);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 80px);
  border-bottom: 1px solid rgba(23, 75, 148, 0.1);
  background: linear-gradient(100deg, #1f2f70 0%, #283c8f 60%, #2d44a0 100%);
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  width: max-content;
}
.brand-wordmark {
  font-weight: 850;
  font-size: 29px;
  letter-spacing: -1.8px;
  line-height: 1;
  color: var(--blue);
  font-style: italic;
}
.brand-wordmark span {
  color: #316cbe;
}
.brand-caption {
  font-size: 7px;
  letter-spacing: 2.3px;
  color: var(--blue);
  margin-top: 5px;
  font-weight: 800;
}
.brand-header img {
  width: 150px;
}
.brand-right {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.1px;
  color: #fff;
  text-align: right;
  line-height: 1.7em;
}
.progress-holder {
  height: 5px;
  background: #e5edf6;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f27b20, #ff9e54);
  transition: width 0.3s ease;
}
.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 30px 20px 38px;
}
.content {
  width: min(100%, 770px);
  margin: auto;
  animation: enter 0.32s ease both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 1.45px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(33px, 5.3vw, 58px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 22px;
  font-weight: 780;
}
h2 {
  font-size: clamp(27px, 4vw, 43px);
  line-height: 1.14;
  letter-spacing: -1.3px;
  margin-bottom: 24px;
  font-weight: 760;
}
.lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 30px;
}
.intro-card {
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: clamp(21px, 4vw, 40px);
  margin-top: 25px;
}
.intro-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  margin-bottom: 17px;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #415674;
}
.field input,
.field select,
.field textarea,
.answer-text,
.answer-select {
  display: block;
  min-height: 54px;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #d3dfed;
  border-radius: 11px;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.answer-text:focus,
.answer-select:focus {
  border-color: #2c6fc1;
  box-shadow: 0 0 0 4px rgba(44, 111, 193, 0.1);
}
.field textarea,
.answer-textarea {
  min-height: 150px;
  resize: vertical;
}
.controls {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 25px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 750;
  transition:
    transform 0.15s,
    background 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #ffab3e;
}
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--stroke);
}
.btn-secondary:hover:not(:disabled) {
  background: #edf4fe;
}
.btn-text {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  font-weight: 650;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: #6e7f95;
  font-size: 12px;
  font-weight: 700;
}
.part-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 8px 12px;
  border-radius: 999px;
}
.question-number {
  white-space: nowrap;
}
.optional {
  font-size: 13px;
  color: #74839a;
  font-weight: 500;
  margin-top: -15px;
  margin-bottom: 22px;
}
.answer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin: 26px 0;
}
.answer-list.two-columns {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice {
  min-height: 61px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border: 1.5px solid #dce4ee;
  border-radius: 12px;
  background: #fff;
  color: #263c59;
  transition:
    border-color 0.12s,
    background 0.12s,
    box-shadow 0.12s;
  line-height: 1.38;
}
.choice:hover {
  border-color: #75a4df;
  background: #f4f8fe;
}
.choice[aria-pressed="true"] {
  border-color: var(--blue);
  background: #eaf3ff;
  box-shadow: 0 0 0 2px rgba(23, 75, 148, 0.1);
}
.choice-index {
  width: 32px;
  height: 32px;
  border: 1px solid #d3e0ee;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #f8fbff;
  color: #6b7e95;
  font-size: 12px;
  font-weight: 800;
}
.choice[aria-pressed="true"] .choice-index {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.choice-label {
  flex: 1;
  font-weight: 560;
}
.checkmark {
  font-size: 17px;
  font-weight: 900;
  color: var(--blue);
}
.hint {
  font-size: 13px;
  color: #7a8899;
  margin: 8px 0;
}
.matrix {
  display: grid;
  gap: 17px;
  margin: 25px 0;
}
.matrix-row {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 14px 16px;
}
.matrix-label {
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 11px;
}
.matrix-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.matrix-choice {
  border: 1.5px solid var(--stroke);
  border-radius: 8px;
  background: #f9fbff;
  color: #536983;
  min-height: 43px;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 2px;
}
.matrix-choice[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.select-box {
  max-width: 540px;
  margin: 23px 0;
}
.warn {
  margin: 15px 0 0;
  padding: 11px 14px;
  color: #92400e;
  background: #fffbeb;
  border-radius: 9px;
  border: 1px solid #fcd34d;
  font-size: 14px;
}
.site-footer {
  padding: 21px clamp(18px, 5vw, 80px);
  display: flex;
  justify-content: center;
  gap: 15px;
  color: #9aa8b7;
  font-size: 11px;
  background: transparent;
}
.thank-icon {
  width: 70px;
  height: 70px;
  border-radius: 21px;
  background: #e4f4eb;
  color: #147a47;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 29px;
}
.subtle {
  color: #7d8ca0;
  font-size: 12px;
  line-height: 1.65;
}
.pulse {
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
@media (max-width: 630px) {
  .brand-header {
    height: 74px;
  }
  .brand-wordmark {
    font-size: 24px;
  }
  .brand-right {
    font-size: 8px;
    max-width: 120px;
  }
  .main {
    align-items: flex-start;
    padding: 34px 18px;
  }
  .fields-grid,
  .answer-list.two-columns {
    grid-template-columns: 1fr;
  }
  .site-footer span:last-child {
    display: none;
  }
  h1 {
    letter-spacing: -1.3px;
  }
  .intro-card {
    border-radius: 18px;
  }
  .question-meta {
    margin-bottom: 20px;
  }
  .matrix-row {
    padding: 12px;
  }
  .matrix-options {
    gap: 4px;
  }
  .matrix-choice {
    font-size: 11px;
    padding: 5px 1px;
  }
  .btn {
    padding: 12px 17px;
  }
  .answer-list {
    gap: 9px;
  }
}
/* Thank You Page */
.content:has(.thank-icon) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
