:root {
  --ink: #17211d;
  --muted: #607169;
  --line: #dce5e0;
  --surface: #fff;
  --soft: #f2f7f4;
  --primary: #0f766e;
  --primary-strong: #095f59;
  --danger: #b42318;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-width: 320px;
  background: #edf3f0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, textarea, select { font: inherit; }
.topbar { background: #123f36; color: #fff; }
.topbar-inner {
  width: min(980px, calc(100% - 28px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  font-weight: 800;
}
.page {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 56px;
}
.intro { margin-bottom: 20px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 34px; line-height: 1.2; }
h2 {
  margin: 30px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}
.intro p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}
em { color: var(--danger); font-style: normal; }
.form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(23, 33, 29, .08);
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
label { display: block; min-width: 0; }
label.full { grid-column: 1 / -1; }
label > span {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #c7d3cc;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
input, select { height: 48px; padding: 0 13px; }
textarea {
  min-height: 110px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.65;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.promise {
  margin-top: 24px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.65;
}
.promise input {
  width: auto;
  height: auto;
  margin-top: 5px;
}
.form-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.form-actions button, .success-view button {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.form-actions button:hover { background: var(--primary-strong); }
.form-actions button:disabled { opacity: .55; cursor: wait; }
.status {
  margin: 0 auto 0 0;
  color: var(--danger);
  font-size: 14px;
}
.success-view {
  min-height: 360px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.success-view[hidden] { display: none; }
.success-mark {
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcefe7;
  color: var(--primary);
  font-size: 34px;
}
.success-view p { color: var(--muted); }
.success-view button {
  border-color: #c7d3cc;
  background: #fff;
  color: var(--ink);
}
@media (max-width: 640px) {
  .page, .topbar-inner { width: calc(100% - 24px); }
  .page { padding: 24px 0 40px; }
  h1 { font-size: 29px; }
  .form-card { padding: 20px 15px; }
  .form-grid { grid-template-columns: 1fr; }
  label.full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .status { margin: 0; }
  .form-actions button { width: 100%; }
}
