/* ============================================================
   Landing 05 — Form Directo
   Native HTML form, single fold premium experience
   ============================================================ */

/* --- HERO ------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-4) 0 var(--space-7);
}
@media (min-width: 768px) {
  .hero { padding: var(--space-5) 0 var(--space-8); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 10%, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(176, 196, 222, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero .ed-display { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .ed-lead    { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* --- CTA final full-bleed navy (mismo estilo que VSL/1428) ------- */
.ed-final-cta {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.ed-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}
.ed-final-cta > * { position: relative; z-index: 1; }
.ed-final-cta .ed-display { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* --- FORM CARD ------------------------------------------- */

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--ed-white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.20),
    0 0 0 1px rgba(212, 175, 55, 0.10);
  text-align: left;
}
@media (min-width: 768px) {
  .form-card { padding: var(--space-5); }
}

/* --- FORM FIELDS ----------------------------------------- */

.ed-form { display: flex; flex-direction: column; gap: var(--space-2); }

.ed-form-field { display: block; }

.ed-form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ed-navy);
  margin-bottom: 0.4rem;
}

.ed-form-field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid rgba(12, 27, 51, 0.15);
  border-radius: var(--radius-sm);
  background: var(--ed-white);
  color: var(--ed-ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.ed-form-field input::placeholder {
  color: rgba(12, 27, 51, 0.35);
}
.ed-form-field input:focus {
  outline: none;
  border-color: var(--ed-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.ed-form-field input.is-invalid {
  border-color: #C53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.10);
}

.ed-form-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #C53030;
  line-height: 1.3;
}
.ed-form-error:empty { min-height: 0; margin-top: 0; }

/* --- SUBMIT BUTTON --------------------------------------- */

.ed-form-submit {
  position: relative;
  width: 100%;
  margin-top: var(--space-3);
  padding: 18px 24px;
  background: var(--ed-navy);
  color: var(--ed-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ed-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  overflow: hidden;
}
.ed-form-submit:hover {
  background: var(--ed-gold);
  color: var(--ed-navy);
  border-color: var(--ed-gold);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.30);
}
.ed-form-submit:active { transform: translateY(1px); }
.ed-form-submit:disabled { opacity: 0.65; cursor: progress; }

.ed-form-submit-label { transition: opacity var(--t-fast) var(--ease); }
.ed-form-submit-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.ed-form-submit-spinner::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--ed-white);
  animation: ed-spin 0.7s linear infinite;
}
.ed-form-submit.is-loading .ed-form-submit-label { opacity: 0; }
.ed-form-submit.is-loading .ed-form-submit-spinner { display: flex; }
@keyframes ed-spin { to { transform: rotate(360deg); } }

/* --- MICROCOPY ------------------------------------------- */

.ed-form-microcopy {
  margin: var(--space-2) 0 0;
  font-size: 0.8125rem;
  color: var(--ed-muted);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   INTL-TEL-INPUT — Override de estilos para matchear el brand
   ============================================================ */

.iti { display: block !important; width: 100%; }
.iti__country-list {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 27, 51, 0.10);
  box-shadow: 0 12px 32px rgba(12, 27, 51, 0.18);
  max-height: 280px;
}
.iti__country.iti__highlight {
  background: var(--ed-pearl);
}
.iti__selected-flag {
  border-right: 1px solid rgba(12, 27, 51, 0.10);
  padding: 0 12px 0 14px;
}
.iti--separate-dial-code .iti__selected-dial-code {
  color: var(--ed-navy);
  font-weight: 600;
  font-size: 0.9375rem;
}
.iti--separate-dial-code .iti__selected-flag {
  background: var(--ed-pearl);
}
.iti__divider {
  border-bottom: 1px solid rgba(12, 27, 51, 0.08);
}
/* asegurar que el input del teléfono herede el padding correcto */
.iti input[type="tel"] {
  padding-left: 100px !important;
}

@media (max-width: 640px) {
  .ed-section + .ed-section:last-of-type { padding-bottom: 6rem; }
}
