/* ==========================================================
   Contato — contato-distribuidora-peca-linha-montagem
   (depende de style.css e pages.css; unidades usam .unit da home)
   ========================================================== */
.contact { padding: 100px 20px; }
.contact-form {
  max-width: 1400px; margin: 0 auto; padding: 50px 20px;
  background: #fff; border-radius: 10px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .17);
}
.fields { display: flex; flex-wrap: wrap; gap: 27px 16px; }
.field { position: relative; flex: 0 0 100%; min-width: 0; }
.field--half { flex-basis: calc(50% - 8px); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 47px; padding: 6px 16px;
  font-family: "Roboto", sans-serif; font-size: 15px; line-height: 1.6; color: #333;
  background: #fff; border: 1px solid #1E304070; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 48, 64, .15);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #c0392b; }
.form-captcha { height: 78px; }
.contact-form button {
  display: block; width: 100%; min-height: 47px; padding: 15px 30px; border: 0; border-radius: 4px;
  font-family: "Roboto", sans-serif; font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: -0.02em; color: #fff; background: var(--navy); cursor: pointer;
  transition: background .3s;
}
.contact-form button:hover, .contact-form button:focus-visible { background: #204363; }
.form-status { margin-top: 12px; font-family: "Rubik", sans-serif; font-size: 14px; color: #333; }
.form-status:empty { display: none; }
.form-status.is-error { color: #c0392b; }

/* Unidade de São Paulo sem espaço superior nesta página */
@media (min-width: 1025px) { .unit--flush { padding-top: 0; } }

@media (max-width: 767px) {
  .contact-form { max-width: 480px; }
  .field--half { flex-basis: 100%; }
  .field input, .field textarea { font-size: 16px; }
}

/* Campo-armadilha anti-spam: fora da tela, invisível para pessoas */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }
.form-status.is-success { color: #1d7a3e; }

/* reCAPTCHA: a caixa tem 304×78px; reduz em telas muito estreitas para não vazar */
.form-captcha #contato-recaptcha { min-height: 78px; }
@media (max-width: 360px) {
  .form-captcha #contato-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* Ciência da Política de Privacidade (LGPD) */
.form-privacy { margin: 0; font-family: "Rubik", sans-serif; font-size: 13px; line-height: 1.5; color: #5B6B7A; }
.form-privacy a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: #b35500; }

/* Nota de privacidade ao lado do reCAPTCHA (desktop) e abaixo dele (celular) */
.form-captcha { display: flex; align-items: center; gap: 24px; }
.form-captcha #contato-recaptcha { flex: none; }
.form-captcha .form-privacy { flex: 1 1 260px; max-width: 520px; }
@media (max-width: 767px) {
  .form-captcha { flex-direction: column; align-items: flex-start; gap: 12px; height: auto; }
  .form-captcha .form-privacy { flex: none; }
}
