:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #152235;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, #f4f7fb 310px),
    #f4f7fb;
}

.site-shell {
  max-width: 920px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(132, 148, 168, 0.22);
  padding: 26px 0 22px;
}

.logo-link {
  display: inline-flex;
  line-height: 0;
}

.logo-link img {
  width: 203px;
  max-width: 46vw;
  height: auto;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.page {
  flex: 1;
  padding: 34px 0 54px;
}

.header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #49627d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 760;
}

h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.muted,
.survey-row p,
.save-state {
  color: #5f6f83;
}

.survey-list,
.survey-form {
  display: grid;
  gap: 18px;
}

.language-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #40536a;
  font-size: 14px;
  font-weight: 700;
}

.language-form select {
  min-height: 40px;
  border: 1px solid #c7d0dc;
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: #ffffff;
  font: inherit;
  color: #172033;
}

.survey-row,
.question {
  border: 1px solid rgba(184, 194, 208, 0.74);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(32, 50, 74, 0.06);
}

.survey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.survey-row:hover {
  border-color: rgba(28, 95, 143, 0.32);
  box-shadow: 0 14px 34px rgba(32, 50, 74, 0.09);
  transform: translateY(-1px);
}

.survey-row-content {
  min-width: 0;
}

.question {
  margin: 0;
  padding: 22px 24px;
}

.question-error {
  border-color: #c53434;
  box-shadow: 0 10px 28px rgba(197, 52, 52, 0.08);
}

legend {
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.45;
}

legend span {
  color: #c53434;
}

input[type='text'],
input[type='date'],
textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #c7d0dc;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fbfcfe;
  font: inherit;
  color: #152235;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input[type='text']:focus,
input[type='date']:focus,
textarea:focus {
  outline: 0;
  border-color: #1c5f8f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(28, 95, 143, 0.13);
}

textarea {
  resize: vertical;
}

input[type='date'] {
  max-width: 220px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  color: #25364b;
}

.option input {
  accent-color: #1c5f8f;
}

button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: #1c5f8f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(28, 95, 143, 0.2);
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:hover,
.text-link:hover {
  background: #174f78;
  box-shadow: 0 10px 22px rgba(28, 95, 143, 0.24);
  transform: translateY(-1px);
}

button:disabled {
  background: #9aa8b8;
  cursor: not-allowed;
}

.finish-button {
  justify-self: start;
  min-width: 132px;
}

.alert {
  margin-bottom: 16px;
  border: 1px solid #e29b9b;
  border-radius: 8px;
  background: #fff4f4;
  color: #842727;
  padding: 14px 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(132, 148, 168, 0.26);
  padding: 26px 0 34px;
  color: #40536a;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer address {
  font-style: normal;
}

.site-footer p {
  margin: 0 0 12px;
}

.site-footer a {
  color: #1c5f8f;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-meta {
  text-align: right;
}

@media (max-width: 640px) {
  .site-shell {
    padding: 0 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 22px;
  }

  .header-actions,
  .language-form {
    width: 100%;
  }

  .language-form {
    justify-content: space-between;
  }

  .language-form select {
    flex: 1;
    max-width: 220px;
  }

  .page {
    padding: 24px 0 42px;
  }

  h1 {
    font-size: 28px;
  }

  .survey-row {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .question {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 18px;
  }

  .footer-meta {
    text-align: left;
  }
}
