/* The contact form inside the conversation. Colors come from styles.css. */

.message--lead { max-width: 100%; width: 100%; }
.lead-form { display: grid; gap: 8px; margin-top: 10px; }
.lead-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.lead-field {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--edge-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.lead-field { resize: none; line-height: 1.4; }
.lead-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.lead-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--text-muted); cursor: pointer; }
.lead-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Off screen for people, still filled in by robots. */
.lead-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.lead-error { margin: 0; font-size: 13px; font-weight: 600; color: var(--error); }
.lead-error:empty { display: none; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-correct { margin-top: 8px; min-height: 32px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
.lead-actions button { min-height: 38px; padding: 8px 18px; font-size: 14px; font-weight: 600; }

@media (max-width: 979.98px) {
  /* 16 px keeps iOS from zooming into the page when a field gets the focus. */
  .lead-field { font-size: 16px; min-height: 40px; padding: 8px 10px; }
  .lead-form { gap: 7px; }
}
