:root {
  --teal: #0b7080;
  --deep: #144e63;
  --turquoise: #3ac4cd;
  --ink: #181e1f;
  --muted: #526168;
  --paper: #fff;
  --wash: #f1f7f7;
  --line: #cbdadb;
  --error: #a82242;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  overflow-x: clip;
}
body {
  font: 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--turquoise);
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  background: var(--teal);
  color: var(--paper);
  padding: 13px 24px;
  font-weight: 650;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover {
  background: var(--deep);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button.secondary {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
header,
footer {
  max-width: 1240px;
  margin: auto;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
header {
  border-bottom: 1px solid var(--line);
}
header img {
  display: block;
  max-width: 100%;
  height: auto;
}
header span,
footer {
  font-size: 13px;
  color: var(--muted);
}
.layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  padding: 64px 40px 80px;
}
.introduction h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--deep);
  max-width: 13ch;
  overflow-wrap: anywhere;
}
.introduction > p {
  max-width: 46ch;
}
.introduction figure {
  margin: 32px 0 28px;
}
.introduction figure img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  display: block;
}
.introduction figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.privacy,
.contact {
  font-size: 13px;
  color: var(--muted);
}
.contact {
  color: var(--teal);
}
.question-panel {
  min-width: 0;
  padding-top: 6px;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  gap: 12px;
}
.progress-row #save-status {
  color: var(--teal);
  text-align: right;
}
progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  margin: 14px 0 36px;
  background: var(--line);
  color: var(--teal);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--teal);
  transition: none;
}
progress::-moz-progress-bar {
  background: var(--teal);
}
h2 {
  font-size: clamp(23px, 2.1vw, 29px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 550;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.help {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}
.options {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}
.option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.45;
  font-size: 16px;
  transition:
    border-color 0.16s,
    background 0.16s;
}
.option:hover {
  border-color: var(--teal);
}
.option:has(input:checked) {
  border-color: var(--teal);
  background: var(--wash);
}
.option input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--teal);
}
textarea,
input[type="email"],
input[type="password"],
input[type="text"],
select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--teal);
}
textarea {
  resize: vertical;
  min-height: 155px;
}
textarea::placeholder,
input::placeholder {
  color: var(--muted);
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 16px;
}
.actions #next {
  margin-left: auto;
  white-space: nowrap;
}
.fineprint {
  font-size: 12px;
  color: var(--muted);
  max-width: 52ch;
}
.error {
  color: var(--error);
  font-size: 14px;
  margin: 16px 0 0;
}
.error:empty {
  display: none;
}
#preview-banner,
.notice {
  padding: 12px 16px;
  background: var(--wash);
  color: var(--deep);
  margin-bottom: 20px;
  font-size: 14px;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 20px;
}
.thanks {
  padding: 25px 0;
}
.thanks a {
  display: inline-block;
  margin-top: 20px;
}
#survey {
  animation: arrive 0.23s ease-out;
}
@keyframes arrive {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}
[hidden] {
  display: none !important;
}
.editor {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}
.editor h1 {
  color: var(--deep);
}
.editor label {
  display: block;
  font-size: 14px;
  margin: 16px 0 6px;
}
.editor .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}
.editor .question-edit {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.editor .columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.editor details {
  margin: 16px 0;
}
.editor summary {
  cursor: pointer;
  color: var(--teal);
}
.editor .response {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.editor dd {
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editor dt {
  font-weight: 600;
}
.editor pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editor .meta {
  font-size: 13px;
  color: var(--muted);
}
.editor #login {
  max-width: 440px;
}
.editor .option-edit {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}
.editor .question-edit input[type="checkbox"] {
  accent-color: var(--teal);
}
@media (max-width: 800px) {
  .layout {
    gap: 34px;
    padding: 36px 24px;
    grid-template-columns: minmax(0, 1fr);
  }
  header,
  footer {
    padding-inline: 24px;
  }
  .introduction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 16px;
  }
  .introduction h1 {
    font-size: 30px;
    max-width: 19ch;
    margin-bottom: 12px;
  }
  .introduction #intro-copy {
    margin-top: 0;
    font-size: 15px;
  }
  .introduction figure {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    align-self: center;
  }
  .introduction figure img {
    height: 100px;
  }
  .introduction figcaption {
    display: none;
  }
  .introduction .privacy {
    grid-column: 1/-1;
    margin-top: 10px;
  }
  .introduction .contact {
    grid-column: 1/-1;
  }
  .question-panel {
    padding: 0;
  }
  progress {
    margin-bottom: 26px;
  }
  header span {
    display: none;
  }
  .editor .columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 380px) {
  .layout,
  header,
  footer {
    padding-inline: 18px;
  }
  .introduction {
    display: block;
  }
  .introduction figure {
    display: none;
  }
  .option {
    padding: 12px;
  }
  .editor .option-edit {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
