/* ===== RESET & BASE ===== */
/* Valeurs relevées sur le Contact Form 7 d'origine (livermanarrais.ca) — repro pixel-perfect. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: transparent;
  color: #6C6C6C;
  -webkit-font-smoothing: antialiased;
}

/* ===== FORMULAIRE ===== */
#cgl-form {
  background: transparent;
  padding: 0;
  max-width: 100%;
}

/* ===== CHAMPS ===== */
.form-field {
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6C6C6C;
  background: transparent;
  border: none;
  border-bottom: 1px solid #D5D5D5;
  border-radius: 0;
  padding: 0 15px 0 3px;
  display: block;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  height: 52px;
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
  color: #6C6C6C;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  opacity: 1;
}

/* Focus : soulignement taupe (accent CGL) */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-bottom-color: #B8967E;
}

/* Champ en erreur */
input.input-error,
textarea.input-error {
  border-bottom-color: #C0392B;
}

/* Textarea */
textarea {
  height: 130px;
  line-height: 1.6;
  resize: vertical;
}

/* ===== MESSAGES D'ERREUR ===== */
.field-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #C0392B;
  margin-top: 4px;
}

.field-error.hidden,
.global-error.hidden { display: none; }

.global-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #C0392B;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  padding: 10px 14px;
  margin-bottom: 10px;
}

/* ===== HONEYPOT ===== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ===== BOUTON SUBMIT ===== */
/* Forme signature du CF7 d'origine : coins arrondis en diagonale (15px 0 15px 0). */
.btn-submit {
  display: inline-block;
  margin-top: 8px;
  height: 49px;
  background-color: #B8967E;
  border: none;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 35px;
  border-radius: 15px 0 15px 0;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-submit:hover:not(:disabled) {
  background-color: #a5836b;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading.hidden,
.btn-text.hidden { display: none; }
