.survey{
  --bg:#f7f9fc;
  --card:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --muted2:#6b7280;
  --border:#e5e7eb;
  --border2:#d1d5db;
  --shadow:0 14px 40px rgba(17,24,39,.10);
  --radius:18px;
  --radius2:12px;
  --accent:#4f46e5;
  --accent2:#06b6d4;
  --focus:0 0 0 4px rgba(79,70,229,.20);

  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(79,70,229,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(6,182,212,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  padding:clamp(18px,3vw,36px);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans","Liberation Sans",sans-serif;
}
.survey__container{max-width:100%;margin:0 auto}
.survey__header{
  padding:22px 22px 10px;border:1px solid var(--border);
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)
}
.survey__badge{
  display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;
  border:1px solid var(--border2);background:#eef2ff;color:#3730a3;
  font-size:12px;letter-spacing:.2px;margin:0 0 10px;font-weight:650
}
.survey__title{margin:0 0 10px;font-size:clamp(20px,2.1vw,28px);line-height:1.2;letter-spacing:-.2px}
.survey__subtitle{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:1.65}

.survey__notice{margin-top:14px;border-radius:14px;padding:12px 14px;border:1px solid var(--border);background:#fff}
.survey__notice--ok{border-color:#bbf7d0;background:#f0fdf4}
.survey__notice--err{border-color:#fecaca;background:#fef2f2}

.survey__form{
  margin-top:14px;border:1px solid var(--border);
  background:linear-gradient(180deg,#fff,#fbfcff);
  border-radius:var(--radius);box-shadow:var(--shadow);padding:18px
}
.survey__fieldset{border:1px solid var(--border);border-radius:var(--radius2);padding:16px;margin:0 0 14px;background:#fff}
.survey__legend{padding:0 10px;color:var(--text);font-weight:750;letter-spacing:.2px}
.survey__field{display:grid;gap:10px;padding:12px 0;border-top:1px dashed #e5e7eb}
.survey__field:first-of-type{border-top:none;padding-top:6px}
.survey__label{margin:0;font-weight:650;font-size:14px;color:var(--text);line-height:1.45}
.survey__hint{color:var(--muted2);font-weight:550;font-size:12px;margin-left:6px}
.survey__micro{margin:6px 0 0;font-size:12px;color:var(--muted2)}
.survey__control{
  width:100%;border-radius:12px;border:1px solid var(--border2);
  background:#fff;color:var(--text);padding:12px;font-size:14px;outline:none;
  transition:border-color .15s ease,box-shadow .15s ease
}
.survey__control:focus{border-color:rgba(79,70,229,.75);box-shadow:var(--focus)}
.survey__choices,.survey__checks,.survey__likert{display:grid;gap:10px}
.survey__choice,.survey__check,.survey__likertItem{
  display:grid;grid-template-columns:18px 1fr;align-items:start;gap:10px;
  padding:12px;border-radius:14px;border:1px solid var(--border);
  background:#f9fafb;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease
}
.survey__choice:hover,.survey__check:hover,.survey__likertItem:hover{
  border-color:#c7d2fe;background:#eef2ff;transform:translateY(-1px)
}
.survey__choice input,.survey__check input,.survey__likertItem input{margin-top:2px;accent-color:var(--accent)}
.survey__consent{padding:6px 2px 12px}
.survey__actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:8px}
.survey__btn{
  border:1px solid var(--border2);background:#fff;color:var(--text);
  padding:12px 14px;border-radius:14px;font-weight:700;font-size:14px;cursor:pointer;
  transition:transform .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease
}
.survey__btn:hover{background:#f9fafb;transform:translateY(-1px)}
.survey__btn:focus{outline:none;box-shadow:var(--focus);border-color:rgba(79,70,229,.65)}
.survey__btn--primary{
  background:linear-gradient(135deg,rgba(79,70,229,1),rgba(6,182,212,.95));
  color:#fff;border-color:transparent
}
.survey__footnote{margin:14px 2px 2px;color:var(--muted2);font-size:12px;line-height:1.55}

/* Intro */
.survey__intro{margin-top:14px;margin-bottom:14px}
.survey__introGrid{display:grid;gap:12px}
.survey__introCard{
  border:1px solid var(--border);
  background:linear-gradient(180deg,#fff,#fbfcff);
  border-radius:var(--radius2);
  padding:16px;box-shadow:0 10px 28px rgba(17,24,39,.06)
}
.survey__introCard--note{border-color:rgba(79,70,229,.25);background:linear-gradient(180deg,#eef2ff,#fff)}
.survey__introTitle{margin:0 0 8px;font-size:16px;line-height:1.25;letter-spacing:-.1px;font-weight:800;color:var(--text)}
.survey__introText{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.survey__introText + .survey__introText{margin-top:10px}
.survey__introText--small{font-size:12.5px;color:var(--muted2)}
.survey__introList{margin:0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.7}
.survey__introList strong{color:var(--text)}

/* Progress */
.survey__progress{
  margin-top:16px;padding:14px;border-radius:14px;border:1px solid var(--border);
  background:linear-gradient(180deg,#fff,#fbfcff);box-shadow:0 10px 28px rgba(17,24,39,.06)
}
.survey__progressHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.survey__progressLabel{font-size:13px;font-weight:700;color:var(--text)}
.survey__progressValue{font-size:13px;font-weight:700;color:var(--accent)}
.survey__progressBar{width:100%;height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden}
.survey__progressFill{height:100%;width:0%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:999px;transition:width .3s ease}

@media (max-width:520px){
  .survey__form{padding:14px}
  .survey__fieldset{padding:14px}
  .survey__choice,.survey__check,.survey__likertItem{padding:10px}
}
@media (prefers-reduced-motion: reduce){
  .survey__choice,.survey__check,.survey__likertItem,.survey__btn,.survey__progressFill{transition:none}
  .survey__choice:hover,.survey__check:hover,.survey__likertItem:hover,.survey__btn:hover{transform:none}
}
