/* =========================================================================
   Elindo Leads — le formulaire de demande de devis

   Autonome : il s'affiche sous un outil d'elindotools comme sous un
   questionnaire d'elindoneed, sans dépendre de leurs feuilles de style.
   Les variables du thème sont reprises quand elles existent.
   ========================================================================= */

.el-quote,
.el-lead-page {
  --elq-violet:      var(--el-violet, #8B3DF5);
  --elq-violet-dark: var(--el-violet-sombre, #6D23D0);
  --elq-violet-pale: var(--el-violet-pale, #F4EEFE);
  --elq-ink:         var(--el-encre, #111214);
  --elq-grey:        var(--el-gris, #5B6069);
  --elq-line:        var(--el-trait, #E3E5E9);
  --elq-soft:        var(--el-fond-doux, #F7F7F9);
  --elq-u: 8px;
}

/* --- Champs ------------------------------------------------------------ */

.el-quote .el-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.el-quote .el-field__label {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--elq-ink);
}

.el-quote .el-field__input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--elq-line);
  border-radius: 8px;
  background: #fff;
  color: var(--elq-ink);
  font-size: .9375rem;
}

.el-quote .el-field__input:focus {
  outline: 2px solid var(--elq-violet);
  outline-offset: 1px;
  border-color: var(--elq-violet);
}

.el-quote .el-field__help { margin: 0; font-size: .75rem; line-height: 1.45; color: var(--elq-grey); }
.el-quote .el-field--error .el-field__input { border-color: #C0392B; }
.el-quote .el-field__error { margin: 0; font-size: .75rem; font-weight: 600; color: #C0392B; }

.el-quote .el-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.el-quote .el-choice input { accent-color: var(--elq-violet); }

/* --- Bouton, à plat, sans dégradé -------------------------------------- */

.el-quote .el-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--elq-u);
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--elq-violet);
  border-radius: 8px;
  background: var(--elq-violet);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}

.el-quote .el-btn:hover { background: var(--elq-violet-dark); border-color: var(--elq-violet-dark); }
.el-quote .el-btn[disabled], .el-quote .el-btn.is-busy { opacity: .55; cursor: progress; }

/* =========================================================================
   Le formulaire de devis
   ========================================================================= */

.el-quote {
  margin-top: calc(var(--elq-u) * 3);
  padding: calc(var(--elq-u) * 3);
  border: 1px solid var(--elq-line);
  border-radius: 12px;
  background: var(--elq-soft);
}

.el-quote:focus { outline: none; }

.el-quote__head { margin-bottom: calc(var(--elq-u) * 2.5); }

.el-quote__kicker {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--elq-violet);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.el-quote__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--elq-ink);
}

.el-quote__lead {
  margin: 6px 0 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--elq-grey);
  max-width: 70ch;
}

.el-quote__alert {
  margin: 0 0 calc(var(--elq-u) * 2);
  padding: 12px 14px;
  border: 1px solid #E8B4AE;
  border-radius: 8px;
  background: #FDF1EF;
  font-size: .875rem;
  font-weight: 600;
  color: #C0392B;
}

.el-quote__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--elq-u) * 2.5);
}

.el-quote .el-field--wide { grid-column: 1 / -1; }

@media (max-width: 767.98px) {
  .el-quote { padding: calc(var(--elq-u) * 2); }
  .el-quote__grid { grid-template-columns: 1fr; }
}

.el-quote .el-field__req { color: var(--elq-violet); }

.el-quote .el-field__input--area {
  height: auto;
  min-height: 200px;
  padding: 10px 12px;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
  font-variant-numeric: tabular-nums;
}

.el-quote__consent { margin-top: calc(var(--elq-u) * 2.5); }

.el-quote .el-choice--consent {
  align-items: flex-start;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--elq-grey);
}

.el-quote .el-choice--consent input { margin-top: 3px; flex: 0 0 auto; }
.el-quote .el-choice--consent a { color: var(--elq-violet); text-decoration: underline; }

.el-quote__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--elq-u) calc(var(--elq-u) * 2);
  margin-top: calc(var(--elq-u) * 3);
}

.el-quote__required {
  margin: 0;
  font-size: .75rem;
  color: var(--elq-grey);
}

/* Champ piège du module, quand WsAntispam n'est pas là. Hors écran plutôt
   que display:none, que certains robots savent ignorer. */
.el-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* La confirmation */
.el-quote--done {
  border-color: var(--elq-violet);
  background: #fff;
}

.el-quote__phone {
  margin: calc(var(--elq-u) * 1.5) 0 0;
  font-size: .9375rem;
  color: var(--elq-ink);
}

.el-quote__phone a { font-weight: 700; color: var(--elq-violet); }


/* =========================================================================
   Page d'envoi sans JavaScript
   ========================================================================= */

.el-lead-result {
  padding: calc(var(--elq-u) * 3);
  border-left: 4px solid var(--elq-violet);
  border-radius: 0 12px 12px 0;
  background: var(--elq-violet-pale);
}

.el-lead-result__kicker { margin: 0 0 6px; font-size: .75rem; font-weight: 700; color: var(--elq-violet); }

.el-lead-result__headline {
  margin: 0 0 calc(var(--elq-u) * 2);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--elq-ink);
}

.el-lead-result__lines { margin: 0; padding-left: 1.2em; }
.el-lead-page__back { margin-top: calc(var(--elq-u) * 3); font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  .el-quote .el-btn { transition: none; }
}
