@import url("/styles.css");

/* Blog lead forms use the established Haven editorial system. */
.lead-section {
  max-width: 46rem;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(35, 55, 47, .16);
}

.lead-section h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font: 400 clamp(2rem, 4vw, 3rem)/1.05 var(--display);
}

.lead-section > p:not(.tiny-label) {
  max-width: 38rem;
  color: #59645d;
}

.lead-form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(35, 55, 47, .16);
  background: var(--paper);
}

.lead-form .form-field {
  display: grid;
  gap: .5rem;
  min-width: 0;
}

.sf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form label { display:block; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width:100%;
  min-height:44px;
  padding:.8rem 1rem;
  border:1px solid currentColor;
  background:transparent;
  color:inherit;
  font:inherit;
}

.lead-form textarea { min-height:8rem; resize:vertical; }

.lead-form :focus-visible { outline:2px solid currentColor; outline-offset:3px; }

.lead-form-button {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--paper);
  cursor: pointer;
  font: 500 12px/1 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead-form-button:disabled {
  cursor: wait;
  opacity: .7;
}

.form-receipt {
  margin: 0;
  color: var(--primary);
  font-weight: 500;
}

.form-receipt:empty { display:none; }

.site-footer {
  width: min(calc(100% - 40px), 1220px);
  margin-inline: auto;
  padding: 2rem 0 6rem;
  border-top: 1px solid rgba(35, 55, 47, .16);
}

.site-footer p:not(.tiny-label) {
  max-width: 38rem;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

@media (max-width: 700px) {
  .lead-section,
  .lead-form {
    min-width: 0;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    max-width: 100%;
  }

  .site-footer {
    width: calc(100% - 40px);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .site-chat-launcher {
    bottom: calc(77px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .chat-launcher {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
