:root {
  --navy: #0b3038;
  --ink: #102236;
  --teal: #078779;
  --gold: #f3b83e;
  --coral: #ef6548;
  --paper: #eef3f2;
  --line: #d1ddda;
  --muted: #62717b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    15px/1.5 Inter,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(18px, calc((100vw - 900px) / 2));
  color: white;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}
.site-header > a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.site-header > a span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
}
.language-picker {
  display: flex;
  gap: 6px;
}
.language-picker button {
  min-height: 38px;
  padding: 7px 12px;
  color: white;
  background: transparent;
  border: 1px solid #6e898f;
  font-weight: 800;
  cursor: pointer;
}
.language-picker button.active {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}
main {
  width: min(760px, calc(100% - 28px));
  margin: 38px auto 70px;
}
.intro {
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  margin: 7px 0 10px;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.04;
}
.intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}
form {
  display: grid;
  gap: 12px;
}
.question {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
}
.question > span,
.question legend {
  display: flex;
  align-items: center;
  gap: 10px;
}
.question b {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--navy);
  font-size: 12px;
}
.question small {
  color: var(--muted);
  font-weight: 500;
}
fieldset {
  min-width: 0;
}
fieldset legend {
  padding: 0;
}
input[type="text"],
input:not([type]),
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #aebdba;
  resize: vertical;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.choices.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choices label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: #f4f7f6;
  border: 1px solid var(--line);
  cursor: pointer;
}
.choices label:has(input:checked) {
  color: #075e56;
  background: #e2f2ee;
  border-color: var(--teal);
  font-weight: 800;
}
.choices input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.hint,
.field-error {
  margin: -2px 0 0 38px;
  color: var(--muted);
  font-size: 12px;
}
.field-error {
  color: #a22d20;
  font-weight: 800;
}
.website {
  position: absolute;
  left: -10000px;
}
footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
footer button {
  min-height: 48px;
  padding: 10px 20px;
  color: white;
  background: var(--teal);
  border: 0;
  font-weight: 900;
  cursor: pointer;
}
footer button:disabled {
  opacity: 0.65;
}
#status {
  color: var(--teal);
}
.thanks {
  padding: 48px 28px;
  text-align: center;
  background: white;
  border-top: 5px solid var(--gold);
}
.thanks > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: white;
  background: var(--teal);
  font-size: 30px;
  font-weight: 900;
}
.thanks h2 {
  margin: 0 0 8px;
  font-size: 30px;
}
.thanks p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .language-picker {
    width: 100%;
  }
  .language-picker button {
    flex: 1;
  }
  main {
    margin-top: 28px;
  }
  .question {
    padding: 16px;
  }
  .choices,
  .choices.two {
    grid-template-columns: 1fr;
  }
  footer {
    align-items: stretch;
    flex-direction: column;
  }
  footer button {
    width: 100%;
  }
}

/* Conditional questions must stay hidden despite layout display rules. */
#feedback-form [hidden] { display: none !important; }
#feedback-form .question > span { gap: 8px; }
#feedback-form input[type=date] { font: inherit; max-width: 100%; }
