/* ========================================
   Formulaire Contact – clim-split.com
   ======================================== */


.csf * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.csf {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 15px;
  color: #1C2B35;
  background: #F4FBFB;
  padding: 28px 24px;
  border-radius: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.csf .note {
  font-size: 12px;
  color: #6B7E8D;
  text-align: right;
  margin-bottom: 18px;
}

.csf .note b {
  color: #4aaa85;
}

.csf .sec {
  background: #fff;
  border-radius: 13px;
  border: 1px solid #D5EDE9;
  box-shadow: 0 2px 8px rgba(102, 197, 159, 0.1);
  margin-bottom: 18px;
  overflow: hidden;
}

.csf .sh {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #6DEAE0 0%, #66c59f 100%);
  color: #1C2B35;
  padding: 11px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.csf .sh svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

.csf .sb {
  padding: 20px 22px;
}

.csf .g {
  display: grid;
  gap: 15px;
  margin-bottom: 15px;
}

.csf .g:last-child {
  margin-bottom: 0;
}

.csf .g2 {
  grid-template-columns: 1fr 1fr;
}

.csf .g3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.csf .f {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.csf label.l,
.csf span.l {
  font-size: 12px;
  font-weight: 600;
  color: #1C2B35;
}

.csf label.l .opt,
.csf span.l .opt {
  font-size: 11px;
  font-weight: 400;
  color: #6B7E8D;
  margin-left: 3px;
}

.csf label.l.req::after,
.csf span.l.req::after {
  content: ' *';
  color: #4aaa85;
  font-weight: 700;
}

.csf input[type="text"],
.csf input[type="email"],
.csf input[type="tel"],
.csf input[type="date"],
.csf input[type="number"],
.csf select,
.csf textarea {
  border: 1.5px solid #D5EDE9;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: #1C2B35;
  background: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.csf input:focus,
.csf textarea:focus,
.csf select:focus {
  border-color: #3ECEC3;
  box-shadow: 0 0 0 3px rgba(109, 234, 224, 0.22);
  background: #E8FAFA;
}

.csf input::placeholder,
.csf textarea::placeholder {
  color: #AABFC8;
  font-size: 12px;
}

.csf textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* Pastilles checkbox/radio */
.csf .cbg {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.csf .cb {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  color: #1C2B35;
  background: #F4FBFB;
  border: 1.5px solid #D5EDE9;
  border-radius: 20px;
  padding: 5px 12px;
  transition: all 0.16s;
  user-select: none;
}

.csf .cb:hover {
  border-color: #3ECEC3;
  background: #E8FAFA;
}

.csf .cb input[type="checkbox"],
.csf .cb input[type="radio"] {
  width: 13px;
  height: 13px;
  accent-color: #66c59f;
  cursor: pointer;
  flex-shrink: 0;
}

.csf .cb input:checked ~ span {
  color: #4aaa85;
  font-weight: 600;
}

.csf .cb:has(input:checked) {
  border-color: #66c59f;
  background: #E8FAFA;
}

/* CF7 — wpcf7-list-item */
.csf .wpcf7-list-item {
  display: block !important;
  margin: 0 !important;
}

.csf .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #1C2B35 !important;
  background: #F4FBFB !important;
  border: 1.5px solid #D5EDE9 !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
  cursor: pointer !important;
  transition: all 0.16s !important;
  margin-bottom: 6px !important;
}

.csf .wpcf7-list-item label:hover {
  border-color: #3ECEC3 !important;
  background: #E8FAFA !important;
}

.csf .wpcf7-list-item input[type="checkbox"],
.csf .wpcf7-list-item input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  flex-shrink: 0 !important;
  accent-color: #66c59f !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* Bloc mise en service */
.csf #bmes {
  display: none;
}

.csf #bmes.on {
  display: block;
  animation: mis-fadein 0.25s ease;
}

.csf #bmes .sh {
  background: linear-gradient(135deg, #F5C8D4 0%, #f0a0b8 100%);
}

@keyframes mis-fadein {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Avertissement */
.csf .warn {
  background: #FFF8E1;
  border: 1.5px solid #F5A623;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 12px;
  color: #7A5200;
  line-height: 1.6;
  margin-top: 12px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.csf .warn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #F5A623;
}

/* Erreurs CF7 */
.csf .wpcf7-not-valid-tip {
  color: #c62828 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  display: block !important;
}

.csf .wpcf7-not-valid {
  border-color: #c62828 !important;
}

.csf .wpcf7-response-output {
  margin-top: 16px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  border-width: 1px !important;
}

/* Erreurs JS custom */
.csf .field-error {
  margin-top: 6px;
  color: #c62828;
  font-size: 12px;
  line-height: 1.4;
}

.csf .is-invalid {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.08);
}

/* Bouton */
.csf .btnw {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.csf button[type="submit"],
.csf input[type="submit"] {
  background: linear-gradient(135deg, #6DEAE0 0%, #66c59f 100%);
  color: #1C2B35;
  border: none;
  border-radius: 8px;
  padding: 14px 52px;
  font-size: 15px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(102, 197, 159, 0.3);
  transition: filter 0.18s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.csf button[type="submit"]:hover,
.csf input[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.csf button[type="submit"]:active,
.csf input[type="submit"]:active {
  transform: scale(0.98);
}

/* ============================================================
   RESPONSIVE MOBILE — force largeur pleine sur tous conteneurs
   ============================================================ */

@media (max-width: 768px) {

  /* Force le conteneur iQiT/PS parent à ne pas déborder */
  .page-wrapper .csf,
  .cms-page .csf,
  .iqit-cms .csf,
  .page-content .csf,
  .container .csf,
  div .csf {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Force aussi le form CF7 */
  .csf .wpcf7,
  .csf form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .csf {
    padding: 10px 6px !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .csf .sb {
    padding: 12px 8px !important;
  }

  .csf .sec {
    border-radius: 8px !important;
    margin-bottom: 12px !important;
  }

  .csf .sh {
    padding: 10px !important;
    font-size: 10px !important;
  }

  /* Grilles → colonne unique */
  .csf .g2,
  .csf .g3 {
    grid-template-columns: 1fr !important;
  }

  .csf .g {
    gap: 10px !important;
  }

  /* Inputs — évite zoom iOS */
  .csf input[type="text"],
  .csf input[type="email"],
  .csf input[type="tel"],
  .csf input[type="date"],
  .csf input[type="number"],
  .csf textarea {
    font-size: 16px !important;
    padding: 10px 12px !important;
  }

  /* Checkboxes en colonne */
  .csf .cbg {
    flex-direction: column !important;
    gap: 4px !important;
  }

  /* Bouton pleine largeur */
  .csf .btnw {
    flex-direction: column;
  }

  .csf button[type="submit"],
  .csf input[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
  }
}