@charset "UTF-8";
/* ── Survey page ───────────────────────────────────── */
.survey-page {
  padding: 48px 0 72px;
  background: url(https://lamdongfpdf.gov.vn/img/upload/images/layout/footer-bg.webp);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}
.survey-page .container {
  position: relative;
  z-index: 3;
}
.survey-page::after {
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(146, 146, 146, 0.5);
  z-index: 2;
  backdrop-filter: blur(7px);
}

.survey-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.survey-intro__icon {
  width: 64px;
  height: 64px;
  background: #e8f3e9;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.survey-intro__title {
  font-size: 26px;
  font-weight: 700;
  color: #017435;
  margin-bottom: 10px;
}

.survey-intro__desc {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

/* Card */
.survey-card {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  padding: 40px 48px 48px;
}

@media (max-width: 640px) {
  .survey-card {
    padding: 28px 20px 36px;
  }
}
/* Question block */
.sq {
  margin-bottom: 36px;
}

.sq:last-of-type {
  margin-bottom: 0;
}

.sq__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 14px;
  line-height: 1.5;
}

.sq__required {
  color: #c7202c;
  margin-left: 2px;
}

/* Star-rating */
.star-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  flex-wrap: wrap;
}
.star-group span {
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
}

.star-group input[type=radio] {
  display: none;
}

.star-group label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}

.star-group label:hover {
  transform: scale(1.08);
}

.star-group label svg {
  display: block;
}

.star-icon {
  fill: #e0e0e0;
  transition: fill 0.15s;
}

.star-group input:checked ~ label .star-icon,
.star-group label:hover .star-icon,
.star-group label:hover ~ label .star-icon {
  /* JS-driven, see below */
}

.star-group__text {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* Radio cards (Q5) */
.radio-cards {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.radio-cards input[type=radio] {
  display: none;
}

.radio-cards label {
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.radio-cards label .rc-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #bbb;
  flex: none;
  transition: border-color 0.15s, background 0.15s;
}

.radio-cards input:checked + label {
  border-color: #017435;
  background: #e8f3e9;
  color: #014d22;
}

.radio-cards input:checked + label .rc-dot {
  border-color: #017435;
  background: #017435;
}

/* Textarea */
.sq textarea {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.sq textarea:focus {
  outline: none;
  border-color: #017435;
}

/* Info row */
.sq-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .sq-info-row {
    grid-template-columns: 1fr;
  }
}
.sq input[type=text],
.sq input[type=email] {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  transition: border-color 0.15s;
}

.sq input:focus {
  outline: none;
  border-color: #017435;
}

/* Submit */
.survey-submit {
  margin-top: 36px;
  text-align: center;
}

.survey-submit__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #017435;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.survey-submit__btn:hover {
  background: #015c2a;
  transform: translateY(-1px);
}

.survey-submit__note {
  margin-top: 10px;
  font-size: 13px;
  color: #888;
}

/* Progress bar */
.survey-progress {
  height: 4px;
  background: #e5e5e5;
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}

.survey-progress__bar {
  height: 100%;
  background: #017435;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Divider */
.sq-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 28px 0;
}

/* Success state */
.survey-success {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.survey-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f3e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.survey-success__title {
  font-size: 22px;
  font-weight: 700;
  color: #017435;
  margin-bottom: 10px;
}

.survey-success__msg {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.survey-success__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #017435;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #017435;
  border-radius: 40px;
  padding: 10px 28px;
  transition: background 0.15s, color 0.15s;
}

.survey-success__back:hover {
  background: #017435;
  color: #fff;
}

/* Error */
.survey-errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.survey-errors ul {
  margin: 0;
  padding-left: 20px;
}

.survey-errors li {
  font-size: 14px;
  color: #b91c1c;
}
