/* ==========================================================
   CONTACT FORM - DEVIS (VERSION MALLA)
   ========================================================== */

.cf7-devis .cf7-group {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #5a8821;
  border-radius: 14px;
}

/* Grid */
.cf7-devis .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.cf7-devis .cf7-col.full {
  grid-column: 1 / -1;
}

/* Labels + legend */
.cf7-devis label,
.cf7-devis legend {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #5a8821;
}

/* Champs */
.cf7-devis input[type="text"],
.cf7-devis input[type="email"],
.cf7-devis input[type="tel"],
.cf7-devis input[type="number"],
.cf7-devis select,
.cf7-devis textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #5a8821;
  background: #fafcf7;
  transition: all 0.2s ease;
}

/* Focus */
.cf7-devis input:focus,
.cf7-devis select:focus,
.cf7-devis textarea:focus {
  border-color: #4e9945;
  outline: none;
  box-shadow: 0 0 0 2px rgba(90,136,33,0.15);
  background: #fff;
}

.cf7-devis textarea {
  min-height: 140px;
}

/* Bouton */
.cf7-devis .cf7-actions {
  text-align: left;
}

.cf7-devis .cf7-actions input[type="submit"] {
  width: auto;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid #5a8821;
  background: #5a8821;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover bouton */
.cf7-devis .cf7-actions input[type="submit"]:hover {
  background: #4e9945;
  border-color: #4e9945;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 767px) {
  .cf7-devis .cf7-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   CONTACT FORM - CONTACT (VERSION MALLA)
   ========================================================== */

.cf7-contact .cf7-group {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #5a8821;
  border-radius: 14px;
}

.cf7-contact .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.cf7-contact .cf7-col.full {
  grid-column: 1 / -1;
}

.cf7-contact label,
.cf7-contact legend {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #5a8821;
}

.cf7-contact input[type="text"],
.cf7-contact input[type="email"],
.cf7-contact input[type="tel"],
.cf7-contact input[type="number"],
.cf7-contact select,
.cf7-contact textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #5a8821;
  background: #fafcf7;
}

.cf7-contact textarea {
  min-height: 140px;
}

.cf7-contact input:focus,
.cf7-contact select:focus,
.cf7-contact textarea:focus {
  border-color: #4e9945;
  outline: none;
  box-shadow: 0 0 0 2px rgba(90,136,33,0.15);
  background: #fff;
}

.cf7-contact .cf7-actions {
  text-align: left;
}

.cf7-contact .cf7-actions input[type="submit"] {
  width: auto;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid #5a8821;
  background: #5a8821;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cf7-contact .cf7-actions input[type="submit"]:hover {
  background: #4e9945;
  border-color: #4e9945;
  transform: scale(1.03);
}

@media (max-width: 767px) {
  .cf7-contact .cf7-row {
    grid-template-columns: 1fr;
  }
}