:root {
  --green-950: #082c20;
  --green-900: #0d3b2c;
  --green-800: #15533f;
  --green-100: #e6f3ee;
  --green-50: #f3faf7;
  --white: #ffffff;
  --ink: #18231f;
  --muted: #5d6f67;
  --line: #d9e7e1;
  --focus: #b7e4d1;
  --danger: #a03424;
  --shadow: 0 18px 55px rgba(8, 44, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--green-50);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  background: var(--green-950);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-kicker,
.eyebrow {
  margin: 0 0 6px;
  color: var(--focus);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
  color: #dcece6;
}

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

.intro {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 28px;
  padding: 54px 0 36px;
}

.intro h2 {
  max-width: 780px;
  margin-bottom: 14px;
  color: var(--green-950);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
}

.intro p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.05rem;
}

.business-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.business-list span {
  display: block;
  padding: 14px 16px;
  color: var(--green-950);
  background: var(--green-100);
  border-left: 5px solid var(--green-800);
  border-radius: 6px;
  font-weight: 700;
}

.portal {
  margin-bottom: 42px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading h2 {
  margin-bottom: 18px;
  color: var(--green-950);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.selector label {
  cursor: pointer;
}

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

.selector span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  background: var(--green-50);
  font-weight: 700;
  text-align: center;
}

.selector input:checked + span {
  color: var(--white);
  background: var(--green-900);
  border-color: var(--green-900);
}

.selector input:focus-visible + span,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--green-950);
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #bdd1c8;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 9px 10px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.submit-row {
  padding-top: 4px;
  border-top: 1px solid transparent;
}

button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--green-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--green-800);
}

.estimate {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-50);
}

.estimate h3 {
  margin-bottom: 14px;
  color: var(--green-950);
}

.estimate dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.estimate div {
  padding: 14px;
  border-radius: 6px;
  background: var(--white);
}

.estimate dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.estimate dd {
  margin: 4px 0 0;
  color: var(--green-950);
  font-size: 1.35rem;
  font-weight: 800;
}

.field-error {
  border-color: var(--danger);
}

.message {
  margin-top: 14px;
  color: var(--danger);
  font-weight: 700;
}

.confirmation {
  margin: 28px 0 42px;
}

.confirmation-box {
  padding: 34px;
  color: var(--white);
  background: var(--green-950);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.confirmation-box h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.confirmation-box p {
  color: #e5f1ed;
  font-size: 1.05rem;
}

.confirmation-box button {
  margin-top: 10px;
  color: var(--green-950);
  background: var(--white);
}

.urgent {
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 24px 16px 32px;
  color: var(--green-950);
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  nav {
    justify-content: flex-start;
  }

  .intro {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .portal {
    padding: 20px;
  }

  .selector,
  .grid,
  .estimate dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  main,
  .header-inner {
    width: min(100% - 22px, 1120px);
  }

  .intro h2 {
    font-size: 2rem;
  }

  .portal,
  .confirmation-box {
    padding: 16px;
  }

  button {
    width: 100%;
  }
}
