body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef4fa;
  color: #17324d;
}

.survey-page {
  min-height: 100vh;
  padding: 32px 18px 48px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top left, rgba(74, 178, 221, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(15, 50, 97, 0.1), rgba(255, 255, 255, 0));
}

.survey-shell {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 48px rgba(23, 50, 77, 0.12);
}

.survey-back {
  color: #1f6fb2;
  text-decoration: none;
  font-weight: 700;
}

.survey-kicker {
  margin: 18px 0 8px;
  color: #1f6fb2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 8px;
  color: #0f3261;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.survey-description,
.survey-intro,
.survey-help,
.survey-notice,
.survey-info {
  color: #35516f;
  line-height: 1.65;
}

.survey-toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: 180px 1fr;
  align-items: center;
  margin: 24px 0 20px;
}

.survey-progress-label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #58708a;
}

.survey-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #dce8f4;
  overflow: hidden;
}

.survey-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1f6fb2, #4ab2dd);
  transition: width 0.2s ease;
}

.survey-notice,
.survey-info {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f3f8fd;
  border: 1px solid #d4e3f2;
}

.survey-questions {
  display: grid;
  gap: 18px;
}

.survey-card {
  border: 1px solid #d8e4f1;
  border-radius: 22px;
  padding: 22px;
  background: #fbfdff;
}

.survey-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #0f3261;
}

.survey-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.survey-step {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #58708a;
  font-weight: 700;
}

.survey-required {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f2fb;
  color: #0f3261;
  font-size: 0.78rem;
  font-weight: 700;
}

.survey-field ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.survey-type-single_choice ul,
.survey-type-yes_no ul {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.survey-type-single_choice li,
.survey-type-yes_no li {
  margin: 0;
}

.survey-type-single_choice label,
.survey-type-yes_no label {
  display: grid;
  height: 100%;
  gap: 10px;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 16px 12px;
  border: 1px solid #cddceb;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.survey-type-single_choice label:hover,
.survey-type-yes_no label:hover {
  transform: translateY(-1px);
  border-color: #1f6fb2;
  box-shadow: 0 10px 20px rgba(31, 111, 178, 0.08);
}

.survey-field input[type="radio"],
.survey-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1f6fb2;
}

.survey-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.survey-likert {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 10px 0 2px;
}

.survey-likert-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.survey-star-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.survey-star-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.survey-star-icon {
  font-size: 2rem;
  line-height: 1;
  color: #c7d8ea;
  transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.survey-star-option:hover .survey-star-icon,
.survey-star-option.is-preview .survey-star-icon,
.survey-star-option.is-active .survey-star-icon {
  color: #1f6fb2;
  transform: scale(1.08);
  text-shadow: 0 6px 14px rgba(31, 111, 178, 0.16);
}

.survey-star-option input:focus-visible + .survey-star-icon {
  outline: 3px solid rgba(31, 111, 178, 0.22);
  outline-offset: 6px;
  border-radius: 8px;
}

.survey-likert-scale {
  width: min(100%, 420px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #58708a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.survey-likert-current {
  margin: 0;
  min-height: 1.5em;
  color: #0f3261;
  font-weight: 700;
  text-align: center;
}

.survey-field input[type="text"],
.survey-field textarea,
.survey-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #c9d7e6;
  box-sizing: border-box;
  font: inherit;
}

.errorlist {
  margin: 0 0 12px;
  padding: 10px 12px;
  list-style: none;
  border-radius: 12px;
  background: #fdecec;
  color: #9b1c1c;
}

.survey-mobile-nav {
  display: none;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.survey-submit {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #1f6fb2;
  background: #1f6fb2;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.btn-outline {
  background: #fff;
  color: #1f6fb2;
}

@media (max-width: 768px) {
  .survey-shell {
    padding: 20px;
    border-radius: 22px;
  }

  .survey-toolbar {
    grid-template-columns: 1fr;
  }

  .survey-type-single_choice ul,
  .survey-type-yes_no ul {
    grid-template-columns: 1fr;
  }

  .survey-likert-stars {
    gap: 8px;
  }

  .survey-star-option {
    width: 36px;
    height: 36px;
  }

  .survey-star-icon {
    font-size: 1.6rem;
  }

  .survey-likert-scale {
    width: 100%;
    font-size: 0.74rem;
  }

  .survey-card {
    display: none;
  }

  .survey-card.is-active {
    display: block;
  }

  .survey-mobile-nav {
    display: flex;
  }

  .survey-submit {
    justify-content: stretch;
  }

  .survey-submit .btn {
    width: 100%;
  }
}
