:root {
  --green: #48a646;
  --green-dark: #317b30;
  --text: #222222;
  --muted: #5d5d5d;
  --border: #d9d9d9;
  --soft: #f6f7f6;
  --footer: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfbfbf;
  border-radius: 2px;
  padding: 9px 12px;
  background: #ffffff;
  color: var(--text);
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(72, 166, 70, 0.35);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  width: min(1180px, calc(100% - 30px));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  display: block;
  width: 200px;
  height: 100px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.primary-nav a,
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 25;
  display: none;
  min-width: 230px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 6px 0;
  text-align: left;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  min-height: 0;
  padding: 9px 14px;
  color: #222222;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f4faf4;
  color: var(--green-dark);
}

.primary-nav .intake-button {
  margin-left: 8px;
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 24px;
  color: #ffffff;
  padding: 8px 18px;
  text-decoration: none;
}

.primary-nav .intake-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #ffffff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 2px;
  padding: 8px;
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #222222;
}

.hero-section {
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #e8e8e8;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 40px;
  padding: 42px 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 900;
}

.hero-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: #333333;
  font-size: 20px;
}

.hero-image {
  min-height: 220px;
  border: 1px solid var(--border);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
}

.house-shape {
  width: 110px;
}

.roof {
  width: 84px;
  height: 84px;
  margin: 0 auto -28px;
  border-top: 16px solid var(--green);
  border-left: 16px solid var(--green);
  transform: rotate(45deg);
}

.home-body {
  position: relative;
  width: 110px;
  height: 92px;
  background: #ffffff;
  border: 3px solid var(--green);
}

.home-body span:first-child {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
}

.home-body span:last-child {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 26px;
  height: 44px;
  background: var(--green);
}

.receipt-card {
  width: 126px;
  min-height: 130px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 18px 16px;
}

.receipt-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--green-dark);
}

.receipt-card span {
  display: block;
  height: 8px;
  margin: 12px 0;
  background: #d7d7d7;
}

.receipt-card .short-line {
  width: 64%;
  background: var(--green);
}

.payment-types-section,
.form-section {
  padding: 36px 0;
}

.payment-types-section h2,
.payment-panel h2 {
  margin: 0 0 20px;
  color: #2b2b2b;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.payment-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.payment-type-card {
  min-height: 132px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: 2px;
  background: #ffffff;
  padding: 22px;
  text-align: left;
}

.payment-type-card:hover,
.payment-type-card.is-selected {
  border-color: var(--green);
  background: #fbfffb;
}

.payment-type-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 21px;
  font-weight: 700;
}

.payment-type-card small {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.form-section {
  border-top: 1px solid #eeeeee;
  background: #fafafa;
}

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

.payment-panel {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #ffffff;
  padding: 26px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: #222222;
  font-weight: 700;
}

.form-field label span {
  color: var(--green-dark);
  font-weight: 600;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.method-tab {
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 700;
}

.method-tab.is-active {
  background: var(--green);
  color: #ffffff;
}

.provider-placeholder {
  border: 1px solid #cfcfcf;
  border-left: 4px solid var(--green);
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  text-align: left;
}

.provider-placeholder p {
  margin: 4px 0;
}

.method-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 18px;
}

.method-panel h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1.25;
}

.method-panel p {
  margin: 7px 0;
  color: #333333;
}

.provider-note,
.security-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.provider-note {
  color: #4a4a4a;
}

.continue-payment-button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 2px solid var(--green);
  border-radius: 2px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
}

.continue-payment-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.help-bar {
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

.result-section {
  border-top: 1px solid #f2f2f2;
  background: #fafafa;
  padding: 54px 0;
}

.result-panel {
  max-width: 760px;
  margin: 0 auto;
  border-top: 4px solid var(--green);
}

.result-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.result-status.is-canceled {
  background: #6d6d6d;
}

.result-panel .eyebrow {
  margin-bottom: 8px;
}

.result-panel h1 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
}

.result-panel p {
  max-width: 620px;
  margin: 0 0 10px;
  color: #333333;
  font-size: 18px;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 2px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  border: 2px solid var(--green);
  background: var(--green);
  color: #ffffff;
}

.primary-action:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
  text-decoration: none;
}

.secondary-action {
  border: 1px solid var(--green);
  background: #ffffff;
  color: var(--green-dark);
}

.secondary-action:hover {
  background: #f4faf4;
  color: var(--green-dark);
  text-decoration: none;
}

.help-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.help-inner strong {
  color: #222222;
  font-size: 20px;
}

.help-inner a {
  font-weight: 700;
}

.site-footer {
  background: var(--footer);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 40px;
  padding: 34px 0;
}

.footer-about img {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
  background: #ffffff;
}

.footer-about p {
  max-width: 620px;
  margin: 0;
  color: #f4f4f4;
}

.footer-links h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
}

.footer-links a {
  display: inline-block;
  margin: 0 16px 8px 0;
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #dff3df;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #2d2d2d;
  padding: 14px 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    margin-top: 28px;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    align-items: stretch;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
  }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .primary-nav a,
  .primary-nav .intake-button,
  .nav-dropdown {
    width: 100%;
    margin-left: 0;
  }

  .dropdown-trigger {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-left: 3px solid var(--green);
    padding: 0 0 0 10px;
  }

  .dropdown-menu a {
    white-space: normal;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .payment-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .logo-link img {
    width: 170px;
    height: auto;
  }

  .menu-toggle {
    margin-top: 18px;
  }

  .hero-grid {
    padding: 30px 0;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p:last-child {
    font-size: 18px;
  }

  .hero-image {
    min-height: 190px;
    gap: 16px;
    padding: 20px;
  }

  .payment-panel {
    padding: 20px;
  }

  .result-section {
    padding: 34px 0;
  }

  .result-panel h1 {
    font-size: 31px;
  }

  .result-panel p {
    font-size: 17px;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .help-inner {
    display: block;
  }

  .help-inner strong,
  .help-inner a {
    display: block;
    margin-bottom: 6px;
  }
}
