/* ============================================================
   MT Lead Form — formulario propio Contacto / Profesionales
   Mosaics Torra · rebrand 2026 · scope: .mt-leadform
   Reemplaza los webforms de Pipedrive. Envía a Make (6159420).
   ============================================================ */

.mt-leadform{
  --lf-ink:#0d0e0b;
  --lf-granate:#702427;
  --lf-error:#b3282d;
  --lf-border:#d8d5cf;
  --lf-muted:#55564f;
  --lf-faint:#8a887f;
  font-family:'Roboto',-apple-system,'Segoe UI',Arial,sans-serif;
  color:var(--lf-ink);
  text-align:left;
  font-size:16px;
  line-height:1.5;
  margin:0;
  padding:0;
}
.mt-leadform *{box-sizing:border-box;margin:0;padding:0}

.mt-leadform .lf-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 18px}
.mt-leadform .lf-field{display:flex;flex-direction:column}
.mt-leadform .lf-field--full{grid-column:1 / -1}
@media(max-width:679px){
  .mt-leadform .lf-grid{grid-template-columns:1fr;gap:20px}
  .mt-leadform .lf-field{grid-column:auto}
}

.mt-leadform label{
  font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  color:var(--lf-muted);margin-bottom:8px;cursor:pointer;
}
.mt-leadform label .req{color:var(--lf-granate);font-weight:700}

.mt-leadform input[type=text],
.mt-leadform input[type=email],
.mt-leadform input[type=tel],
.mt-leadform textarea{
  width:100%;
  font:inherit;
  font-size:16px;               /* evita zoom iOS */
  color:var(--lf-ink);
  background:#fff;
  border:1.5px solid var(--lf-border);
  border-radius:2px;
  padding:14px 16px;
  transition:border-color .25s,box-shadow .25s;
  appearance:none;
  -webkit-appearance:none;
}
.mt-leadform textarea{min-height:140px;resize:vertical}
.mt-leadform input::placeholder,.mt-leadform textarea::placeholder{color:#a7a49d;opacity:1}
.mt-leadform input:focus,.mt-leadform textarea:focus{
  outline:none;border-color:var(--lf-granate);
  box-shadow:0 0 0 3px rgba(112,36,39,.09);
}

.mt-leadform .lf-field.is-error input,
.mt-leadform .lf-field.is-error textarea{border-color:var(--lf-error)}
.mt-leadform .lf-msg{display:none;font-size:13px;color:var(--lf-error);margin-top:6px}
.mt-leadform .lf-field.is-error .lf-msg{display:block}

/* consentimiento RGPD */
.mt-leadform .lf-consent{display:flex;align-items:flex-start;gap:11px;margin-top:24px}
.mt-leadform .lf-consent input[type=checkbox]{
  flex:0 0 auto;width:19px;height:19px;margin-top:2px;
  accent-color:var(--lf-granate);cursor:pointer;
}
.mt-leadform .lf-consent label{
  font-size:13.5px;font-weight:400;text-transform:none;letter-spacing:0;
  color:var(--lf-muted);margin:0;line-height:1.45;
}
.mt-leadform .lf-consent a{color:var(--lf-granate);text-decoration:underline;text-underline-offset:2px}
.mt-leadform .lf-consent a:hover{color:var(--lf-ink)}
.mt-leadform .lf-consent.is-error label{color:var(--lf-error)}
.mt-leadform .lf-consent-msg{display:none;font-size:13px;color:var(--lf-error);margin-top:6px}
.mt-leadform .lf-consent.is-error + .lf-consent-msg{display:block}

/* botón */
.mt-leadform button[type=submit]{
  display:block;width:100%;margin-top:26px;
  font-family:inherit;font-weight:700;font-size:13.5px;
  text-transform:uppercase;letter-spacing:.14em;
  color:#fff;background:var(--lf-granate);
  border:0;border-radius:2px;padding:19px 44px;
  cursor:pointer;transition:background .3s;
}
.mt-leadform button[type=submit]:hover{background:var(--lf-ink)}
.mt-leadform button[type=submit]:focus-visible{outline:2px solid var(--lf-ink);outline-offset:3px}
.mt-leadform button[type=submit][disabled]{opacity:.7;cursor:default}
.mt-leadform .lf-spin{
  display:none;width:15px;height:15px;margin-right:10px;vertical-align:-2px;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;
  animation:mtlf-spin .7s linear infinite;
}
.mt-leadform.is-sending .lf-spin{display:inline-block}
@keyframes mtlf-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mt-leadform .lf-spin{animation-duration:1.6s}}

/* nota de confianza + error global */
.mt-leadform .lf-note{font-size:12.5px;color:var(--lf-faint);margin-top:14px;text-align:center}
.mt-leadform .lf-fail{
  display:none;font-size:14px;color:var(--lf-error);
  background:rgba(179,40,45,.06);border:1px solid rgba(179,40,45,.25);
  border-radius:2px;padding:13px 15px;margin-top:18px;
}
.mt-leadform .lf-fail a{color:var(--lf-error);font-weight:700}
.mt-leadform.is-failed .lf-fail{display:block}

/* honeypot fuera de vista (no display:none, más creíble para bots) */
.mt-leadform .lf-hp{position:absolute !important;left:-9999px !important;top:auto;width:1px;height:1px;overflow:hidden}
