/* The contact route reuses the original site's contact section and palette. */
html.sp-contact-route,
html.sp-contact-route body {
  min-height: 100%;
}

html.sp-contact-route body {
  display: block;
  background: #F4F1EA;
}

html.sp-contact-route #home,
html.sp-contact-route #services,
html.sp-contact-route #results,
html.sp-contact-route #reviews,
html.sp-contact-route #faqs {
  display: none !important;
}

html.sp-contact-route #contact {
  display: block;
  min-height: 100vh;
  padding-top: calc(60px + env(safe-area-inset-top));
  scroll-margin-top: 72px;
}

html.sp-contact-route #contact .sp-contact {
  min-height: calc(100vh - 60px);
  padding-top: clamp(72px, 10vh, 112px);
}

html.sp-contact-route #contact .sp-contact-inner {
  max-width: 1240px;
  margin: 0 auto;
}

html.sp-contact-route #contact .sp-contact-left {
  padding-top: 14px;
}

html.sp-contact-route #contact .sp-section-kicker {
  color: #527c2c;
}

html.sp-contact-route #contact .sp-section-h2 {
  max-width: 560px;
}

html.sp-contact-route #contact .sp-contact-meta {
  margin-top: 8px;
}

html.sp-contact-route #contact .sp-contact-meta a {
  color: #0b1a14;
  text-decoration-color: #8BC83F;
  text-underline-offset: 4px;
}

html.sp-contact-route #contact .sp-contact-form-wrap {
  box-shadow: 0 24px 60px rgba(6, 40, 28, 0.14);
}

html.sp-contact-route #contact .sp-contact-form-wrap > h3 {
  color: #F4F1EA !important;
}

html.sp-contact-route #contact .sp-contact-form-wrap > p:first-of-type {
  margin-bottom: 24px !important;
}

html.sp-contact-route #contact .sp-contact-body {
  max-width: 490px;
}

html.sp-contact-route #contact .sp-submit {
  min-height: 54px;
  transition: opacity 180ms ease, transform 180ms ease;
}

html.sp-contact-route #contact .sp-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

html.sp-contact-route #contact .sp-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

html.sp-contact-route .sp-contact-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.sp-contact-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: rgba(244, 241, 234, 0.82);
  font: 12px/1.6 'JetBrains Mono', monospace;
}

.sp-contact-status[data-state="success"] {
  color: #B7E378;
}

.sp-contact-status[data-state="error"] {
  color: #F5B7A9;
}

.sp-contact-message {
  display: block;
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 10px;
  outline: none;
  background: rgba(244, 241, 234, 0.06);
  color: #F4F1EA;
  font: 15px/1.55 'Bricolage Grotesque', sans-serif;
}

.sp-contact-message::placeholder {
  color: rgba(244, 241, 234, 0.38);
}

.sp-contact-message:focus {
  border-color: #8BC83F;
  box-shadow: 0 0 0 3px rgba(139, 200, 63, 0.13);
}

@media (max-width: 900px) {
  html.sp-contact-route #contact .sp-contact {
    padding-top: 64px;
  }
}

@media (max-width: 600px) {
  html.sp-contact-route .sp-contact-name-row {
    grid-template-columns: 1fr;
  }

  html.sp-contact-route #contact {
    padding-top: calc(60px + env(safe-area-inset-top));
  }

  html.sp-contact-route #contact .sp-contact {
    padding: 56px 24px 64px;
  }

  html.sp-contact-route #contact .sp-contact-inner {
    gap: 36px;
  }

  html.sp-contact-route #contact .sp-contact-left {
    gap: 20px;
  }

  html.sp-contact-route #contact .sp-contact-form-wrap {
    border-radius: 18px;
  }
}
