:root {
  --navy: #0f2d52;
  --blue: #1e5aa8;
  --teal: #00a8a8;
  --light: #f5f7fa;
  --white: #ffffff;
  --text: #273c59;
  --muted: #62748c;
  --line: #d7e1ed;
  --red: #c93834;
  --shadow: 0 16px 42px rgba(15, 45, 82, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--light);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--light); }
button, input, textarea { font: inherit; }
a { color: var(--blue); }

.survey-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px max(18px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.survey-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.survey-brand strong,
.survey-brand small { display: block; }
.survey-brand strong { font-size: 1.45rem; font-weight: 900; line-height: 1; }
.survey-brand strong span { color: var(--teal); }
.survey-brand small { margin-top: 1px; color: var(--muted); font-size: 0.76rem; }
.back-link { font-weight: 800; text-decoration: none; }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.survey-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 32px;
  align-items: end;
  padding: clamp(48px, 8vw, 92px) 0 38px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
h1 { max-width: 800px; margin: 0; color: var(--navy); font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; }
.lead { max-width: 780px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.idea-note {
  display: grid;
  gap: 7px;
  padding: 20px;
  background: #eaf8f7;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  line-height: 1.5;
}
.idea-note strong { color: var(--navy); }
.idea-note span { color: #4d627c; }

.progress-wrap {
  position: sticky;
  top: 76px;
  z-index: 15;
  padding: 12px 0;
  background: var(--light);
}
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 0.78rem; }
.progress-track { height: 7px; overflow: hidden; background: #dfe6ee; border-radius: 7px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--teal); transition: width 180ms ease; }

.survey-form { display: grid; gap: 22px; padding: 10px 0 80px; }
.form-part, .submit-panel {
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.part-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.part-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--white);
  background: var(--teal);
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}
.part-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2rem); }
.part-heading p { margin: 5px 0 0; color: var(--muted); }

fieldset { min-width: 0; margin: 0; padding: 25px 0; border: 0; border-top: 1px solid var(--line); }
legend, .text-question > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.45;
}
legend > span, .text-question > label > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--blue);
  background: #edf4fd;
  border-radius: 50%;
  font-size: 0.82rem;
}
legend small { display: block; margin-left: auto; color: var(--muted); font-size: 0.75rem; font-weight: 650; }

.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.choice-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice-grid label, .rating-options label { position: relative; cursor: pointer; }
.choice-grid input, .rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label > span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  color: #334a69;
  background: var(--light);
  border: 2px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  line-height: 1.35;
  transition: 150ms ease;
}
.choice-grid label > span::before {
  content: "";
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-right: 10px;
  background: var(--white);
  border: 2px solid #9aa9ba;
  border-radius: 4px;
}
.choice-grid input[type="radio"] + span::before { border-radius: 50%; }
.choice-grid label:hover > span, .choice-grid input:focus-visible + span { background: #edf5ff; border-color: #9fc2eb; }
.choice-grid input:checked + span { color: var(--navy); background: #e8f8f7; border-color: var(--teal); }
.choice-grid input:checked + span::before { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 4px var(--white); }

.rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rating-options span {
  display: grid;
  min-height: 72px;
  padding: 10px;
  place-items: center;
  color: var(--navy);
  background: var(--light);
  border: 2px solid transparent;
  border-radius: 7px;
}
.rating-options b { font-size: 1.2rem; }
.rating-options small { color: var(--muted); font-size: 0.7rem; }
.rating-options label:hover span, .rating-options input:focus-visible + span { border-color: #9fc2eb; }
.rating-options input:checked + span { color: var(--white); background: var(--blue); border-color: var(--blue); }
.rating-options input:checked + span small { color: var(--white); }

.text-question { padding: 23px 0; border-top: 1px solid var(--line); }
textarea, .contact-fields input {
  width: 100%;
  margin-top: 12px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #b9c7d7;
  border-radius: 7px;
  outline: none;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
textarea:focus, .contact-fields input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.12); }
.featured-question { margin-top: 10px; padding: 24px; background: #f0f8ff; border: 0; border-left: 4px solid var(--blue); border-radius: 7px; }

.single-check, .privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 15px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.5;
}
.single-check input, .privacy-check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: var(--light);
  border-radius: 7px;
}
.contact-fields[hidden] { display: none; }
.contact-fields label { color: var(--navy); font-size: 0.86rem; font-weight: 800; }
.contact-fields input { margin-top: 6px; }
.contact-fields p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.8rem; }

.group-error, .form-status { min-height: 20px; margin: 8px 0 0; color: var(--red); font-size: 0.82rem; font-weight: 700; }
.submit-panel { border-top: 4px solid var(--teal); }
.captcha-panel {
  margin-bottom: 22px;
  padding: 18px;
  background: #f5f9fd;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.captcha-panel > strong { display: block; color: var(--navy); font-size: 1rem; }
.captcha-panel > p { margin: 6px 0 14px; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.hcaptcha-widget { min-height: 78px; }
.captcha-panel .captcha-privacy { margin: 10px 0 0; font-size: 0.75rem; }
.captcha-privacy a { font-weight: 800; }
.captcha-panel .captcha-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 750;
}
.captcha-panel .captcha-status.ready { color: #2f6153; }
.privacy-summary { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
#submit-button {
  min-height: 52px;
  margin-top: 10px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}
#submit-button:hover, #submit-button:focus-visible { background: var(--navy); }
#submit-button:disabled { opacity: 0.65; cursor: wait; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.success-panel {
  max-width: 720px;
  margin: 70px auto 120px;
  padding: 42px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.success-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; color: var(--white); background: var(--teal); border-radius: 50%; font-size: 1.6rem; }
.success-panel h2 { color: var(--navy); }
.success-panel p { color: var(--muted); line-height: 1.6; }
.success-panel a { font-weight: 900; }

footer { padding: 28px 18px; color: #dfe9f4; background: var(--navy); text-align: center; }
footer p { max-width: 980px; margin: 0 auto; line-height: 1.5; }

@media (max-width: 900px) {
  .survey-hero { grid-template-columns: 1fr; gap: 22px; }
  .choice-grid, .choice-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-fields { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  main { width: min(100% - 20px, 1120px); }
  .survey-header { min-height: 68px; padding: 10px 12px; }
  .survey-brand small, .back-link { display: none; }
  .progress-wrap { top: 68px; }
  .survey-hero { padding: 38px 6px 24px; }
  h1 { font-size: 2.35rem; }
  .form-part, .submit-panel { padding: 20px 14px; }
  .part-heading { gap: 10px; }
  legend { display: grid; grid-template-columns: 29px minmax(0, 1fr); }
  legend small { grid-column: 2; margin: 2px 0 0; }
  .choice-grid, .choice-grid-wide, .choice-grid-five { grid-template-columns: 1fr; }
  .choice-grid label > span { min-height: 52px; }
  .rating-options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .rating-options span { min-height: 62px; padding: 7px 3px; }
  .rating-options small { display: none; }
  .featured-question { padding: 18px 14px; }
  .captcha-panel { padding: 14px; }
  .success-panel { margin: 40px auto 80px; padding: 28px 18px; }
}
