@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}
.survey-page {
  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --type-display: clamp(2rem, 1.25rem + 1.8vw, 2.75rem);
  --type-question: clamp(1.75rem, 1.3rem + 1.3vw, 2.375rem);
  --type-body: 1.0625rem;
  --type-note: 0.9375rem;
  --type-meta: 0.9375rem;
  --navy-1: #001e31;
  --navy-2: #0b2f47;
  --navy-3: #041723;
  --charcoal: #1c2a31;
  --choice-line: #d5dfe4;
  --choice-tint: #eef4f6;
  font-size: var(--type-body);
  font-weight: 450;
  background: #fff;
  color: var(--charcoal);
  scrollbar-color: #adc1c0 #fff;
}

/* Two-column shell: sticky brand panel on the left, scrolling questionnaire on the right. */
.survey-page .shell {
  display: grid;
  grid-template-columns: minmax(340px, 39.5%) minmax(0, 1fr);
  min-height: 100dvh;
}
.survey-page .brand-panel {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 40px 44px 36px 48px;
  color: #fff;
  background:
    radial-gradient(
      120% 70% at 100% 0%,
      rgba(58, 196, 205, 0.22) 0%,
      rgba(58, 196, 205, 0) 55%
    ),
    radial-gradient(
      90% 60% at 0% 100%,
      rgba(11, 112, 128, 0.35) 0%,
      rgba(11, 112, 128, 0) 60%
    ),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 45%, var(--navy-3) 100%);
  overflow: hidden;
}
.survey-page .brand-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  align-self: flex-start;
}
.survey-page .brand-logo img {
  display: block;
  width: 224px;
  height: auto;
}
.survey-page .brand-copy {
  margin-top: 40px;
}
.survey-page .brand-eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.survey-page .brand-copy .brand-eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 30px 0 26px;
  background: var(--turquoise);
}
.survey-page .brand-title {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 11ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.survey-page .brand-sub {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 30ch;
  text-wrap: pretty;
}
.survey-page .brand-kit {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: calc(100% + 92px);
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: 45% 100%;
  margin: 8px -44px 0 -48px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 86%, rgba(0, 0, 0, 0.35) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 86%, rgba(0, 0, 0, 0.35) 100%);
}
.survey-page .brand-footnote {
  margin-top: 8px;
  padding-top: 18px;
}
.survey-page .brand-footnote::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--turquoise);
}

/* Right column. */
.survey-page .layout {
  display: block;
  max-width: none;
  margin: 0;
  padding: 24px 64px 56px;
  min-width: 0;
}
.survey-page .topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 44px;
  margin-bottom: 12px;
}
.survey-page #language {
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52666a;
  font-size: var(--type-note);
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
}
.survey-page #language:hover,
.survey-page #language[data-state="open"] {
  color: var(--deep);
  background: var(--choice-tint);
}
.survey-page [data-slot="select-content"] {
  min-width: 10rem;
  border: 1px solid var(--choice-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px -8px #144e6330;
}
.survey-page [data-slot="select-item"] {
  min-height: 36px;
  font-size: var(--type-note);
}
.survey-page [data-slot="select-item"]:focus-visible {
  outline: none;
}
.survey-page .question-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}
.survey-page .progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: var(--type-meta);
  font-weight: 500;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.survey-page .progress-meta {
  display: inline-flex;
  gap: 14px;
  align-items: baseline;
  color: #52666a;
}
.survey-page #save-status:empty {
  display: none;
}
.survey-page #save-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}
.survey-page #progress {
  margin-bottom: 44px;
}
.survey-page .survey-progress {
  display: flex;
  gap: 6px;
  height: 4px;
}
.survey-page [data-slot="progress-segment"] {
  flex: 1;
  border-radius: 2px;
  background: #e4ebef;
  transition: background-color 0.25s ease-out;
}
.survey-page [data-slot="progress-segment"][data-filled="true"] {
  background: var(--teal);
}
.survey-page #question-title {
  font-size: var(--type-question);
  font-weight: 650;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.survey-page .help {
  font-size: var(--type-body);
  line-height: 1.55;
  margin: 0 0 28px;
  color: #52666a;
  max-width: 58ch;
}
.survey-page #question-title + .controls-root {
  margin-top: 28px;
}
.survey-page fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.survey-page [data-slot="radio-group"],
.survey-page .survey-options {
  display: grid;
  gap: 10px;
}

/* Option cards: glyph, label, then the control on the right edge. */
.survey-page .survey-choice {
  display: block;
  width: 100%;
  border: 1px solid var(--choice-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.survey-page .survey-choice:hover {
  background: #f8fbfc;
  border-color: #a9bec6;
}
.survey-page .survey-choice:has([data-state="checked"]) {
  background: #eef7f8;
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.survey-page .survey-choice:has(:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.survey-page .survey-choice [data-slot="field"] {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 9px 18px 9px 9px;
  min-height: 58px;
}
.survey-page .choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--choice-tint);
  color: var(--deep);
  transition: background-color 0.16s;
}
.survey-page .choice-icon svg {
  width: 18px;
  height: 18px;
}
.survey-page .survey-choice:has([data-state="checked"]) .choice-icon {
  background: #d9eef0;
  color: var(--teal);
}
.survey-page .choice-text {
  flex: 1;
  min-width: 0;
  font-size: var(--type-body);
  line-height: 1.45;
  font-weight: 500;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}
.survey-page button[data-slot="radio-group-item"],
.survey-page button[data-slot="checkbox"] {
  padding: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #fff;
  color: var(--teal);
  border: 1.5px solid #9fb2ba;
  box-shadow: none;
  flex-shrink: 0;
}
.survey-page button[data-slot="radio-group-item"] {
  border-radius: 50%;
}
.survey-page button[data-slot="checkbox"] {
  border-radius: 5px;
}
.survey-page button[data-slot="checkbox"][data-state="checked"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.survey-page button[data-slot="checkbox"] [data-slot="checkbox-indicator"] {
  color: #fff;
}
.survey-page button[data-slot="radio-group-item"][data-state="checked"] {
  border-color: var(--teal);
}
.survey-page [data-slot="radio-group-indicator"] {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.survey-page [data-slot="radio-group-indicator"] svg {
  width: 10px;
  height: 10px;
  fill: var(--teal);
}
.survey-page [data-slot="checkbox-indicator"] svg {
  width: 14px;
  height: 14px;
}
.survey-page [data-slot="input"],
.survey-page [data-slot="textarea"] {
  border: 1px solid #afc3c1;
  border-radius: 10px;
  padding: 16px;
  font-size: var(--type-body);
  line-height: 1.6;
  box-shadow: none;
  background: #fff;
}
.survey-page [data-slot="input"] {
  height: 56px;
}
.survey-page [data-slot="textarea"] {
  min-height: 200px;
  field-sizing: fixed;
}
.survey-page [data-slot="field-description"] {
  font-size: var(--type-meta);
  color: #52666a;
  margin: 12px 0 0;
}
.survey-page [aria-invalid="true"] {
  border-color: #a82242 !important;
}

/* Actions: quiet Back link on the left, solid Continue on the right. */
.survey-page .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0 8px;
  gap: 16px;
}
.survey-page .actions [data-slot="button"] {
  height: 50px;
  padding: 0 22px;
  gap: 10px;
  font-size: var(--type-body);
  font-weight: 650;
  border-radius: 8px;
  box-shadow: none;
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out,
    transform 150ms ease-out;
}
.survey-page .actions [data-slot="button"] svg {
  width: 18px;
  height: 18px;
}
.survey-page #next {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
  min-width: 152px;
}
.survey-page #next:hover {
  background: var(--deep);
}
.survey-page #back {
  background: transparent;
  color: #52666a;
  padding-inline: 4px;
  font-weight: 500;
}
.survey-page #back:hover {
  color: var(--deep);
  background: transparent;
}
.survey-page .actions [data-slot="button"]:active:not(:disabled) {
  transform: scale(0.96);
}
.survey-page .actions [data-slot="button"]:disabled {
  cursor: default;
}
.survey-page .question-panel[aria-busy="true"] .survey-choice {
  cursor: wait;
}
.survey-page .survey-choice button:active {
  transform: none;
}
.survey-page #preview-banner {
  font-size: var(--type-meta);
  padding: 0 0 18px;
  background: none;
  color: #52666a;
  margin: 0;
}
.survey-page #survey {
  animation: none;
}
.survey-page .thanks {
  min-height: 270px;
  padding: 30px 0;
}
.survey-page .thanks h2 {
  font-size: var(--type-display);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--charcoal);
}
.survey-page .thanks p {
  font-size: var(--type-body);
  line-height: 1.7;
  color: #52666a;
  text-wrap: pretty;
}
.survey-page .thanks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.survey-page .question-panel {
  animation: panel-arrive 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes panel-arrive {
  from {
    transform: translateY(9px);
  }
  to {
    transform: translateY(0);
  }
}

/* One brief selection pulse before automatic advance; reduced motion stays static. */
.survey-page .survey-choice.answer-blink {
  animation: answer-confirm 360ms ease-out;
}
@keyframes answer-confirm {
  0%,
  100% {
    background-color: #eef7f8;
  }
  45% {
    background-color: #bce6df;
  }
}

/* Editable copy wraps at words; emergency breaks protect long unspaced input. */
.survey-page #question-title,
.survey-page .thanks h2 {
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Completion acknowledges the contribution, then offers its personal receipt. */
.survey-page .completion-mark {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 24px;
}
.survey-page .completion-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: receipt-confirm 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes receipt-confirm {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.survey-page .response-receipt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0 8px;
}
.survey-page .response-receipt summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: var(--type-note);
  font-weight: 700;
  color: var(--deep);
  min-height: 48px;
}
.survey-page .response-receipt summary::marker {
  color: var(--teal);
}
.survey-page .response-receipt dl {
  margin: 0;
  padding: 4px 0 20px;
}
.survey-page .response-receipt dt {
  margin: 20px 0 6px;
  font-size: var(--type-meta);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.survey-page .response-receipt dt:first-child {
  margin-top: 0;
}
.survey-page .response-receipt dd {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Narrower desktops and tablets. */
@media (max-width: 1100px) {
  .survey-page .shell {
    grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
  }
  .survey-page .brand-panel {
    padding: 32px 32px 28px;
  }
  .survey-page .layout {
    padding-inline: 40px;
  }
  .survey-page .brand-kit {
    width: calc(100% + 64px);
    margin-inline: -32px;
  }
}

/* Phones and small tablets: the brand panel becomes a compact band above the questions. */
@media (max-width: 860px) {
  .survey-page .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .survey-page .brand-panel {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    column-gap: 16px;
    align-items: center;
    padding: 24px 24px 22px;
  }
  .survey-page .brand-logo {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .survey-page .brand-logo img {
    width: 164px;
  }
  .survey-page .brand-copy {
    margin-top: 18px;
  }
  .survey-page .brand-copy .brand-eyebrow::after {
    margin: 14px 0 12px;
    width: 32px;
  }
  .survey-page .brand-title {
    font-size: 1.75rem;
    max-width: 16ch;
    margin-bottom: 0;
  }
  .survey-page .brand-sub,
  .survey-page .brand-footnote {
    display: none;
  }
  .survey-page .brand-kit {
    width: 112px;
    height: 112px;
    margin: 18px 0 0;
    padding: 0;
    align-self: end;
    object-fit: cover;
    object-position: 45% 80%;
    border-radius: 10px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .survey-page .layout {
    padding: 8px 20px 32px;
  }
  .survey-page .topbar {
    margin-bottom: 4px;
  }
  .survey-page #progress {
    margin-bottom: 30px;
  }
  .survey-page #question-title {
    line-height: 1.2;
    text-wrap: pretty;
  }
  .survey-page .survey-choice [data-slot="field"] {
    padding: 8px 14px 8px 8px;
    gap: 12px;
    min-height: 56px;
  }
  .survey-page .choice-icon {
    width: 36px;
    height: 36px;
  }
  .survey-page .actions {
    margin-top: 28px;
  }
  .survey-page #next {
    min-width: 0;
  }
}
@media (max-width: 400px) {
  .survey-page .brand-panel {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 18px;
  }
  .survey-page .brand-kit {
    display: none;
  }
  .survey-page .layout {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .survey-page * {
    animation: none !important;
    transition: none !important;
  }
  .survey-page .actions [data-slot="button"]:active:not(:disabled) {
    transform: none;
  }
}
