:root {
  --bg: #f6f7f5;
  --card: rgba(255,255,255,.86);
  --text: #1f2a24;
  --muted: #66736b;
  --line: #dfe6de;
  --green: #3a8f68;
  --green-2: #62bb91;
  --shadow: 0 18px 55px rgba(36, 58, 45, .12);
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(103, 192, 149, .22), transparent 28%),
    radial-gradient(circle at 85% 6%, rgba(145, 210, 182, .22), transparent 24%),
    var(--bg);
}
.shell { max-width: 1120px; margin: 0 auto; padding: 42px 18px 80px; }
.hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin-bottom: 22px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 56px); letter-spacing: -1.5px; line-height: 1.05; }
.lead { margin: 0; color: var(--muted); max-width: 780px; font-size: 17px; line-height: 1.8; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel {
  background: var(--card); border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; backdrop-filter: blur(14px); margin-top: 18px;
}
.hidden { display: none !important; }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-title span { background: #e7f5ee; color: var(--green); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; }
.section-title h2 { margin: 0; font-size: 26px; }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.identity-card {
  border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 24px;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.identity-card:hover { transform: translateY(-4px); box-shadow: 0 14px 35px rgba(36, 58, 45, .12); border-color: var(--green-2); }
.identity-card h3 { margin: 0 0 10px; font-size: 24px; }
.identity-card p { color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 12px; background: #eff8f3; color: var(--green); font-weight: 700; }
.admin-link, .primary-btn, .ghost-btn {
  border-radius: 999px; padding: 12px 18px; text-decoration: none; border: none; cursor: pointer; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.admin-link, .ghost-btn { background: #fff; color: var(--text); border: 1px solid var(--line); }
.primary-btn { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; box-shadow: 0 10px 24px rgba(58,143,104,.25); }
.form-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-top: 18px; }
.form-head h2 { margin: 0 0 8px; font-size: 30px; }
.muted { color: var(--muted); line-height: 1.7; }
.progress-card { min-width: 210px; background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: 18px; }
.progress-track { height: 8px; background: #e9efea; border-radius: 999px; overflow: hidden; margin-top: 10px; }
#progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--green-2)); border-radius: 999px; }
.respondent-card { margin: 22px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.respondent-card h3 { margin: 0 0 14px; }
.respondent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
label { display: block; font-weight: 700; color: #34443a; }
input[type="text"], textarea {
  width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb;
  font: inherit; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(98,187,145,.14); }
.question-section { margin: 28px 0 14px; font-size: 20px; color: var(--green); }
.question-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 14px 0; }
.question-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-weight: 800; line-height: 1.6; }
.qno { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #eff8f3; color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fbfcfb; display: flex; align-items: center; gap: 10px;
}
.option input { width: 17px; height: 17px; }
.other-input { margin-top: 12px; display: none; }
.other-input.show { display: block; }
.submit-bar { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 20px; }
.success-icon { width: 58px; height: 58px; border-radius: 50%; background: #e8f6ef; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-item { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 16px; margin: 10px 0; }
.admin-actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-actions a { font-size: 14px; padding: 8px 12px; }
@media (max-width: 820px) {
  .hero, .form-head, .submit-bar { flex-direction: column; }
  .identity-grid, .respondent-grid, .options { grid-template-columns: 1fr; }
  .progress-card { width: 100%; }
  .admin-item { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
