/* Lead capture form — TH-53441
 * Consome tokens canônicos de assets/ds.css.
 * Convive com a paleta dark padrão do site institucional.
 */

.contact-section {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border);
}

.contact-section .section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.contact-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-3) 0;
  line-height: 1.05;
  max-width: 22ch;
}

.contact-lede {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-10);
  max-width: 56ch;
  line-height: 1.55;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lead-field-full {
  grid-column: 1 / -1;
}

.lead-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--foreground);
}

.lead-field input,
.lead-field textarea {
  background: var(--input, var(--card));
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--duration), box-shadow var(--duration);
}

.lead-field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
  line-height: 1.5;
}

.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent);
}

.lead-field input:invalid:not(:placeholder-shown) {
  border-color: var(--destructive);
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.lead-submit-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.lead-submit-row button {
  min-width: 160px;
}

.lead-submit-row button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-status {
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  margin: 0;
}

.lead-status.success {
  color: var(--success);
}

.lead-status.error {
  color: var(--destructive);
}

.lead-privacy {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.lead-privacy a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-privacy a:hover {
  color: var(--primary);
}

/* hCaptcha widget — controle de espaçamento */
.h-captcha {
  min-height: 78px;
}

@media (max-width: 720px) {
  .lead-form {
    grid-template-columns: 1fr;
  }
  .contact-section {
    padding: var(--space-16) 0;
  }
}
