:root {
  --ink: #1b1b1b;
  --ink-soft: #555c63;
  --line: #d8dbdf;
  --bg: #f5f6f4;
  --card: #ffffff;
  --green: #2f5d33;
  --green-dark: #234526;
  --error: #8a1c1c;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--green); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border-bottom: 3px solid var(--green);
}
.logo { max-height: 100px; width: auto; }
.phone { font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.sheet {
  max-width: 680px;
  margin: 24px auto;
  padding: 0 16px;
}

.notice {
  background: #fff8e6;
  border: 1px solid #e6d69a;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 22px;
}
.notice p { margin: 0; }

h1 { font-size: 26px; margin: 0 0 18px; }

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  margin: 0 0 16px;
}
.step legend {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  padding: 0 6px;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
}

/* Plans */
.group-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.group-head + .plans + .group-head { margin-top: 22px; }
.group-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.group-sub { font-size: 13px; color: var(--ink-soft); }

.plans { display: grid; gap: 8px; }
.plan {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}
.plan:hover { border-color: var(--green); }
.plan:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #f2f7f2;
}
.plan input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.plan-body { display: flex; flex-direction: column; }
.plan-label { font-weight: 600; }
.plan-terms { color: var(--ink-soft); font-size: 14px; }

.misc-amount { margin-top: 14px; }
.misc-amount label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.money { display: flex; align-items: center; gap: 6px; max-width: 200px; }
.money span { font-size: 18px; color: var(--ink-soft); }

.autopay-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--green);
  padding-left: 10px;
}

/* Fields */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.f { margin: 0; min-width: 0; }
.c1 { grid-column: span 1; }
.c2 { grid-column: span 2; }
.c3 { grid-column: span 3; }
.c6 { grid-column: span 6; }
.f label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.f input, .money input, .collect {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* Collect.js injects an iframe into these spans */
.collect { padding: 0; overflow: hidden; }
.collect iframe { width: 100%; height: 42px; border: 0; display: block; }
.collect.is-invalid { border-color: var(--error); }

.secure { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }

.msg {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: var(--radius);
  font-size: 15px;
}
.msg-error { background: #fdecec; border: 1px solid #e2b6b6; color: var(--error); }

.submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font: 600 17px/1 inherit;
  cursor: pointer;
}
.submit:hover:not(:disabled) { background: var(--green-dark); }
.submit:disabled { background: #97a49a; cursor: default; }
.submit:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }

.receipt {
  background: var(--card);
  border: 1px solid var(--green);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px;
}
.receipt h2 { margin: 0 0 6px; color: var(--green-dark); }
.receipt .amt { font-size: 34px; font-weight: 700; margin: 0 0 12px; }
.receipt .ref { font-size: 14px; color: var(--ink-soft); margin: 4px 0; }

.foot {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--ink-soft);
}
.thanks { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.powered { font-size: 13px; margin: 0; }
.powered img { vertical-align: middle; margin-left: 6px; }

@media (max-width: 620px) {
  .c1, .c2, .c3 { grid-column: span 6; }
  .c1 { grid-column: span 2; }
  .c2 { grid-column: span 4; }
  .masthead { flex-direction: column; text-align: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
