/* =============================================================
   Bliss Distribution — Funnel page (apply.css)
   Layered on top of styles.css. Used by /apply/ and /es/aplicar/.
   Strips most chrome, focuses everything on the application form.
   ============================================================= */

/* Disable Tier 3 effects that don't fit a funnel:
   - No scroll-snap (funnel scrolls naturally)
   - Preloader still runs (brand consistency)
   - View transitions still work
*/
.funnel-page {
  scroll-snap-type: none;
}
.funnel-page section { scroll-snap-align: none; }

/* Hide chrome that doesn't belong on a funnel:
   - sticky CTA (form is the only CTA here)
   - chat widget (don't distract during conversion)
   - back-to-top (page is short)
   - scroll progress bar (not editorial reading) */
.funnel-page #sticky-cta,
.funnel-page #chat-widget,
.funnel-page #back-top,
.funnel-page .scroll-progress { display: none !important; }

/* ===== Minimal nav ===== */
.funnel-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(255,255,255, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0, 0.12);
}
.funnel-nav .container {
  display: flex; align-items: center; justify-content: space-between;
}

/* ===== Hero with form side-by-side ===== */
.funnel-hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(0,0,0, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0,0,0, 0.04), transparent 60%);
}
.funnel-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left side — the pitch */
.funnel-pitch { padding-top: 12px; }
.funnel-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: 11px; font-weight: 700;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold);
  padding: 8px 14px; border-radius: 100px;
  background: rgba(0,0,0, 0.08);
  border: 1px solid rgba(0,0,0, 0.22);
  margin-bottom: 24px;
}
.funnel-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,0,0, 0.18), 0 0 8px rgba(0,0,0, 0.5);
}
.funnel-h1 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 22px;
}
.funnel-h1 .gold {
  color: var(--gold-bright);
  font-family: var(--ff-accent);
  font-style: italic; font-weight: 500;
  letter-spacing: -0.02em;
}
.funnel-sub {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  margin-bottom: 28px; max-width: 540px;
}
.funnel-sub strong { color: var(--ink); }
.funnel-bullets {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; gap: 12px;
}
.funnel-bullets li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  align-items: start;
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
}
.funnel-bullets svg {
  width: 18px; height: 18px;
  color: var(--gold);
  background: rgba(0,0,0, 0.12);
  border-radius: 50%;
  padding: 3px;
  margin-top: 1px;
}
.funnel-bullets strong { color: var(--ink); font-weight: 700; }

/* Trust stats row */
.funnel-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0, 0.16);
  border-bottom: 1px solid rgba(0,0,0, 0.16);
}
.funnel-trust-stat { padding: 0 16px; border-right: 1px solid rgba(0,0,0, 0.10); }
.funnel-trust-stat:last-child { border-right: none; }
.funnel-trust-stat:first-child { padding-left: 0; }
.funnel-trust-stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.funnel-trust-stat span {
  font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.5px; line-height: 1.4;
}

/* Right side — the form card */
.funnel-form-wrap {
  position: sticky; top: 92px;
}
.funnel-form-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(0,0,0, 0.20);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow:
    0 24px 60px rgba(0,0,0, 0.10),
    0 4px 12px rgba(0,0,0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
}
/* Gold accent ring on the form card */
.funnel-form-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0, 0.5), transparent);
}
.funnel-form-card h2 {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.funnel-form-lede {
  font-size: 13.5px; color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.5;
}
.funnel-form-lede strong { color: var(--ink); }

/* Form overrides — lighter, more compact than the medallion-dark version */
.funnel-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.funnel-form .field { display: flex; flex-direction: column; gap: 5px; }
.funnel-form .field.full { grid-column: 1 / -1; }
.funnel-form label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-soft);
}
.funnel-form label .req { color: var(--gold); }
.funnel-form input,
.funnel-form select {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.funnel-form input::placeholder { color: var(--ink-muted); }
.funnel-form input:focus,
.funnel-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,0,0, 0.12);
}
.funnel-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%238a8270' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.funnel-form .submit-wrap {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.funnel-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 24px !important;
  font-size: 15px !important;
  letter-spacing: 0.2px;
}
.funnel-form-fineprint {
  grid-column: 1 / -1;
  font-size: 11px; color: var(--ink-muted);
  line-height: 1.5; margin-top: 4px;
  text-align: center;
}

/* Success / error states — override defaults for funnel */
.funnel-page #contact-success {
  display: none; margin-top: 18px;
  padding: 18px 20px; border-radius: 12px;
  background: rgba(0,0,0, 0.08);
  border: 1px solid rgba(0,0,0, 0.35);
  color: var(--ink); font-size: 14px; line-height: 1.55;
}
.funnel-page #contact-success strong { color: #000000; }
.funnel-page #contact-error {
  display: none; margin-top: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626; font-size: 13px;
}

/* ===== Process section ===== */
.funnel-process {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid rgba(0,0,0, 0.10);
  border-bottom: 1px solid rgba(0,0,0, 0.10);
}
.funnel-section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700; color: var(--ink);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 48px;
}
.funnel-steps {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.funnel-steps li {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.funnel-steps li:hover {
  border-color: rgba(0,0,0, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0, 0.08);
}
.funnel-steps .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0, 0.25);
}
.funnel-steps h3 {
  font-family: var(--ff-display);
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.funnel-steps p {
  font-size: 13.5px; color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Mini FAQ ===== */
.funnel-faq { padding: 80px 0; }
.funnel-faq .faq-list {
  max-width: 720px; margin: 0 auto;
}

/* ===== Bottom CTA ===== */
.funnel-bottom-cta {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(0,0,0, 0.06), transparent 60%);
  border-top: 1px solid rgba(0,0,0, 0.10);
}
.funnel-bottom-cta h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.funnel-bottom-cta p {
  font-size: 15px; color: var(--ink-soft);
  margin-bottom: 28px;
}
.funnel-bottom-cta .btn-primary {
  padding: 16px 32px;
  font-size: 15px;
}

/* ===== Footer ===== */
.funnel-footer {
  padding: 36px 0;
  background: var(--bg-soft);
  border-top: 1px solid rgba(0,0,0, 0.18);
}
.funnel-footer-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.funnel-footer-row span {
  font-size: 12px; color: var(--ink-muted);
}
.funnel-footer-row a {
  font-size: 13px; color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s, transform 0.25s;
}
.funnel-footer-row a:hover {
  color: var(--ink);
  transform: translateX(3px);
}
.funnel-footer .compliance {
  font-size: 11px; color: var(--ink-muted);
  line-height: 1.55;
  letter-spacing: 0.1px;
  max-width: 720px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .funnel-grid { grid-template-columns: 1fr; gap: 48px; }
  .funnel-form-wrap { position: static; }
  .funnel-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .funnel-hero { padding: 48px 0 64px; }
  .funnel-form-card { padding: 28px 20px; }
  .funnel-form { grid-template-columns: 1fr; }
  .funnel-steps { grid-template-columns: 1fr; }
  .funnel-trust { grid-template-columns: 1fr; gap: 16px; padding: 18px 0; }
  .funnel-trust-stat { border-right: none; border-bottom: 1px solid rgba(0,0,0, 0.10); padding: 0 0 14px; }
  .funnel-trust-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .funnel-footer-row { flex-direction: column; gap: 10px; text-align: center; }
}
