/* Présentation du formulaire public, sans modifier la feuille de style d’origine. */
#contact .lead-form {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

#contact .lead-form .lead-form-note {
  max-width: none;
  margin: 0 0 22px;
  color: #475569;
  font-size: .9rem;
  line-height: 1.5;
}

#contact .lead-form .form-grid {
  align-items: start;
  gap: 20px 16px;
}

#contact .lead-form label {
  min-width: 0;
  align-content: start;
}

#contact .lead-field { min-width: 0; }

#contact .lead-form .form-error-summary {
  margin: 0 0 24px;
  color: #7f1d1d;
  background: #fff1f2;
  border: 2px solid #b91c1c;
  overflow-wrap: anywhere;
  scroll-margin-top: 16px;
}

#contact .lead-form .form-error-summary h2 {
  color: #7f1d1d;
  font-size: 1.1rem;
}

#contact .lead-form .form-error-summary p {
  max-width: none;
  margin: 8px 0 12px;
  color: #7f1d1d;
  font-size: .95rem;
}

#contact .lead-form .form-error-summary li + li { margin-top: 6px; }

#contact .lead-form .form-error-summary:focus {
  outline: 3px solid #b05c00;
  outline-offset: 3px;
}

#contact .lead-form .lead-field-error {
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#contact .lead-field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

#contact .required-asterisk {
  color: #b91c1c;
  font-weight: 800;
}

#contact .lead-form :is(input:not([type=hidden]):not([type=checkbox]), select, textarea) {
  min-width: 0;
  max-width: 100%;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

#contact .lead-form :is(input:not([type=hidden]):not([type=checkbox]), select) {
  height: 52px;
  min-height: 52px;
}

#contact .lead-form textarea {
  min-height: 144px;
}

#contact .lead-form :is(input, textarea)::placeholder {
  color: #526174;
  font-weight: 400;
  opacity: 1;
}

#contact .lead-form label.form-consent {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-weight: 500;
}

#contact .lead-form .form-consent input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  accent-color: #245fec;
}

#contact .lead-form .btn[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  margin-top: 22px;
  padding: 12px 24px;
  border: 1px solid #245fec;
  border-radius: 12px;
  color: #fff;
  background: #245fec;
  font-weight: 800;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(36, 95, 236, .18);
}

#contact .lead-form .btn[type=submit]:is(:hover, :focus-visible) {
  border-color: #174fc4;
  background: #174fc4;
}

@media (max-width: 640px) {
  #contact .lead-form .btn[type=submit] { width: 100%; }
}
