:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #1e2a36;
  --muted: #62707d;
  --line: #d7ddd4;
  --accent: #1f5e4f;
  --accent-soft: #e0efe9;
  --danger: #a23b32;
  --danger-soft: #f7e6e3;
  --success: #166046;
  --success-soft: #e3f2eb;
  --shadow: 0 18px 45px rgba(30, 42, 54, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(207, 227, 210, 0.9), transparent 30%),
    linear-gradient(180deg, #f9f7f2 0%, #f1eee8 100%);
  font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.site-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(31, 94, 79, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-card,
.thankyou-card,
.admin-card,
.interview-card {
  max-width: 760px;
  margin: 0 auto;
}

.survey-card {
  padding: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.info-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--ink);
}

.source-chip {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #486070;
  font-size: 13px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  color: var(--ink);
}

.consent-row input {
  margin-top: 4px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #eef1f4;
  color: var(--ink);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.muted {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.notice-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.notice-item,
.stat-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9fb;
  border: 1px solid #e5eaef;
}

.notice-item strong,
.stat-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.inline-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.inline-status.info {
  background: #eef4fb;
  color: #365f82;
}

.inline-status.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.inline-status.success {
  background: var(--success-soft);
  color: var(--success);
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.survey-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.survey-finish {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label,
.stack-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.stack-form span,
.stack-form legend {
  font-weight: 600;
  font-size: 14px;
}

.stack-form input[type="text"],
.stack-form input[type="email"],
.stack-form select,
.stack-form textarea {
  width: 100%;
  border: 1px solid #ccd5dc;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-survey .sd-root-modern {
  --sjs-general-backcolor: #ffffff;
  --sjs-primary-backcolor: var(--accent);
  --sjs-primary-forecolor: #ffffff;
  --sjs-primary-backcolor-dark: #17483d;
  --sjs-primary-backcolor-light: #dbeee8;
  --sjs-border-default: #d6ddd6;
  --sjs-shadow-small: 0 8px 20px rgba(30, 42, 54, 0.06);
  font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
}

.page-survey .sd-container-modern {
  background: transparent;
}

.page-survey .sd-body {
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: none;
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 16px;
  }

  .card {
    border-radius: 18px;
    padding: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .page-survey .sd-body {
    padding: 12px 10px;
  }
}
