:root {
  color: #eaf8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #131a24;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: #131a24;
  background-image:
    linear-gradient(rgba(234, 248, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 248, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  font-weight: 450;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.25rem;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(234, 248, 255, 0.08);
  background: rgba(8, 15, 23, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  color: #eff5f7;
  font-size: 0.9rem;
  font-weight: 500;
}

.brand img {
  display: block;
  width: 1.75rem;
  height: auto;
}

.brand strong {
  font-weight: 750;
}

.topbar__context {
  color: #94a4ae;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.45rem;
  padding: 0.36rem 0.65rem;
  border: 1px solid rgba(89, 206, 245, 0.22);
  border-radius: 999px;
  color: #8cdef8;
  background: rgba(89, 206, 245, 0.06);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-chip i,
.save-state i,
.pilot-card > i {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #59cef5;
  box-shadow: 0 0 0.75rem rgba(89, 206, 245, 0.65);
}

.workspace {
  display: grid;
  grid-template-columns: 18.5rem minmax(0, 1fr);
  width: min(calc(100% - 3rem), 76rem);
  min-height: calc(100vh - 8.25rem);
  margin: 2rem auto;
  overflow: hidden;
  border: 1px solid rgba(234, 248, 255, 0.14);
  border-radius: 1rem;
  background: #101923;
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.32);
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem 1.65rem 1.5rem;
  border-right: 1px solid rgba(234, 248, 255, 0.1);
  color: #eaf8ff;
  background: rgba(16, 25, 35, 0.96);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #75d7f7;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.workspace-sidebar h1 {
  margin: 0;
  color: #eff5f7;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.workspace-sidebar__lede {
  margin: 1rem 0 0;
  color: #94a4ae;
  font-size: 0.85rem;
  line-height: 1.6;
}

.section-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 2.1rem 0 0.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(234, 248, 255, 0.1);
  color: #7f909a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-summary strong {
  color: #76858e;
  font-size: 0.68rem;
  font-weight: 500;
}

.section-summary b:first-child {
  color: #eaf8ff;
  font-size: 1.15rem;
  font-weight: 550;
}

.section-summary b {
  font-weight: inherit;
}

.survey-steps {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.survey-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: start;
  gap: 0.6rem;
  padding: 0.48rem 0.55rem;
  border-radius: 0.45rem;
  color: #6f808b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.survey-steps li span:first-child {
  padding-top: 0.05rem;
  color: #596973;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
}

.survey-steps li[data-state="current"] {
  color: #eaf8ff;
  background: rgba(89, 206, 245, 0.08);
}

.survey-steps li[data-state="current"]::before {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0;
  width: 2px;
  border-radius: 1px;
  background: #59cef5;
  content: "";
}

.survey-steps li[data-state="current"] span:first-child {
  color: #59cef5;
}

.survey-steps li[data-state="complete"] {
  color: #9cabb4;
}

.survey-steps li[data-state="complete"] span:first-child {
  color: #69d4a5;
}

.pilot-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(234, 248, 255, 0.1);
}

.pilot-card > i {
  margin-top: 0.32rem;
  background: #d7b56d;
  box-shadow: 0 0 0.75rem rgba(215, 181, 109, 0.4);
}

.pilot-card strong {
  color: #dbe5e9;
  font-size: 0.75rem;
  font-weight: 600;
}

.pilot-card p {
  margin: 0.3rem 0 0;
  color: #71818b;
  font-size: 0.69rem;
  line-height: 1.45;
}

.survey-panel {
  min-width: 0;
  background: #ffffff;
}

.survey-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(234, 248, 255, 0.1);
  color: #eaf8ff;
  background: #182630;
}

.survey-panel__header > div {
  display: grid;
  gap: 0.2rem;
}

.survey-panel__header span {
  color: #80939e;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.survey-panel__header strong {
  color: #eaf8ff;
  font-size: 0.86rem;
  font-weight: 550;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.save-state i {
  width: 0.38rem;
  height: 0.38rem;
  background: #69d4a5;
  box-shadow: 0 0 0.65rem rgba(105, 212, 165, 0.45);
}

#survey {
  min-height: 36rem;
}

.survey-intro,
.question-warning,
.submission-notice,
.completion-card,
.fatal-error {
  font-size: 0.96rem;
  line-height: 1.65;
}

.survey-intro {
  color: #45535a;
}

.survey-intro p:first-child {
  margin-top: 0;
}

.survey-intro a,
.map-link a,
.completion-card a {
  color: #087ea4;
  font-weight: 650;
  text-underline-offset: 0.16em;
}

.question-warning,
.submission-notice {
  padding: 0.9rem 1rem;
  border: 1px solid #ced5cc;
  border-left: 3px solid #2aabd4;
  border-radius: 0.45rem;
  color: #35464e;
  background: rgba(255, 255, 255, 0.38);
}

.completion-card,
.fatal-error {
  width: min(42rem, calc(100% - 2rem));
  margin: 4rem auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #ced5cc;
  border-radius: 0.7rem;
  color: #13222b;
  background: #f8f8f3;
}

/* SurveyJS is reduced to a calm document surface inside the app shell. */
.sd-root-modern {
  --sjs-font-size: 16px;
  color: #13222b;
  background: transparent;
}

.sd-root-modern .sd-container-modern {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sd-root-modern .sd-body {
  padding: 0;
  background: transparent;
}

#survey .sd-root-modern.sd-root-modern--full-container .sd-page {
  max-width: none;
  padding: clamp(1.5rem, 4vw, 3rem) !important;
  background: transparent;
}

.sd-root-modern .sd-page__title {
  display: none;
}

.sd-root-modern .sd-page__description {
  max-width: 44rem;
  margin-bottom: 1rem;
  color: #66747a;
  line-height: 1.55;
}

.sd-root-modern .sd-question {
  margin: 0;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid #d4d9d1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sd-root-modern .sd-question:first-of-type {
  padding-top: 1rem;
}

.sd-root-modern .sd-question--html {
  padding: 1rem 0 1.5rem;
}

.sd-root-modern .sd-question__header {
  max-width: 48rem;
  padding: 0 0 0.9rem;
}

.sd-root-modern .sd-question__title {
  color: #13222b;
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.48;
}

.sd-root-modern .sd-question__description {
  padding-top: 0.3rem;
  color: #6b787d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.sd-root-modern .sd-selectbase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0.55rem;
}

.sd-root-modern .sd-selectbase__item {
  min-width: 0;
  margin: 0;
}

.sd-root-modern .sd-selectbase__label {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd3cb;
  border-radius: 0.48rem;
  color: #24353d;
  background: rgba(255, 255, 255, 0.42);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.sd-root-modern .sd-selectbase__label:hover {
  border-color: #79cce6;
  background: rgba(255, 255, 255, 0.7);
}

.sd-root-modern .sd-selectbase__label:has(input:checked) {
  border-color: #37bde9;
  background: #dff6fd;
  box-shadow: 0 0 0 2px rgba(89, 206, 245, 0.12);
}

.sd-root-modern .sd-item__control:focus-visible + .sd-item__decorator {
  outline: 3px solid rgba(89, 206, 245, 0.3);
  outline-offset: 3px;
}

.sd-root-modern .sd-input,
.sd-root-modern textarea.sd-input,
.sd-root-modern .sd-dropdown {
  border: 1px solid #c3ccc4;
  border-radius: 0.48rem;
  color: #13222b;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.sd-root-modern .sd-input:focus,
.sd-root-modern textarea.sd-input:focus,
.sd-root-modern .sd-dropdown:focus-within {
  border-color: #37bde9;
  box-shadow: 0 0 0 3px rgba(89, 206, 245, 0.18);
}

.sd-action-bar.sd-footer.sd-body__navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem) 2.5rem;
}

.sd-action-bar.sd-footer.sd-body__navigation > div:last-child {
  margin-left: auto;
}

.sd-root-modern .sd-btn {
  min-height: 3rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid #8be3ff;
  border-radius: 0.5rem;
  color: #082532;
  background: #59cef5;
  font-size: 0.84rem;
  font-weight: 620;
  box-shadow:
    0 0 0 3px rgba(93, 216, 255, 0.04),
    0 0.35rem 1.75rem rgba(41, 194, 250, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.sd-root-modern .sd-btn:hover {
  color: #082532;
  background: #72d8fa;
  transform: translateY(-1px);
  box-shadow: 0 0.55rem 2rem rgba(41, 194, 250, 0.2);
}

.sd-root-modern .sd-navigation__prev-btn {
  border-color: #c5cec7;
  color: #263940;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.sd-root-modern .sd-navigation__prev-btn:hover {
  color: #13222b;
  background: rgba(255, 255, 255, 0.72);
}

.sv-list .sv-list__item.sd-list__item--hovered .sv-list__item-body,
.sv-list .sv-list__item.sv-list__item--selected .sv-list__item-body,
.sv-multi-select-list .sv-list__item.sd-list__item--hovered .sv-list__item-body,
.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body {
  color: #082532 !important;
  background: #59cef5;
}

.sv-ranking-item__index.sd-ranking-item__index,
.sv-ranking-item__index.sd-ranking-item__index > svg {
  color: #082532;
  fill: #082532;
}

.sv-save-data_root.sv-save-data_success {
  color: #082532;
  background: #69d4a5;
}

.sd-body.sd-completedpage a {
  color: #087ea4;
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    width: min(calc(100% - 1.5rem), 48rem);
    margin: 0.75rem auto;
  }

  .workspace-sidebar {
    padding: 1.35rem 1.5rem 1.1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(234, 248, 255, 0.1);
  }

  .workspace-sidebar h1 {
    max-width: 18ch;
    font-size: 1.8rem;
  }

  .workspace-sidebar__lede,
  .pilot-card {
    display: none;
  }

  .section-summary {
    margin-top: 1rem;
    padding-top: 0.9rem;
  }

  .survey-steps {
    grid-template-columns: repeat(8, minmax(2rem, 1fr));
    gap: 0.3rem;
  }

  .survey-steps li {
    display: block;
    padding: 0.5rem 0.25rem;
    text-align: center;
  }

  .survey-steps li span:last-child {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .survey-steps li[data-state="current"]::before {
    top: auto;
    right: 0.3rem;
    bottom: 0;
    left: 0.3rem;
    width: auto;
    height: 2px;
  }

  .pilot-card {
    margin-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .topbar__context {
    display: none;
  }

  .workspace {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .workspace-sidebar {
    padding: 1.35rem 1rem 1.1rem;
  }

  .workspace-sidebar h1 {
    font-size: 1.7rem;
  }

  .section-summary {
    margin-top: 1.1rem;
  }

  .survey-panel__header {
    padding: 0.8rem 1rem;
  }

  .save-state {
    font-size: 0 !important;
  }

  #survey .sd-root-modern.sd-root-modern--full-container .sd-page {
    padding: 1.35rem 1rem !important;
  }

  .sd-action-bar.sd-footer.sd-body__navigation {
    padding: 1.25rem 1rem 2rem;
  }
}

/* CF survey palette; explicit control sizing avoids Contrast theme rings and
   SurveyJS's narrow-screen full-width navigation overriding the form design. */
#survey {
  --sjs-primary-backcolor: #001d3e;
  --sjs-primary-forecolor: #fff;
}

#survey .sd-question__title {
  color: #001d3e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

#survey .sd-selectbase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#survey .sd-selectbase__item {
  flex: 0 1 auto;
  max-width: 100%;
}

#survey .sd-selectbase__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  color: #001d3e;
  background: #fff;
  font-size: 16px;
  box-shadow: none;
}

#survey .sd-selectbase__label:hover {
  border-color: #487fff;
  background: #f7f9ff;
}

#survey .sd-selectbase__label:has(input:checked) {
  border-color: #487fff;
  background: #edf3ff;
  box-shadow: none;
}

#survey .sd-item__decorator {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  border: 1.5px solid #8191a5;
  background: #fff;
  box-shadow: none;
}

#survey .sd-radio--checked .sd-item__decorator,
#survey .sd-checkbox--checked .sd-item__decorator {
  border-color: #001d3e;
  background: #001d3e;
}

#survey .sd-radio__decorator::after {
  width: 8px;
  height: 8px;
  background: #fff;
}

#survey .sd-selectbase__label:focus-within {
  outline: 2px solid #487fff;
  outline-offset: 3px;
}

#survey .sd-body__navigation {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  gap: 12px;
}

#survey .sd-body__navigation .sv-action {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

#survey .sd-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 132px;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid #001d3e;
  border-radius: 6px;
  color: #fff;
  background: #001d3e;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: none;
  transform: none;
}

#survey .sd-btn:hover {
  color: #fff;
  background: #163d68;
  box-shadow: none;
  transform: none;
}

#survey .sd-navigation__prev-btn {
  color: #001d3e;
  border-color: #d8e0ea;
  background: #fff;
}

#survey .sd-btn:focus-visible {
  outline: 2px solid #487fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
