:root {
  --contact-bg: #080b0d;
  --contact-bg-soft: #101417;
  --contact-ink: #20242a;
  --contact-paper: #f4f1ea;
  --contact-paper-2: #fbf9f4;
  --contact-muted: #60656b;
  --contact-line: rgba(255, 255, 255, .16);
  --contact-paper-line: rgba(32, 36, 42, .25);
  --contact-green: #91a981;
  --contact-green-deep: #5f7758;
  --contact-green-bright: #a4ed4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--contact-bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 4%, rgba(137, 166, 111, .12), transparent 30rem),
    radial-gradient(circle at 87% 18%, rgba(107, 131, 151, .08), transparent 30rem),
    linear-gradient(135deg, #161a1d 0%, #101417 48%, #090c0e 100%);
  color: #f5f7f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
}

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

.page-start-project,
.page-thank-you {
  --site-component-width: min(1320px, calc(100% - 64px));
}

.contact-main,
.thank-you-main {
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 6vw, 86px) 0 clamp(54px, 7vw, 98px);
}

.contact-shell,
.thank-you-shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(270px, 330px);
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5vw, 62px);
}

.form-card,
.thank-you-card {
  min-width: 0;
  padding: clamp(36px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 3%, rgba(208, 187, 154, .12), transparent 19rem),
    linear-gradient(145deg, var(--contact-paper-2), var(--contact-paper));
  color: var(--contact-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

.contact-eyebrow {
  margin: 0 0 14px;
  color: var(--contact-green-deep);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-card h1,
.thank-you-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.25vw, 62px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.contact-intro,
.thank-you-intro {
  max-width: 650px;
  margin: 16px 0 28px;
  color: #454a50;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.45;
}

.project-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: #34383e;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 750;
}

.form-field .optional {
  color: #676c72;
  font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #aaa9a5;
  border-radius: 6px;
  color: #24282d;
  background: rgba(255, 255, 255, .66);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.form-field input,
.form-field select {
  min-height: 48px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
  padding: 12px 15px;
  line-height: 1.45;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #85888b; opacity: 1; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--contact-green-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 119, 88, .16);
}

.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-color: #9b4e4e;
}

.form-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 22px;
  border: 1px solid var(--contact-green-deep);
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(100deg, #536d50, #668161);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(100deg, #5c7858, #728e6c);
  box-shadow: 0 12px 26px rgba(66, 91, 61, .2);
}

.form-submit:focus-visible {
  outline: 3px solid rgba(95, 119, 88, .35);
  outline-offset: 3px;
}

.form-footnote {
  margin: -2px 0 0;
  color: #565c61;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.form-footnote a {
  color: #476043;
  font-weight: 700;
  text-decoration: none;
}

.form-footnote a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-honeypot {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.contact-aside,
.next-steps-card {
  min-width: 0;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 6%, rgba(145, 169, 129, .11), transparent 13rem),
    rgba(10, 14, 16, .58);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(10px);
}

.contact-icon,
.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 243, 106, .72);
  border-radius: 50%;
  color: #bdd89f;
  background: rgba(183, 243, 106, .03);
}

.contact-icon svg,
.success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-aside h2,
.next-steps-card h2 {
  margin: 24px 0 0;
  color: #a8bd99;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.aside-rule {
  width: 38px;
  height: 2px;
  margin: 16px 0 22px;
  background: #98ae88;
}

.contact-aside > p,
.next-steps-card > p {
  margin: 0;
  color: #e4e6e3;
  font-size: 15px;
  line-height: 1.55;
}

.direct-links {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.direct-link {
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #b8cea8;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
}

.direct-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direct-link:hover { color: var(--contact-green-bright); }
.direct-link:focus-visible {
  outline: 2px solid var(--contact-green-bright);
  outline-offset: 4px;
}

.response-note {
  margin-top: 26px !important;
  color: #c5cac5 !important;
  font-size: 12.5px !important;
}

/* Thank-you page */
.thank-you-card { padding-block: clamp(42px, 5vw, 64px); }
.success-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  color: var(--contact-green-deep);
  border-color: rgba(95, 119, 88, .58);
  background: rgba(95, 119, 88, .06);
}

.thank-you-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 30px;
}

.thank-you-actions a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--contact-paper-line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.thank-you-actions .calendar-button {
  color: #fff;
  border-color: var(--contact-green-deep);
  background: linear-gradient(100deg, #536d50, #668161);
}

.thank-you-actions .home-button {
  color: #34383e;
  background: rgba(255, 255, 255, .45);
}

.thank-you-actions a:hover { transform: translateY(-1px); }
.thank-you-actions .calendar-button:hover { background: linear-gradient(100deg, #5c7858, #728e6c); }
.thank-you-actions .home-button:hover { border-color: var(--contact-green-deep); color: var(--contact-green-deep); }
.thank-you-actions a:focus-visible { outline: 3px solid rgba(95, 119, 88, .30); outline-offset: 3px; }

.thank-you-email {
  margin: 20px 0 0;
  color: #585e63;
  font-size: 14px;
  line-height: 1.45;
}

.thank-you-email a {
  color: #476043;
  font-weight: 750;
  text-decoration: none;
}
.thank-you-email a:hover { text-decoration: underline; text-underline-offset: 3px; }

.next-steps {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.next-steps li {
  counter-increment: next-step;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #e0e3df;
  font-size: 14px;
  line-height: 1.45;
}

.next-steps li::before {
  content: counter(next-step, decimal-leading-zero);
  color: #a4ed4f;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: .08em;
}

.contact-main + .business-footer,
.thank-you-main + .business-footer { background: rgba(3, 5, 4, .72); }

@media (max-width: 960px) {
  .contact-main,
  .thank-you-main { align-items: flex-start; }

  .contact-shell,
  .thank-you-shell {
    width: min(760px, calc(100% - 48px));
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-aside,
  .next-steps-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  .contact-aside .contact-icon,
  .next-steps-card .contact-icon { grid-row: 1 / 6; }

  .contact-aside h2,
  .next-steps-card h2 { margin-top: 0; }
  .contact-aside .aside-rule,
  .next-steps-card .aside-rule { margin-block: 13px 18px; }
  .contact-aside .direct-links,
  .contact-aside .response-note,
  .next-steps-card .next-steps { grid-column: 2; }
}

@media (max-width: 760px) {
  .page-start-project,
  .page-thank-you { --site-component-width: calc(100% - 28px); }

  .contact-main,
  .thank-you-main {
    min-height: 0;
    padding: 26px 0 46px;
  }

  .contact-shell,
  .thank-you-shell { width: calc(100% - 28px); }

  .form-card,
  .thank-you-card {
    padding: 27px 20px 24px;
    border-radius: 7px;
  }

  .contact-eyebrow { margin-bottom: 12px; font-size: 12px; }
  .form-card h1,
  .thank-you-card h1 { font-size: clamp(36px, 10.8vw, 46px); line-height: 1.02; }
  .contact-intro,
  .thank-you-intro { margin: 14px 0 24px; font-size: 16px; line-height: 1.45; }

  .project-form { gap: 16px; }
  .form-field label { font-size: 14px; }
  .form-field input,
  .form-field select { min-height: 50px; }
  .form-field textarea { min-height: 118px; }
  .form-submit { min-height: 54px; font-size: 16px; }
  .form-footnote { font-size: 13px; }

  .contact-aside,
  .next-steps-card {
    display: block;
    padding: 24px 21px;
    border-radius: 12px;
  }

  .contact-icon,
  .success-icon { width: 56px; height: 56px; }
  .contact-icon svg,
  .success-icon svg { width: 27px; height: 27px; }
  .contact-aside h2,
  .next-steps-card h2 { margin-top: 20px; font-size: 21px; }
  .contact-aside .direct-links,
  .contact-aside .response-note,
  .next-steps-card .next-steps { grid-column: auto; }

  .thank-you-actions { grid-template-columns: 1fr; }
  .thank-you-actions a { width: 100%; }
}

@media (max-width: 360px) {
  .contact-shell,
  .thank-you-shell { width: calc(100% - 20px); }
  .form-card,
  .thank-you-card { padding-inline: 17px; }
  .form-card h1,
  .thank-you-card h1 { font-size: 34px; }
}

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

/* Small content refinements for the confirmation steps. */
.next-steps strong {
  display: block;
  margin-bottom: 2px;
  color: #f1f3ef;
  font-weight: 800;
}

/* Keep the active primary navigation button readable on the inquiry page. */
.page-start-project .business-nav a.site-button--primary[aria-current="page"] {
  color: #061006;
  border-color: var(--site-component-accent);
}
