/* Formulários — mesmo design da Home em todo o site */

/* Contêiner genérico de formulário (páginas além da home) */
app-contact .form,
app-contato .form,
app-produto app-contact-form .form,
app-sistema app-contact-form .form,
#product app-contact-form .form {
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(183, 240, 201, 0.35), transparent 50%),
    radial-gradient(70% 60% at 100% 20%, rgba(12, 105, 55, 0.1), transparent 55%),
    linear-gradient(180deg, #f7fbf8 0%, #eef6f1 45%, #e8f3ec 100%) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(12, 105, 55, 0.12) !important;
  box-shadow: 0 12px 40px rgba(8, 40, 24, 0.08) !important;
  padding: 2.5rem 1.25rem 3rem !important;
}

/* Inputs / textarea / select — padrão Home */
app-contact-form input[type="text"],
app-contact-form input[type="email"],
app-contact-form input[type="tel"],
app-contact-form input[type="number"],
app-contact-form textarea,
app-contact-form select,
.rd-form-container input[type="text"],
.rd-form-container input[type="email"],
.rd-form-container input[type="tel"],
.rd-form-container input[type="number"],
.rd-form-container textarea,
.rd-form-container select,
.bricks-form input[type="text"],
.bricks-form input[type="email"],
.bricks-form input[type="tel"],
.bricks-form input[type="number"],
.bricks-form textarea,
.bricks-form select,
.rd-form input[type="text"],
.rd-form input[type="email"],
.rd-form input[type="tel"],
.rd-form textarea,
.rd-form select,
form:not(.VIpgJd-yAWNEb-hvhgNd-aXYTce) input[type="text"],
form:not(.VIpgJd-yAWNEb-hvhgNd-aXYTce) input[type="email"],
form:not(.VIpgJd-yAWNEb-hvhgNd-aXYTce) input[type="tel"],
form:not(.VIpgJd-yAWNEb-hvhgNd-aXYTce) textarea,
form:not(.VIpgJd-yAWNEb-hvhgNd-aXYTce) select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.95rem 1.1rem !important;
  font-family: var(--font, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #14231b !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(12, 105, 55, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(8, 40, 24, 0.04) !important;
  outline: none !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

app-contact-form input:hover,
app-contact-form textarea:hover,
app-contact-form select:hover,
.rd-form-container input:hover,
.rd-form-container textarea:hover,
.bricks-form input:hover,
.bricks-form textarea:hover,
.rd-form input:hover,
.rd-form textarea:hover {
  border-color: rgba(12, 105, 55, 0.28) !important;
  background: #ffffff !important;
}

app-contact-form input:focus,
app-contact-form textarea:focus,
app-contact-form select:focus,
.rd-form-container input:focus,
.rd-form-container textarea:focus,
.bricks-form input:focus,
.bricks-form textarea:focus,
.rd-form input:focus,
.rd-form textarea:focus {
  border-color: #0c6937 !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 4px rgba(12, 105, 55, 0.14),
    0 8px 24px rgba(12, 105, 55, 0.08) !important;
  transform: translateY(-1px);
}

app-contact-form input::placeholder,
app-contact-form textarea::placeholder,
.rd-form-container input::placeholder,
.rd-form-container textarea::placeholder,
.bricks-form input::placeholder,
.bricks-form textarea::placeholder,
.rd-form input::placeholder,
.rd-form textarea::placeholder {
  color: #7a8b82 !important;
  font-weight: 450 !important;
  opacity: 1 !important;
}

/* Labels */
app-contact-form label,
.rd-form-container label,
.bricks-form__label,
.rd-form label,
.bricks-form label {
  color: #3d4f44 !important;
  -webkit-text-fill-color: #3d4f44 !important;
  font-family: var(--font, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Botão submit — pill verde da Home */
app-contact-form button[type="submit"],
.rd-form-container button[type="submit"],
.rd-form-container .bricks-form__submit,
.rd-form-container .rd-button,
.bricks-form button[type="submit"],
.bricks-form__submit,
.rd-form button[type="submit"],
.rd-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 220px !important;
  max-width: 100% !important;
  height: auto !important;
  margin-top: 0.5rem !important;
  padding: 0.95rem 1.6rem !important;
  font-family: var(--font, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #1a8f4c 0%, #0c6937 48%, #063d22 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(12, 105, 55, 0.28) !important;
  cursor: pointer !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
}

app-contact-form button[type="submit"]:hover,
.rd-form-container button[type="submit"]:hover,
.rd-form-container .rd-button:hover,
.bricks-form button[type="submit"]:hover,
.bricks-form__submit:hover,
.rd-button:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(6, 61, 34, 0.34) !important;
}

/* Checkbox */
app-contact-form input[type="checkbox"],
.rd-form-container input[type="checkbox"],
.bricks-form input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  accent-color: #0c6937 !important;
  cursor: pointer !important;
}

/* Títulos de formulário */
app-contact-form h3,
app-contact h3,
.rd-form-container h1,
.rd-form-container h2,
.rd-form-container h3 {
  font-family: var(--font-h1, "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #063d22 !important;
  -webkit-text-fill-color: #063d22 !important;
}

.rd-form-container .bricks--component-text,
.rd-form-container .bricks--component-text *,
.rd-form-container .rd-text,
.rd-form-container .rd-text *,
.rd-form-container p {
  color: #3d4f44 !important;
  -webkit-text-fill-color: #3d4f44 !important;
  font-family: var(--font, "Helvetica Neue", Helvetica, Arial, sans-serif) !important;
}

.rd-form-container .bricks--component-text h1,
.rd-form-container .rd-text h1,
.rd-form-container h1 {
  color: #063d22 !important;
  -webkit-text-fill-color: #063d22 !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

/* "Baixe o conteúdo exclusivo..." (RD Station em segmentos / sidebar) */
html body #industries .form .rd-text,
html body #industries .form .rd-text *,
html body #industries .form .bricks--component-text,
html body #industries .form .bricks--component-text *,
html body #industries .sidebar .form h1,
html body #industries .sidebar .form h1 strong,
html body #industries .form h1,
html body #industries .form h1 strong,
html body .bricks--component-embeddable-form h1,
html body .bricks--component-embeddable-form h1 strong,
html body .bricks--component-embeddable-form .rd-text h1,
html body .bricks--component-embeddable-form .rd-text h1 strong,
html body [id^="rd-text-"] h1,
html body [id^="rd-text-"] h1 strong,
html body .rd-text h1,
html body .rd-text h1 strong {
  color: #063d22 !important;
  -webkit-text-fill-color: #063d22 !important;
  text-shadow: none !important;
}

/* Bloco RD (catálogo do produto) — cinza igual ao embed (#e2e2e2) */
#product .rd-form-container,
app-produto .rd-form-container,
app-sistema .rd-form-container,
.rd-form-container {
  background: #e2e2e2 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
  padding: 2rem 1.5rem 2.5rem !important;
}

/* Section/linhas do embed RD — unificar no mesmo cinza (sem faixa branca) */
#product .rd-form-container .bricks--section,
#product .rd-form-container .rd-section,
#product .rd-form-container [id^="rd-section-"],
app-produto .rd-form-container .bricks--section,
app-produto .rd-form-container .rd-section,
app-produto .rd-form-container [id^="rd-section-"],
app-sistema .rd-form-container .bricks--section,
app-sistema .rd-form-container .rd-section,
app-sistema .rd-form-container [id^="rd-section-"],
#product .rd-form-container .bricks--column > div,
app-produto .rd-form-container .bricks--column > div,
app-sistema .rd-form-container .bricks--column > div {
  background-color: #e2e2e2 !important;
  background: #e2e2e2 !important;
}

/* Language selector acima do form do produto — mesmo cinza do catálogo */
#product .form-language-selector,
app-produto .form-language-selector,
app-sistema .form-language-selector {
  background: #e2e2e2 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

#product .language-btn,
app-produto .language-btn,
app-sistema .language-btn {
  background: #ffffff !important;
  border: 1.5px solid rgba(12, 105, 55, 0.16) !important;
  color: #0c6937 !important;
  -webkit-text-fill-color: #0c6937 !important;
}

#product .language-btn:hover,
app-produto .language-btn:hover,
app-sistema .language-btn:hover {
  background: #f0faf4 !important;
  border-color: rgba(12, 105, 55, 0.32) !important;
}

#product .language-btn.active,
app-produto .language-btn.active,
app-sistema .language-btn.active {
  background: linear-gradient(135deg, #1a8f4c 0%, #0c6937 48%, #063d22 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: transparent !important;
}

@media (max-width: 899px) {
  app-contact-form button[type="submit"],
  .rd-form-container button[type="submit"],
  .bricks-form__submit,
  .rd-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
