/*
 * PRATINIUM — custom-contact-v157.css
 * - Ajoute un espace lisible entre le bloc Document joint et le libellé/champ Message.
 * - Conserve la suppression du texte "optionnel".
 */

body.page-contact .contact-form .pf-contact-optional-text-v156,
body#contact .contact-form .pf-contact-optional-text-v156,
body.page-contact .contact-form .form-control-comment,
body#contact .contact-form .form-control-comment {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  overflow: hidden !important;
}

/* Espace entre "Document joint" et "Message" afin que les libellés ne se touchent plus. */
body.page-contact .contact-form .form-group:has(textarea),
body#contact .contact-form .form-group:has(textarea),
body.page-contact .contact-form .form-group:has(textarea.form-control),
body#contact .contact-form .form-group:has(textarea.form-control) {
  margin-top: 24px !important;
  clear: both !important;
}

body.page-contact .contact-form .form-group:has(textarea) label,
body#contact .contact-form .form-group:has(textarea) label {
  display: block !important;
  margin-bottom: 10px !important;
  line-height: 1.2 !important;
}

/* Maintient le bloc fichier compact sans coller le champ Message. */
body.page-contact .contact-form .form-group:has(input[type="file"]),
body#contact .contact-form .form-group:has(input[type="file"]),
body.page-contact .contact-form .pf-contact-file-compact-v155,
body#contact .contact-form .pf-contact-file-compact-v155 {
  margin-bottom: 16px !important;
}
