/*
 * Formulario de contacto: ÚNICO componente compartido por TODAS las páginas
 * que solicitan datos de un lead (index.html, lepas-l8.html, lepas-l6.html,
 * lepas-l4.html). La fuente de verdad es lepas-l8.html: estos estilos están
 * copiados literalmente de ahí para que el formulario se vea exactamente
 * igual en cualquier página, sin variaciones. El marcado del <form> lo genera
 * includes/lead-form.js (mismo script en todas las páginas); este archivo es
 * la ÚNICA fuente de verdad para su apariencia.
 *
 * NO dupliques estas reglas en el CSS de una página concreta: si el
 * formulario necesita cambiar, se cambia aquí.
 *
 * Depende de variables definidas en el :root de cada página:
 * --line, --brand, --brand-strong, --brand-text, --panel, --radius-lg,
 * --muted, --text
 */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.panel {
  background: linear-gradient(180deg, #181d22 0%, #14181c 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

#contacto {
  scroll-margin-top: 110px;
}

#contacto .section-lead {
  margin-bottom: 40px;
}

.contact-points {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact-phone {
  margin: 14px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.contact-phone a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}
.contact-phone a:hover { text-decoration: underline; }

form {
  display: grid;
  gap: 14px;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.is-error {
  color: #f0b3a8;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #101418;
  color: var(--text);
  padding: 12px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}

input:focus, select:focus {
  outline: none;
  border-color: #4a5965;
  box-shadow: 0 0 0 3px rgba(215, 190, 138, 0.16);
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-text);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .2s ease;
}
button:hover { background: var(--brand-strong); }
button:disabled { opacity: .72; cursor: not-allowed; }

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.consent-row label {
  cursor: pointer;
  user-select: none;
}

/* Modal de confirmación de envío */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 8, 10, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.lead-modal__panel {
  width: min(640px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, #181d22 0%, #12161a 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  padding: 28px;
}

.lead-modal__eyebrow {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.lead-modal__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead-modal__body {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.lead-modal__actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

.lead-modal__close {
  min-width: 160px;
}

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

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}
