:root {
  --ink: #172126;
  --muted: #59666d;
  --border: #d8dfe2;
  --background: #f3f6f6;
  --surface: #ffffff;

  --navy: #173c4b;
  --navy-dark: #102d38;
  --aqua: #c9eeee;

  --max-width: 1180px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* =========================================================
   SHARED LAYOUT
   ========================================================= */

.container,
.container.narrow,
.survey-container {
  width: min(var(--max-width), calc(100% - 48px));
  max-width: var(--max-width);
  margin-inline: auto;
}

/* Sections keep the same outer width. Only prose line length is constrained. */
.context-section .narrow > :not(.eyebrow) {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.35;
}

.brand span {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.header-cta {
  color: var(--navy);
  font-weight: 700;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  color: #fff;
  background: var(--navy);
}

.button-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
}

.button-secondary:hover {
  color: #fff;
  background: var(--navy);
}

.button:focus-visible {
  outline: 3px solid rgb(23 60 75 / 22%);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 105px 0 110px;
  background: linear-gradient(135deg, #f5f8f8 0%, #eef3f3 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: 90px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
}

.hero-lead {
  margin-bottom: 17px;
  color: #33464e;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.survey-time {
  color: var(--muted);
  font-size: 14px;
}

.stats-card {
  padding: 34px 32px 30px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  box-shadow: 0 16px 40px rgb(16 45 56 / 14%);
}

.stats-label {
  margin: 0 0 16px;
  color: var(--aqua);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.big-stat {
  margin-bottom: 28px;
}

.big-stat strong {
  display: inline-block;
  margin-right: 6px;
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.big-stat span {
  font-size: 15px;
}

.stat-row {
  min-height: 62px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.stat-row strong {
  color: var(--aqua);
  font-size: 22px;
  font-weight: 800;
}

.stats-note {
  margin: 22px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 12px;
}

/* =========================================================
   CONTEXT / METHODOLOGY
   ========================================================= */

.context-section,
.methodology {
  padding: 80px 0;
}

.context-section p,
.methodology p {
  margin-top: 0;
}

.context-section p:last-child,
.methodology p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   SURVEY
   ========================================================= */

.survey-section {
  padding: 100px 0 72px;
  background: var(--background);
}

.survey-heading {
  max-width: none;
  margin: 0 0 42px;
  text-align: left;
}

.survey-heading h2 {
  margin-bottom: 14px;
}

.survey-heading > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   FORM CARDS
   ========================================================= */

.form-card {
  margin: 0 0 32px;
  padding: 0;

  border: 1px solid #d5dfe2;
  border-radius: 14px;

  background: #fff;

  box-shadow: 0 3px 14px rgb(16 45 56 / 5%);

  /* Important: clips header background to rounded corners */
  overflow: hidden;
}

/* Card header */

.form-card__header {
  padding: 20px 28px;

  border-bottom: 1px solid #dfe6e8;

  background: #f8fafb;
}

.form-card__heading {
  margin: 0;

  color: var(--ink);

  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.form-card__heading--small {
  font-size: 18px;
}

/* Legend is intentionally compact; do not make it width:100%. */

.form-card__body {
  padding: 28px 32px 32px;
}

.fieldset-intro {
  margin: 0 0 28px;
  color: #4d6067;
  font-size: 14px;
}

.form-card--questions {
  overflow: hidden;
}


/* =========================================================
   FIELDS
   ========================================================= */

.form-grid {
  display: grid;
  gap: 22px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-grid {
  grid-template-columns: minmax(0, 2fr) minmax(210px, 0.9fr) 150px;
}

.field {
  min-width: 0;
  margin: 0;
}

.form-card__body > .field,
.form-card__body > .form-grid + .field,
.form-card__body > .field + .form-grid,
.form-card__body > .form-grid + .form-grid {
  margin-top: 22px;
}

.form-card__body > .fieldset-intro + .form-grid,
.form-card__body > .fieldset-intro + .field {
  margin-top: 0;
}

.field label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid #aebbc0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
select:hover {
  border-color: #7e9299;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: var(--navy);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(23 60 75 / 14%);
}

.field-help,
.question-help {
  color: #66757b;
  font-size: 13px;
  line-height: 1.45;
}

.field-help {
  margin: 7px 0 0;
}

/* =========================================================
   QUESTIONS
   ========================================================= */

.question {
  padding: 34px 32px 38px;
}

.question + .question {
  border-top: 1px solid #dfe6e8;
}

.question-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 940px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.45;
}

.question-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.question-text {
  padding-top: 2px;
}

.question-help {
  margin: -12px 0 18px 44px;
}

/* =========================================================
   ANSWER CHOICES
   ========================================================= */

.choice-list,
.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-list--stacked {
  grid-template-columns: 1fr;
}

.choice-list--two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid--three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice--full {
  grid-column: 1 / -1;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #d2dde0;
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.choice:hover {
  border-color: #8fa5ac;
  background: #f5f8f8;
}

.choice:focus-within {
  outline: 3px solid rgb(30 73 88 / 16%);
  outline-offset: 2px;
}

.choice:has(input:checked) {
  border-color: var(--navy);
  background: #eaf3f5;
  box-shadow: inset 4px 0 0 var(--navy), 0 1px 2px rgb(16 45 56 / 5%);
}

.choice:has(input:checked) span {
  color: var(--ink);
  font-weight: 700;
}

.choice span {
  line-height: 1.4;
}

/* Custom radio + checkbox controls */
.choice input[type="radio"],
.choice input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1.5px solid #81949b;
  background: #fff;
  cursor: pointer;
}

.choice input[type="radio"] {
  border-radius: 50%;
}

.choice input[type="checkbox"] {
  border-radius: 4px;
}

.choice input[type="radio"]:checked {
  border: 5px solid var(--navy);
}

.choice input[type="checkbox"]:checked {
  border-color: var(--navy);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2 6.5 11.3 12.9 4.8'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

/* =========================================================
   CONSENT
   ========================================================= */

.form-card--consent .form-card__body {
  padding-top: 26px;
}

.consent-choice {
  align-items: flex-start;
}

.consent-choice input {
  margin-top: 2px;
}

.privacy-note {
  max-width: 850px;
  margin: 18px 0 0;
  color: #64757b;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   SUBMIT / MESSAGES
   ========================================================= */

.survey-submit {
  padding: 4px 0 8px;
}

.security-area {
  margin: 0 0 18px;
}

.submit-button {
  min-width: 230px;
  min-height: 54px;
  padding: 0 28px;
  font-size: 15px;
}

.submit-privacy {
  margin: 12px 0 0;
  color: #64757b;
  font-size: 13px;
}

.form-message {
  margin: 0 0 18px;
  font-weight: 700;
}

.form-message:empty {
  display: none;
}

.form-message.error {
  max-width: 760px;
  padding: 15px 18px;
  border: 1px solid #e3baba;
  border-left: 4px solid #a11;
  border-radius: 7px;
  background: #fff4f4;
  color: #751010;
}

/* =========================================================
   SUCCESS
   ========================================================= */

.success-panel {
  max-width: 760px;
  padding: 48px;
  border: 1px solid #d5dddf;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 18px rgb(16 45 56 / 6%);
}

.success-panel[hidden] {
  display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 35px 0;
  color: #dbe5e8;
  background: var(--navy-dark);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .stats-card {
    max-width: 560px;
  }

  .choice-grid--three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .container,
  .container.narrow,
  .survey-container {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .hero {
    padding: 60px 0;
  }

  .context-section,
  .methodology {
    padding: 64px 0;
  }

  .survey-section {
    padding: 70px 0 64px;
  }

  .survey-heading {
    margin-bottom: 36px;
  }

  .two-column,
  .location-grid,
  .choice-list--two-column,
  .choice-grid--three-column {
    grid-template-columns: 1fr;
  }

  .choice--full {
    grid-column: auto;
  }

  .form-card__body,
  .question {
    padding-left: 20px;
    padding-right: 20px;
  }

  .question-title {
    font-size: 16px;
  }

  .question-help {
    margin-left: 44px;
  }

  .submit-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container,
  .container.narrow,
  .survey-container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .header-inner {
    min-height: 66px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 48px 0;
  }

  h1 {
    font-size: 40px;
  }

  .stats-card {
    padding: 25px;
  }

  .form-card__body,
  .question {
    padding-left: 16px;
    padding-right: 16px;
  }

  .choice {
    padding: 13px;
  }

  .question-title {
    gap: 11px;
  }

  .question-number {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .question-help {
    margin-left: 39px;
  }

  .success-panel {
    padding: 32px 22px;
  }
}

.form-card__header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.form-card__heading {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.form-card--consent .form-card__body {
  padding: 26px 28px 28px;
}

.form-card--consent .consent-choice {
  min-height: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
}

.form-card--consent .consent-choice:hover {
  border: 0;
  background: transparent;
}

.form-card--consent .consent-choice:has(input:checked) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   OTHER CONCERN FOLLOW-UP
   ========================================================= */

.field--other-concern {
  margin-top: 18px;
  max-width: 680px;
}

.field--other-concern label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.field--other-concern textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 13px 15px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: #fff;
  color: var(--ink);

  font: inherit;
  font-size: 16px;
  line-height: 1.5;

  resize: vertical;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field--other-concern textarea::placeholder {
  color: #7b878c;
}

.field--other-concern textarea:hover {
  border-color: #aab8bd;
}

.field--other-concern textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgb(23 60 75 / 12%);
}

.field--other-concern .field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Form validation */

.field-error {
  margin: 8px 0 0;
  color: #a61b1b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #a61b1b;
  box-shadow: 0 0 0 3px rgb(166 27 27 / 10%);
}

.question.has-error .choice {
  border-color: #d9a3a3;
}

.question.has-error .field-error {
  margin-top: 14px;
}

/* =========================================================
   CONTEXT / RESOURCES
   ========================================================= */

.context-section {
    padding: 80px 0 90px;
}

.context-intro {
    max-width: none;
}

.context-intro > p:not(.eyebrow) {
    color: #33464e;
}

.context-resources {
    margin-top: 58px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.resources-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.resources-heading h3 {
    margin-bottom: 12px;
    font-size: 26px;
}

.resources-heading > p:last-child {
    margin: 0;
    color: var(--muted);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--ink);
    background: #fff;

    text-decoration: none;

    box-shadow: 0 3px 14px rgb(16 45 56 / 5%);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.resource-card:hover {
    border-color: var(--navy);
    box-shadow: 0 8px 24px rgb(16 45 56 / 9%);
    transform: translateY(-2px);
}

.resource-card:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
}

.resource-type {
    margin-bottom: 13px;

    color: var(--navy);

    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.resource-card strong {
    display: block;
    margin-bottom: 12px;

    font-size: 19px;
    line-height: 1.35;
}

.resource-card p {
    margin: 0 0 22px;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.55;
}

.resource-link {
    margin-top: auto;

    color: var(--navy);

    font-size: 14px;
    font-weight: 800;
}

.resources-note {
    max-width: none;
    margin: 20px 0 0;
    padding: 12px 16px;

    border-radius: 7px;
    background: #f3f6f6;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 20px !important;
}

@media (max-width: 720px) {

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: 0;
    }

    .context-resources {
        margin-top: 42px;
        padding-top: 38px;
    }

}
