:root {
  --bg: #edf3f0;
  --ink: #1a2b24;
  --muted: #5f7369;
  --line: #cfdcd4;
  --accent: #1f6b4f;
  --accent-dark: #16553e;
  --card: #ffffff;
  --danger: #b42318;
  --ok: #157347;
  --radius: 14px;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, #cfe8da 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 0%, #d9e6f2 0%, transparent 50%),
    linear-gradient(180deg, #f4faf6 0%, var(--bg) 40%, #e7efe9 100%);
}

body {
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.hero {
  padding: 36px 22px 18px;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.main {
  padding: 0 16px 24px;
}

.type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.type-tab {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.type-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.form {
  background: var(--card);
  border: 1px solid rgba(31, 107, 79, 0.08);
  border-radius: 20px;
  padding: 18px 16px 20px;
  box-shadow: 0 12px 28px rgba(26, 43, 36, 0.06);
}

.field {
  display: block;
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.label em {
  color: var(--danger);
  font-style: normal;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.12);
}

.radio-row,
.radio-grid {
  display: grid;
  gap: 8px;
}

.radio-row {
  grid-template-columns: 1fr 1fr;
}

.radio-grid {
  grid-template-columns: 1fr 1fr;
}

.radio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  text-align: center;
}

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio:has(input:checked) {
  border-color: var(--accent);
  background: rgba(31, 107, 79, 0.08);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(36px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(86vw, 360px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(26, 43, 36, 0.92);
  color: #fff;
  font-size: 14px;
  z-index: 50;
}

.success-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 26, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 60;
}

.success-card {
  width: min(100%, 320px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31, 107, 79, 0.12);
  color: var(--ok);
  font-size: 28px;
  font-weight: 700;
}

.success-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.success-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.success-card button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
}

.error-page h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.error-page p {
  margin: 0;
  color: var(--muted);
}
