:root {
  color-scheme: light;
  --ink: #162218;
  --muted: #607067;
  --line: #dce6dd;
  --surface: #ffffff;
  --soft: #f3f8f3;
  --green: #00a259;
  --green-dark: #007540;
  --gold: #f6c24c;
  --shadow: 0 26px 80px rgba(0, 92, 51, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 194, 76, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 84%, rgba(0, 162, 89, 0.16), transparent 32rem),
    #f8fbf7;
}

button, input { font: inherit; }

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(132px, 17vw, 172px);
  height: auto;
}

.hero {
  width: min(760px, 100%);
  margin: 76px auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(38px, 7vw, 67px);
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.subheadline {
  max-width: 610px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
}

.card, .review-card {
  margin-top: 0;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(204, 219, 207, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.step h2, .loading-step h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 37px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.step > p, .loading-step p {
  margin: 13px auto 28px;
  color: var(--muted);
  line-height: 1.55;
}

#zipForm {
  width: min(470px, 100%);
  margin: 0 auto;
}

#zipInput {
  width: 100%;
  height: 66px;
  padding: 0 22px;
  border: 2px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#zipInput:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 162, 89, 0.11);
}

#zipInput::placeholder {
  color: #99a49d;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 16px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 13px 26px rgba(0, 162, 89, 0.2);
  color: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(0, 162, 89, 0.27);
}

.primary-button:disabled { cursor: not-allowed; opacity: 0.42; box-shadow: none; }

.error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 650;
}

.back-button {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

fieldset { margin: 0; padding: 0; border: 0; }

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  text-align: left;
}

.utility-card {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: 88px 1fr 23px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.utility-card:hover { transform: translateY(-2px); border-color: #9fc8aa; }
.utility-card:has(input:checked) { border-color: var(--green); background: var(--soft); }
.utility-card input { position: absolute; opacity: 0; pointer-events: none; }

.utility-mark {
  width: 88px;
  height: 58px;
  padding: 3px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.utility-name { font-size: 15px; font-weight: 750; line-height: 1.3; }

.utility-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 13px;
  transition: all 160ms ease;
}

.utility-card:has(input:checked) .utility-check { border-color: var(--green); background: var(--green); color: white; }

.other-utility-field {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  text-align: left;
}

.other-utility-field[hidden] { display: none; }

.other-utility-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.other-utility-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
  color: var(--ink);
}

.other-utility-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 162, 89, 0.1);
}

.loading-step { padding: 32px 0; text-align: center; }

.spinner {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  border: 5px solid #dce9de;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.trust-note span { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.survey-shell { width: min(1040px, calc(100% - 40px)); }

.survey-hero {
  width: min(900px, 100%);
  margin: 54px auto 0;
  text-align: center;
}

.survey-hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 60px);
}

.survey-hero .subheadline { margin-bottom: 18px; }

.survey-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 24px;
  padding: 9px 14px;
  border: 1px solid #cce6d2;
  border-radius: 999px;
  background: #f0f8f2;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
}

.survey-card {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  border: 1px solid rgba(204, 219, 207, 0.9);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.survey-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--green-dark));
}

.survey-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.survey-frame.is-ready { opacity: 1; }

.survey-loading {
  position: absolute;
  inset: 5px 0 0;
  z-index: 1;
  display: grid;
  place-content: center;
  background: white;
  color: var(--muted);
  font-weight: 650;
}

.survey-loading .spinner { margin-bottom: 8px; }
.survey-loading[hidden] { display: none; }

.survey-error {
  padding: clamp(42px, 8vw, 80px) 24px;
  text-align: center;
}

.survey-error h2 { margin: 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.035em; }
.survey-error p { margin: 14px auto 26px; color: var(--muted); line-height: 1.55; }
.survey-error .link-button { margin: 0 auto; }

.booking-shell { width: min(1040px, calc(100% - 40px)); }

.booking-hero {
  width: min(900px, 100%);
  margin: 54px auto 0;
  text-align: center;
}

.booking-hero h1 { font-size: clamp(38px, 6vw, 60px); }

.booking-card {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border: 1px solid rgba(204, 219, 207, 0.9);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.booking-frame {
  display: block;
  width: 100%;
  min-height: 880px;
  border: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 180ms ease;
}

.booking-frame.is-ready { opacity: 1; }

.confirmation-shell { width: min(860px, calc(100% - 40px)); }

.confirmation-card {
  margin: 28px auto 0;
  padding: clamp(34px, 7vw, 68px);
  border: 1px solid rgba(204, 219, 207, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 13px 28px rgba(0, 162, 89, 0.24);
  color: white;
  font-size: 34px;
  font-weight: 800;
}

.confirmation-card h1 { font-size: clamp(38px, 7vw, 64px); }

.confirmation-card--reminders h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.confirmation-intro {
  max-width: 650px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.6;
}

.confirmation-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.confirmation-details section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.confirmation-details h2,
.confirmation-details h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
}

.confirmation-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.bill-upload-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: start;
  margin: 28px auto 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(204, 219, 207, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.bill-upload-card--priority {
  margin-top: 46px;
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 24px 65px rgba(45, 63, 50, 0.16);
}

.bill-upload-copy {
  position: sticky;
  top: 28px;
  padding-top: 18px;
}

.bill-upload-copy h1,
.bill-upload-copy h2 {
  margin: 0;
  font-size: clamp(29px, 4.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.bill-upload-copy h1 {
  font-size: clamp(36px, 5.2vw, 54px);
}

.confirmation-mark--urgent {
  width: 62px;
  height: 62px;
  margin: 0 0 22px;
  background: linear-gradient(145deg, #f59e0b, #dc6b08);
  box-shadow: 0 13px 28px rgba(220, 107, 8, 0.25);
}

.urgency-eyebrow { color: #b45309; }

.bill-upload-copy .urgent-callout {
  padding: 16px 18px;
  border: 1px solid #f4c66f;
  border-radius: 14px;
  background: #fff8e8;
  color: #78450a;
}

.bill-upload-copy > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.bill-upload-copy .bill-upload-note {
  padding: 14px 16px;
  border: 1px solid #cce6d2;
  border-radius: 14px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 650;
}

.last-step-button {
  margin-top: 20px;
  text-align: center;
}

.bill-upload-frame-wrap {
  min-width: 0;
  min-height: 643px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

#utility-bill-upload,
#bill-upload-form,
#utility-upload-form { scroll-margin-top: 20px; }

.upload-trust-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.bill-upload-copy .upload-trust-list p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.upload-trust-list span { color: var(--green); }

.bill-upload-frame {
  display: block;
  width: 100%;
  height: 643px;
  min-height: 643px;
  border: 0;
  border-radius: 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.review-shell { max-width: 760px; }
.review-card { margin-top: 76px; text-align: left; }
.review-card h1 { margin: 0; font-size: clamp(36px, 6vw, 58px); }
.review-card > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.55; }
.review-card dl { display: grid; grid-template-columns: 150px 1fr; margin: 30px 0; border-top: 1px solid var(--line); }
.review-card dt, .review-card dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.review-card dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.review-card dd { font-weight: 750; }
.link-button { max-width: 280px; }

@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1120px); padding-top: 20px; }
  .hero { margin-top: 46px; }
  .card, .review-card { padding: 28px 20px; border-radius: 22px; }
  .survey-shell { width: min(100% - 16px, 1040px); }
  .survey-hero { margin-top: 40px; }
  .survey-card { min-height: 930px; border-radius: 22px; }
  .survey-frame { min-height: 1020px; }
  .booking-shell, .confirmation-shell { width: min(100% - 16px, 1040px); }
  .booking-hero { margin-top: 40px; }
  .booking-card {
    min-height: 0;
    overflow: visible;
    border-radius: 22px;
  }
  .booking-frame {
    min-height: 1180px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .confirmation-card { padding: 34px 22px; border-radius: 22px; }
  .confirmation-details { grid-template-columns: 1fr; }
  .bill-upload-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 14px;
    border-radius: 22px;
  }
  .bill-upload-card--priority { margin-top: 34px; }
  .bill-upload-copy { display: contents; }
  .bill-upload-copy > * { grid-column: 1; }
  .bill-upload-frame-wrap { order: 50; min-height: 700px; border-radius: 16px; }
  .bill-upload-frame { height: 700px; min-height: 700px; border-radius: 16px; }
  .bill-upload-copy .bill-upload-note,
  .bill-upload-copy .upload-trust-list { order: 60; margin: 0 8px; }
  .bill-upload-copy .last-step-button { display: none; }
  .utility-grid { grid-template-columns: 1fr; }
  .review-card dl { grid-template-columns: 1fr; }
  .review-card dt { padding-bottom: 3px; border-bottom: 0; }
  .review-card dd { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
