/* ================================================
   DCF — Divi Contact Form  |  form.css
   Priorité maximale pour surcharger Divi/ET
================================================ */

/* --- Reset complet du formulaire --- */
.dcf-wrap,
.dcf-wrap *,
.dcf-wrap *::before,
.dcf-wrap *::after {
  box-sizing: border-box !important;
}

/* Cache les labels (on utilise des placeholders) */
.dcf-wrap .dcf-field > label {
  display: none !important;
}

/* Cache le honeypot */
.dcf-wrap .dcf-hp {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* --- Layout : lignes --- */
.dcf-wrap .dcf-form {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.dcf-wrap .dcf-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
}

.dcf-wrap .dcf-field {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
}

/* 2 colonnes */
.dcf-wrap .dcf-row-2 .dcf-field {
  flex: 1 1 calc(50% - 7px) !important;
  min-width: 180px !important;
}

/* --- Inputs & Textarea --- */
.dcf-wrap input[type="text"],
.dcf-wrap input[type="email"],
.dcf-wrap input[type="tel"],
.dcf-wrap textarea,
body .dcf-wrap input[type="text"],
body .dcf-wrap input[type="email"],
body .dcf-wrap input[type="tel"],
body .dcf-wrap textarea,
.et_pb_section .dcf-wrap input[type="text"],
.et_pb_section .dcf-wrap input[type="email"],
.et_pb_section .dcf-wrap input[type="tel"],
.et_pb_section .dcf-wrap textarea {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1.5px solid #d9dde3 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #2d2d2d !important;
  font-size: 15px !important;
  font-family: inherit !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Inputs : hauteur fixe, padding horizontal */
.dcf-wrap input[type="text"],
.dcf-wrap input[type="email"],
.dcf-wrap input[type="tel"],
body .dcf-wrap input[type="text"],
body .dcf-wrap input[type="email"],
body .dcf-wrap input[type="tel"],
.et_pb_section .dcf-wrap input[type="text"],
.et_pb_section .dcf-wrap input[type="email"],
.et_pb_section .dcf-wrap input[type="tel"] {
  height: 54px !important;
  line-height: normal !important;
  padding: 0 18px !important;
}

/* Textarea */
.dcf-wrap textarea,
body .dcf-wrap textarea,
.et_pb_section .dcf-wrap textarea {
  min-height: 180px !important;
  height: auto !important;
  line-height: 1.55 !important;
  padding: 16px 18px !important;
  resize: vertical !important;
}

/* Placeholder — même apparence partout */
.dcf-wrap input::placeholder,
.dcf-wrap textarea::placeholder {
  color: #aab0b8 !important;
  font-size: 15px !important;
  opacity: 1 !important;
  line-height: normal !important;
}

/* Focus */
.dcf-wrap input:focus,
.dcf-wrap textarea:focus,
body .dcf-wrap input:focus,
body .dcf-wrap textarea:focus {
  border-color: #ff4d9d !important;
  box-shadow: 0 0 0 3px rgba(255,77,157,.15) !important;
  outline: none !important;
  background: #fff !important;
}

/* --- Bouton --- */
.dcf-wrap .dcf-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 6px !important;
}

.dcf-wrap .dcf-btn,
body .dcf-wrap .dcf-btn,
.et_pb_section .dcf-wrap .dcf-btn {
  display: inline-block !important;
  background: linear-gradient(90deg, #ff4d9d 0%, #7b5cff 100%) !important;
  border: none !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 15px 36px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  letter-spacing: .3px !important;
  box-shadow: none !important;
  transition: opacity .2s !important;
  text-transform: none !important;
}

.dcf-wrap .dcf-btn:hover {
  opacity: .88 !important;
}

.dcf-wrap .dcf-btn:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}

/* --- Message de statut --- */
.dcf-wrap .dcf-status {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.dcf-wrap .dcf-status.is-success { color: #1a8a3a !important; }
.dcf-wrap .dcf-status.is-error   { color: #c0392b !important; }
