/* ════════ Survey page ════════ */
.sv-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

/* ── Hero ── */
.sv-hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 158, 11, .12), rgba(255, 255, 255, .03));
  border: 1px solid rgba(245, 158, 11, .25);
}
.sv-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.sv-hero > * { position: relative; z-index: 1; }
.sv-hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fbbf24;
  border-radius: 18px;
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(245, 158, 11, .35);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .2);
}
.sv-title {
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: .6rem;
}
.sv-desc {
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  max-width: 560px;
  margin: 0 auto .9rem;
  line-height: 1.6;
}
.sv-anon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 999px;
  padding: .35rem .9rem;
}

/* ── Empty state ── */
.sv-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .55);
}
.sv-empty i { font-size: 2.6rem; color: rgba(245, 158, 11, .5); margin-bottom: 1rem; }

/* ── Question card ── */
.sv-q {
  position: relative;
  margin-bottom: 1.1rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.sv-q:hover {
  border-color: rgba(245, 158, 11, .3);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
}
.sv-q-head {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.sv-q-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, .15);
  border-radius: 9px;
}
.sv-q-text {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  padding-top: .15rem;
}
.sv-req { color: #f87171; margin-left: .15rem; }

/* ── Rating ── */
.sv-rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
}
.sv-rating-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sv-rating-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .7rem .3rem;
  cursor: pointer;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid rgba(255, 255, 255, .1);
  transition: all .18s;
  user-select: none;
}
.sv-rating-opt:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); }
.sv-rating-emoji {
  font-size: 1.5rem;
  line-height: 1;
  filter: grayscale(.5) opacity(.65);
  transition: filter .18s, transform .18s;
}
.sv-rating-num { font-size: .9rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.sv-rating-label {
  font-size: .62rem;
  color: rgba(255, 255, 255, .5);
  text-align: center;
  line-height: 1.2;
}
/* selected — ไล่สีแดง→เขียวตามคะแนน */
.sv-rating-input:checked + .sv-rating-opt {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.sv-rating-input:checked + .sv-rating-opt .sv-rating-emoji {
  filter: none;
  transform: scale(1.18);
}
.sv-rating-input:checked + .sv-rate-1 { border-color: #ef4444; box-shadow: 0 6px 18px rgba(239, 68, 68, .3); }
.sv-rating-input:checked + .sv-rate-2 { border-color: #f97316; box-shadow: 0 6px 18px rgba(249, 115, 22, .3); }
.sv-rating-input:checked + .sv-rate-3 { border-color: #eab308; box-shadow: 0 6px 18px rgba(234, 179, 8, .3); }
.sv-rating-input:checked + .sv-rate-4 { border-color: #84cc16; box-shadow: 0 6px 18px rgba(132, 204, 22, .3); }
.sv-rating-input:checked + .sv-rate-5 { border-color: #22c55e; box-shadow: 0 6px 18px rgba(34, 197, 94, .3); }
.sv-rating-input:focus-visible + .sv-rating-opt { outline: 2px solid #fbbf24; outline-offset: 2px; }

/* ── Choice ── */
.sv-choices { display: flex; flex-direction: column; gap: .6rem; }
.sv-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sv-choice-opt {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  cursor: pointer;
  border-radius: 13px;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
  transition: all .18s;
  user-select: none;
}
.sv-choice-opt:hover { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .06); }
.sv-choice-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  position: relative;
  transition: border-color .18s;
}
.sv-choice-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fbbf24;
  transform: scale(0);
  transition: transform .18s;
}
.sv-choice-input:checked + .sv-choice-opt {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, .12);
  color: #fff;
}
.sv-choice-input:checked + .sv-choice-opt .sv-choice-dot { border-color: #fbbf24; }
.sv-choice-input:checked + .sv-choice-opt .sv-choice-dot::after { transform: scale(1); }
.sv-choice-input:focus-visible + .sv-choice-opt { outline: 2px solid #fbbf24; outline-offset: 2px; }

/* ── Text ── */
.sv-textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: .9rem 1.1rem;
  border-radius: 13px;
  color: #fff;
  font-size: .95rem;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid rgba(255, 255, 255, .12);
  transition: border-color .18s, box-shadow .18s;
}
.sv-textarea::placeholder { color: rgba(255, 255, 255, .35); }
.sv-textarea:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

/* ── Submit ── */
.sv-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: .95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1205;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 10px 28px rgba(245, 158, 11, .35);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.sv-submit:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 34px rgba(245, 158, 11, .45); }
.sv-submit:active { transform: translateY(0); }
.sv-foot-note {
  text-align: center;
  margin-top: .9rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
}

@media (max-width: 480px) {
  .sv-rating { gap: .35rem; }
  .sv-rating-opt { padding: .55rem .15rem; border-radius: 11px; }
  .sv-rating-emoji { font-size: 1.25rem; }
  .sv-rating-label { display: none; }
  .sv-title { font-size: 1.35rem; }
}
