:root {
  --green-950: #113a30;
  --green-850: #185545;
  --green-700: #22755c;
  --mint-100: #e8f5ef;
  --mint-50: #f5fbf8;
  --gold: #d9aa3d;
  --gold-soft: #fff4d7;
  --ink: #1d2b27;
  --muted: #64736d;
  --line: #dbe6df;
  --surface: #ffffff;
  --shadow: 0 20px 55px rgba(17, 58, 48, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(90deg, rgba(232, 245, 239, 0.72) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, rgba(232, 245, 239, 0.7), rgba(255, 255, 255, 0.94) 420px),
    #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  color: #eef8f3;
  font-size: 0.9rem;
  background: var(--green-950);
}

.topbar__inner,
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 58, 48, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--green-700);
  border: 3px solid var(--gold);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 11px 14px;
  color: #33413d;
  font-weight: 800;
  border-radius: 6px;
}

.nav-links button {
  padding: 11px 14px;
  color: #33413d;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover,
.nav-links button:focus-visible,
.nav-links button.is-active {
  color: var(--green-850);
  background: var(--mint-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--green-950);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(217, 170, 61, 0.18) 0 1px, transparent 1px 112px),
    linear-gradient(112deg, rgba(17, 58, 48, 0.98), rgba(30, 99, 75, 0.91)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 244, 215, 0.13) 48% 52%, transparent 52% 100%),
    repeating-linear-gradient(0deg, transparent 0 54px, rgba(255, 255, 255, 0.055) 54px 55px);
  opacity: 0.72;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -115px;
  bottom: -125px;
  width: 460px;
  height: 460px;
  border: 78px solid rgba(217, 170, 61, 0.16);
  transform: rotate(15deg);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: center;
  min-height: 540px;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 6vw, 4.55rem);
}

.hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e6f2ed;
  font-size: 1.15rem;
}

.hero__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--green-950);
  font-weight: 900;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.button--primary {
  background: var(--gold);
}

.button--secondary {
  color: var(--green-850);
  background: var(--mint-100);
  border-color: #cde4d8;
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
}

.button--small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.helper-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--green-850);
  font-weight: 900;
}

.helper-link:hover,
.helper-link:focus-visible {
  color: var(--green-950);
  text-decoration: underline;
}

.portal-card,
.action-card,
.price-card,
.form-panel,
.info-card,
.payment-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portal-card {
  padding: 26px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff, #fbfdfa),
    var(--surface);
}

.portal-card h2,
.info-card h3 {
  margin: 10px 0 14px;
  color: var(--green-950);
  line-height: 1.22;
}

.portal-card p,
.info-card p {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  color: #725100;
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--gold-soft);
  border-radius: 999px;
}

.status-pill--success {
  color: #0f5132;
  background: #dff4e8;
}

.metrics {
  display: grid;
  gap: 10px;
  margin: 0;
}

.metrics div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
}

.metrics dd {
  margin: 0;
  color: var(--green-850);
  font-size: 1.25rem;
  font-weight: 900;
}

.quick-actions {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -42px;
}

.action-card {
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.action-card::before,
.price-card::before,
.form-panel::before,
.payment-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green-700));
  border-radius: 999px;
}

.action-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--green-700);
  border-radius: 6px;
}

.action-card strong {
  color: var(--green-950);
  font-size: 1.06rem;
}

.action-card small {
  color: var(--muted);
}

.dashboard-section {
  padding-top: 64px;
  background:
    linear-gradient(180deg, #f6fbf7, #ffffff 78%),
    var(--mint-100);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.dashboard-panel {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #fbfdfa),
    var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-panel--wide {
  grid-row: span 2;
}

.dashboard-panel--accent {
  grid-column: span 2;
  min-height: 180px;
}

.dashboard-panel h2,
.dashboard-panel h3 {
  margin: 0;
  color: var(--green-950);
  line-height: 1.16;
}

.feature-list,
.constitution-card ol,
.constitution-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.dashboard-rates {
  display: grid;
  gap: 10px;
  margin: 0;
}

.dashboard-rates div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dashboard-rates dt {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-rates dd {
  margin: 0;
  color: var(--green-850);
  font-size: 1.35rem;
  font-weight: 900;
  white-space: nowrap;
}

.constitution-section {
  background:
    linear-gradient(180deg, #ffffff, #f4faf6),
    var(--surface);
}

.constitution-body {
  display: grid;
  gap: 16px;
}

.constitution-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 58, 45, 0.07);
}

.constitution-card h3,
.constitution-card h4 {
  color: var(--green-950);
}

.constitution-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.constitution-card h4 {
  margin: 18px 0 8px;
}

.constitution-card p,
.constitution-card li {
  color: var(--muted);
  line-height: 1.68;
}

.constitution-card p {
  margin: 0 0 10px;
}

.constitution-card li + li {
  margin-top: 7px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.price-card {
  display: grid;
  gap: 6px;
  min-height: 160px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #fbfdfa);
  box-shadow: none;
}

.price-card span {
  color: var(--muted);
  font-weight: 800;
}

.price-card strong {
  color: var(--green-850);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1;
}

.price-card small {
  color: #586862;
}

.section {
  padding: 84px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(135deg, rgba(217, 170, 61, 0.055) 0 1px, transparent 1px 28px);
}

.section--compact {
  padding: 70px 0 30px;
}

.section--tint {
  background:
    linear-gradient(90deg, rgba(217, 170, 61, 0.06) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, var(--mint-50), #f8fcfa);
}

.section__header {
  max-width: 800px;
  margin-bottom: 28px;
}

.section__header p:last-child,
.payment-grid p {
  color: var(--muted);
}

.section__header--light p,
.section__header--light a {
  color: #dcece5;
}

.section h2 {
  color: var(--green-950);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section--contact h2 {
  color: #fff;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.update-selector {
  margin-bottom: 18px;
}

.form-panel,
.info-card,
.payment-card {
  padding: 24px;
  background:
    linear-gradient(180deg, #fff, #fbfdfa),
    var(--surface);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #33413d;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd8d1;
  border-radius: 6px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(217, 170, 61, 0.28);
  border-color: var(--gold);
}

.span-2 {
  grid-column: span 2;
}

.location-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: var(--green-950);
  background: var(--mint-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-weight: 700;
}

.checkline input {
  width: 18px;
  min-width: 18px;
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message--success {
  color: #16734b;
}

.form-message--error {
  color: #a7352d;
}

.check-answer {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 18px;
  background: var(--mint-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-answer h3 {
  margin: 0;
  color: var(--green-950);
}

.check-answer p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.payment-history {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.payment-history li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.payment-history strong {
  color: var(--green-850);
}

.dependant-table {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dependant-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(160px, 1fr) 110px 85px minmax(170px, 1fr) 120px;
  gap: 9px;
  min-width: 930px;
}

.dependant-row--head {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
  color: #55645f;
}

.info-card li + li {
  margin-top: 9px;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: center;
}

.bank-box {
  display: grid;
  gap: 5px;
  max-width: 540px;
  margin-top: 24px;
  padding: 18px;
  background: var(--mint-50);
  border-left: 5px solid var(--gold);
}

.bank-box span,
.bank-box small {
  color: var(--muted);
}

.bank-box strong {
  color: var(--green-850);
  font-size: 1.2rem;
}

.qr-box {
  display: grid;
  gap: 10px;
  width: fit-content;
  margin-top: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 58, 48, 0.08);
}

.qr-box img {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  max-height: 440px;
  object-fit: contain;
}

.qr-box span,
.map-link {
  color: var(--green-850);
  font-weight: 900;
}

.payment-card {
  display: grid;
  gap: 16px;
}

.receipt-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--mint-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.receipt-status span {
  color: var(--muted);
  font-weight: 800;
}

.receipt-status strong {
  color: var(--green-950);
  font-size: 1.7rem;
}

.official-receipt {
  display: grid;
  gap: 18px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--green-850);
  border-radius: 8px;
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.receipt-head span,
.receipt-meta span,
.receipt-lines dt {
  color: var(--muted);
  font-weight: 800;
}

.receipt-head h3 {
  margin: 4px 0;
  color: var(--green-950);
}

.receipt-head p {
  margin: 0;
}

.receipt-head > strong {
  color: var(--green-950);
  font-size: 2rem;
}

.receipt-meta,
.receipt-lines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}

.receipt-meta p,
.receipt-lines div {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  background: var(--mint-50);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.receipt-lines {
  margin: 0;
}

.receipt-lines dd {
  margin: 0;
  color: var(--green-950);
  font-weight: 900;
}

.receipt-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.receipt-print-button {
  margin-top: 14px;
}

.section--contact {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(217, 170, 61, 0.16) 0 1px, transparent 1px 90px),
    linear-gradient(135deg, var(--green-950), var(--green-850));
}

.contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.contact-card strong {
  color: #fff;
}

.contact-card span {
  color: #dcece5;
}

.footer {
  color: #5d6964;
  font-size: 0.9rem;
  background: #f4f8f6;
}

.admin-hero {
  background:
    linear-gradient(90deg, rgba(217, 170, 61, 0.06) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, var(--mint-50), #fff);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px);
  gap: 24px;
  align-items: start;
}

.admin-grid h1,
.admin-toolbar h2 {
  margin: 0 0 18px;
  color: var(--green-950);
  line-height: 1.12;
}

.admin-grid label + label {
  margin-top: 14px;
}

.admin-grid .button {
  margin-top: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-toolbar .form-actions {
  margin-top: 0;
}

.admin-filter {
  min-width: 170px;
  text-align: left;
}

.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-bar h3 {
  margin: 0;
}

.admin-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.paid-summary {
  margin: 0 0 18px;
}

.paid-year-totals {
  margin-bottom: 18px;
}

.table-title {
  margin: 0 0 12px;
  color: var(--green-950);
}

.admin-list--wide {
  grid-column: 1 / -1;
}

.admin-tool-wide {
  grid-column: 1 / -1;
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.admin-list h3 {
  margin: 0 0 14px;
  color: var(--green-950);
}

.admin-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff3cf;
  color: #7a4b00;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(222, 174, 54, 0.35);
}

.admin-cards {
  display: grid;
  gap: 14px;
}

.admin-card,
.empty-state {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 58, 48, 0.08);
}

.admin-card h4 {
  margin: 10px 0 8px;
  color: var(--green-950);
  font-size: 1.08rem;
}

.admin-card p {
  margin: 6px 0;
  color: var(--muted);
}

.admin-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.admin-card .form-actions {
  margin-top: 14px;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 58, 48, 0.08);
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.admin-table--locations {
  min-width: 1040px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--green-950);
  font-size: 0.86rem;
  text-transform: uppercase;
  background: var(--mint-50);
}

  .admin-table td {
    color: var(--muted);
    font-weight: 700;
  }

@media (max-width: 960px) {
  .hero__grid,
  .admin-grid,
  .admin-sections,
  .admin-dashboard,
  .admin-tools,
  .form-shell,
  .payment-grid,
  .dashboard-grid,
  .price-grid,
  .contacts {
    grid-template-columns: 1fr;
  }

  .dashboard-panel--wide,
  .dashboard-panel--accent {
    grid-column: auto;
    grid-row: auto;
  }

  .quick-actions {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero__grid {
    min-height: auto;
  }

  .section-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .info-card {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .topbar__inner,
  .footer__inner {
    flex-direction: column;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 115px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .span-2 {
    grid-column: span 1;
  }

  .section {
    padding: 58px 0;
  }

  .hero__grid {
    padding: 44px 0;
  }

  .portal-card,
  .dashboard-panel,
  .constitution-card,
  .form-panel,
  .info-card,
  .payment-card {
    padding: 18px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #officialReceipt,
  #officialReceipt * {
    visibility: visible;
  }

  #officialReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }

  .receipt-print-button {
    display: none;
  }
}
