/* =====================================================================
   MWS Events - Formulaire de demande d'information
   Charge uniquement sur les pages qui portent le formulaire.
   ===================================================================== */

/* --- Formulaire de demande d'information --- */

.mws-ev-formulaire {
  max-width: 620px;
  padding: 26px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(var(--mws-ev-encre-rgb, 20, 66, 79), .07);
}

.mws-ev-form__contexte {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(var(--mws-ev-document-rgb, 0, 179, 207), .09);
  color: var(--mws-ev-encre, #14424F);
  font-size: 14.5px;
  font-weight: 600;
}

.mws-ev-form__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.mws-ev-form__champ { margin: 0 0 14px; }

.mws-ev-form__champ label {
  display: block;
  margin-bottom: 5px;
  color: var(--mws-ev-encre, #14424F);
  font-size: 13px;
  font-weight: 600;
}

.mws-ev-form__champ input,
.mws-ev-form__champ select,
.mws-ev-form__champ textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(var(--mws-ev-encre-rgb, 20, 66, 79), .16);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: inherit;
}

.mws-ev-form__champ textarea { min-height: 76px; resize: vertical; }

.mws-ev-form__champ input:focus,
.mws-ev-form__champ select:focus,
.mws-ev-form__champ textarea:focus {
  outline: 2px solid var(--mws-ev-document, #00B3CF);
  outline-offset: 1px;
  border-color: var(--mws-ev-document, #00B3CF);
}

.mws-ev-form__aide {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  opacity: .7;
}

.mws-ev-mention {
  margin: 6px 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(var(--mws-ev-encre-rgb, 20, 66, 79), .05);
  font-size: 12.5px;
  line-height: 1.55;
  opacity: .85;
}

.mws-ev-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.mws-ev-consent input { margin-top: 3px; flex: none; }

.mws-ev-form button[type="submit"] { width: 100%; margin-top: 8px; }

.mws-ev-message {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.mws-ev-message--ok {
  background: rgba(var(--mws-ev-action-rgb, 113, 178, 48), .12);
  color: #3f6d18;
}

.mws-ev-message--ko {
  background: rgba(var(--mws-ev-secondaire-rgb, 162, 0, 116), .09);
  color: var(--mws-ev-secondaire, #A20074);
}

.mws-ev-form__requis {
  margin: 0 0 14px;
  font-size: 12.5px;
  opacity: .75;
}

.mws-ev-form__champ.is-invalide input,
.mws-ev-consent.is-invalide {
  border-color: var(--mws-ev-secondaire, #A20074);
}

.mws-ev-consent.is-invalide {
  padding: 8px 10px;
  border: 1.5px solid var(--mws-ev-secondaire, #A20074);
  border-radius: 8px;
}

.mws-ev-message:focus { outline: 2px solid currentColor; outline-offset: 2px; }

/* Piege a robots : invisible sans display:none, que certains automates detectent. */
.mws-ev-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .mws-ev-form__duo { grid-template-columns: 1fr; }
  .mws-ev-formulaire { padding: 20px 18px; }
}
