/*
Theme Name: EsseIndia Apply
Theme URI: https://apply.esseindia.com
Author: EsseIndia Team
Author URI: https://esseindia.com
Description: Landing page theme for apply.esseindia.com — Forminator-based eligibility form with popup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esseindia
Tags: landing-page, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --ink: #150c2e;
  --gray: #6d6d80;
  --gray-light: #a6a6b8;
  --purple-950: #1a0d3d;
  --purple-900: #221056;
  --purple-800: #321a7a;
  --purple-700: #3a1889;
  --purple-600: #4b21c4;
  --purple-500: #6a35e6;
  --purple-400: #8b5cf6;
  --purple-300: #a78bfa;
  --lilac-200: #e2d5fc;
  --lilac-100: #f1ecfc;
  --lilac-50: #f8f6fd;
  --gold: #f5b400;
  --gold-light: #ffd76b;
  --white: #fff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
body.menu-open { overflow: hidden; }

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; }
.grad-text {
  background: linear-gradient(135deg, var(--purple-400), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .tag {
  display: inline-block;
  background: var(--lilac-100);
  color: var(--purple-600);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}
.section-head p { color: var(--gray); font-size: 14.5px; }
.tag-light { background: rgba(255,255,255,.1); color: var(--gold-light); }
.tag {
  display: inline-block;
  background: var(--lilac-100);
  color: var(--purple-600);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(75, 33, 196, .5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(75, 33, 196, .6);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); color: #fff; }
.btn-white { background: #fff; color: var(--purple-700); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-light {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); color: #fff; }
.animate-pulse-glow { animation: essePulseGlow 3s ease-in-out infinite; }
@keyframes essePulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(106, 53, 230, .2); }
  50%      { box-shadow: 0 0 40px rgba(106, 53, 230, .4); }
}

/* ============================================================
   5. TOPBAR
   ============================================================ */
.topbar { background: var(--purple-950); color: #dfd6fb; font-size: 13px; padding: 9px 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left a { margin-right: 22px; opacity: .9; transition: color .25s; }
.topbar-left a:hover { color: var(--gold-light); }
.topbar-left a i { margin-right: 4px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right a { opacity: .85; transition: color .25s; }
.topbar-right a:hover { color: var(--gold-light); }
.topbar-whatsapp i { color: #25D366 !important; }

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(75, 33, 196, .08);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 8px 30px -14px rgba(26, 13, 61, .2); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { max-height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 14.5px; }
.burger { display: none; font-size: 20px; color: var(--purple-600); padding: 6px; }

/* ============================================================
   7. LOGO VARIANTS
   ============================================================ */
.brand-logo-link { display: inline-flex; align-items: center; transition: opacity .25s; }
.brand-logo-link:hover { opacity: .85; }
.esse-logo-header { max-height: 44px; width: auto; object-fit: contain; }
.esse-logo-footer { max-height: 48px; width: auto; object-fit: contain; filter: brightness(1.05); }
.footer-about .esse-logo-footer { background: transparent; padding: 0; border-radius: 0; }
.brand-logo-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 20px; color: var(--purple-600); }
.brand-logo-footer.brand-logo-text { color: #fff; }

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer { background: var(--purple-950); color: #c9c3dc; padding: 70px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer-grid h5 {
  color: #fff; font-size: 14.5px; margin-bottom: 18px; font-weight: 700;
  position: relative; padding-bottom: 10px;
}
.footer-grid h5::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--purple-500);
}
.footer-grid ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid ul li a { color: #a9a2c2; transition: color .25s, padding .25s; }
.footer-grid ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-about p { font-size: 13px; margin: 16px 0; line-height: 1.65; color: #a9a2c2; }
.footer-about img { max-height: 44px; width: auto; background: transparent; padding: 0; border-radius: 0; }
.newsletter {
  display: flex; background: rgba(255,255,255,.06);
  border-radius: 999px; padding: 5px; margin-bottom: 18px; max-width: 320px;
}
.newsletter input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; padding: 8px 14px; font-size: 13px; min-width: 0;
}
.newsletter input::placeholder { color: #8b84a3; }
.newsletter button {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--gold));
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-line {
  font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 10px;
  color: #a9a2c2; align-items: flex-start;
}
.contact-line i { color: var(--gold); margin-top: 3px; }
.contact-line a { color: inherit; transition: color .25s; }
.contact-line a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 12.5px; color: #8b84a3;
  flex-wrap: wrap; gap: 8px;
}
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { color: #8b84a3; transition: color .3s; }
.footer-legal-links a:hover { color: var(--gold-light); }
.footer-credit {
  text-align: center; padding: 18px 0; font-size: 12px; color: #8b84a3;
  border-top: 1px solid rgba(255, 255, 255, .05); margin-top: 4px; line-height: 1.6;
}
.footer-credit a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   9. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(75, 33, 196, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s; z-index: 80;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   10. MOBILE MENU
   ============================================================ */
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(21, 12, 46, .4);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 110;
}
.menu-backdrop.show { opacity: 1; visibility: visible; }

@media (max-width: 992px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px; box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    transition: right .35s ease; gap: 20px; z-index: 120; overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-menu .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   11. HERO (home + base)
   ============================================================ */
.hero-home {
  position: relative;
  background: #0b0620;
  padding: 70px 0 90px;
  overflow: hidden;
  color: #fff;
}
.hero-home::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(245, 180, 0, .22), transparent 40%);
  pointer-events: none;
}
.hero-home .hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
}
.aaip-hero-badge {
  display: inline-block;
  background: rgba(255, 215, 0, .15);
  color: var(--gold-light);
  padding: 6px 20px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
  border: 1px solid rgba(245, 180, 0, .3);
}
.hero-home h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 800; line-height: 1.08; margin-bottom: 20px; color: #fff;
}
.hero-home .lead {
  color: #b3a6d6; font-size: 16px; line-height: 1.75;
  margin-bottom: 28px; max-width: 540px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-stats .stat b {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: var(--gold-light); display: block;
}
.hero-stats .stat span { font-size: 12px; color: #b3a6d6; }
.rating-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 18px; border-radius: 999px; color: #fff; font-size: 13px;
}
.rating-pill i { color: var(--gold); }
.rating-pill b { color: var(--gold-light); }
.rating-pill .stars { color: var(--gold); letter-spacing: 2px; }

.hero-plane, .hero-passport {
  position: absolute; color: var(--gold-light); opacity: .5; z-index: 1;
}
.hero-plane { font-size: 26px; top: 20%; left: 5%; }
.hero-passport { font-size: 32px; opacity: .2; }
.hero-passport.p1 { top: 15%; right: 8%; }
.hero-passport.p2 { bottom: 20%; left: 6%; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb.orb-1 { width: 300px; height: 300px; background: rgba(139, 92, 246, .35); top: 10%; left: -80px; }
.hero-orb.orb-2 { width: 260px; height: 260px; background: rgba(245, 180, 0, .18); bottom: 10%; right: -60px; }
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.04));
}

/* ============================================================
   12. MARQUEE
   ============================================================ */
.trusted-marquee {
  padding: 24px 0 30px; background: #fff;
  border-bottom: 1px solid var(--lilac-100); overflow: hidden;
}
.trusted-label {
  text-align: center; font-size: 12px; color: var(--gray);
  font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px;
}
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--lilac-100);
  border-radius: 999px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; box-shadow: 0 4px 14px -6px rgba(26, 13, 61, .1);
}
.trust-pill i { color: var(--purple-500); font-size: 15px; }
.trust-pill b { color: var(--purple-600); font-size: 15px; font-weight: 900; }
.trust-pill span { color: var(--gray); font-size: 12px; }
.trust-pill.gold {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-500));
  color: #fff; border-color: transparent;
}
.trust-pill.gold i, .trust-pill.gold span { color: var(--gold-light); }

/* ============================================================
   13. WHY
   ============================================================ */
.why-compact { padding: 70px 0; }
.why-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: #fff; border-radius: 18px; padding: 26px 22px;
  border: 1px solid var(--lilac-100);
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(75, 33, 196, .25);
  border-color: var(--purple-300);
}
.why-number {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font-display); font-size: 42px; font-weight: 900;
  color: var(--lilac-100); line-height: 1;
}
.why-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--lilac-100); color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
  transition: transform .3s, background .3s, color .3s;
}
.why-card:hover .why-icon {
  background: var(--purple-600); color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.why-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--gray); line-height: 1.6; }

/* ============================================================
   14. STATS BANNER
   ============================================================ */
.stats-banner-numbered {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-600));
  color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat-block b {
  display: block; font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px); font-weight: 900;
  color: var(--gold-light); line-height: 1; margin-bottom: 6px;
}
.stat-block span { font-size: 12px; color: rgba(255,255,255,.85); }

/* ============================================================
   15. PROCESS
   ============================================================ */
.process-compact { padding: 70px 0; background: var(--lilac-50); }
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 20px; padding-top: 30px;
}
.timeline-line {
  position: absolute; top: 44px; left: 5%; right: 5%; height: 2px;
  background: var(--lilac-100); z-index: 0;
}
.timeline-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple-500), var(--gold));
  transition: width 1.2s ease;
}
.tl-step {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tl-dot {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 2px solid var(--purple-400); color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 12px;
}
.tl-step small {
  font-size: 11px; color: var(--purple-500); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.tl-step b { font-size: 14px; font-weight: 800; }
.tl-step span { font-size: 12.5px; color: var(--gray); }

/* ============================================================
   16. AWARDS
   ============================================================ */
.awards-compact {
  padding: 70px 0;
  background: linear-gradient(135deg, #0b0620, #221056);
  color: #fff;
}
.awards-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.awards-compact h2 {
  color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 10px 0 22px;
}
.trophy-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trophy-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 18px 10px; text-align: center;
  transition: transform .3s, background .3s, border-color .3s;
}
.trophy-card:hover {
  background: rgba(255,255,255,.1); transform: translateY(-4px); border-color: var(--gold);
}
.trophy-card i { font-size: 22px; color: var(--gold-light); display: block; margin-bottom: 8px; }
.trophy-card small { font-size: 11px; color: rgba(255,255,255,.85); line-height: 1.35; display: block; }
.awards-right p { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 6px; }
.awards-right h3 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.awards-note { color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.6; margin-bottom: 20px; }

/* ============================================================
   17. FINAL CTA
   ============================================================ */
.final-cta {
  position: relative; background: #0b0620; padding: 90px 0;
  text-align: center; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(106, 53, 230, .35), transparent 60%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 {
  color: #fff; font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; margin-bottom: 14px;
}
.cta-inner p { color: #b3a6d6; margin-bottom: 30px; font-size: 15px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-plane { position: absolute; top: 25%; left: 8%; color: var(--gold-light); font-size: 26px; opacity: .5; }
.cloud { position: absolute; background: rgba(255,255,255,.06); border-radius: 50%; filter: blur(20px); }
.cloud.c1 { width: 120px; height: 60px; top: 15%; left: 10%; }
.cloud.c2 { width: 160px; height: 70px; top: 60%; right: 15%; }
.cloud.c3 { width: 100px; height: 50px; bottom: 20%; left: 40%; }

/* ============================================================
   18. LANDING PAGE — MAIN FORM SECTION
   ============================================================ */
.lp-form-section {
  padding: 80px 0;
  background: var(--lilac-50);
  position: relative;
  overflow: hidden;
}
.lp-form-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(106, 53, 230, .08) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.lp-form-section .section-head { position: relative; z-index: 1; }
.lp-form-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 42px 40px;
  border: 1px solid var(--lilac-100);
  box-shadow: 0 30px 70px -30px rgba(75, 33, 196, .28);
}
.lp-form-wrap .forminator-ui { margin: 0 !important; }

/* ============================================================
   19. POPUP
   ============================================================ */
.ep-overlay {
  position: fixed; inset: 0;
  background: rgba(21, 12, 46, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.ep-overlay.ep-open { opacity: 1; pointer-events: auto; }
.ep-box {
  position: relative; width: 100%; max-width: 560px;
  background: #fff; border-radius: 24px;
  padding: 40px 34px 34px;
  box-shadow: 0 30px 70px -20px rgba(26, 13, 61, .4);
  transform: translateY(18px) scale(.97);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3);
  color: var(--ink);
  max-height: 92vh; overflow-y: auto;
}
.ep-overlay.ep-open .ep-box { transform: translateY(0) scale(1); }
.ep-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lilac-100); color: var(--purple-600);
  border: none; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.ep-close:hover { background: #e2d6fb; transform: rotate(90deg); }
.ep-tag {
  display: inline-block; background: var(--lilac-100); color: var(--purple-600);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
}
.ep-box h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 22px; font-weight: 800; margin: 0 0 8px; line-height: 1.3;
}
.ep-box p.ep-sub {
  font-size: 13.5px; color: var(--gray); margin: 0 0 20px; line-height: 1.5;
}
#popupFormHolder { margin-top: 10px; }

/* ============================================================
   20. FORMULATOR / FORM ONATOR OVERRIDES
   ============================================================ */
.forminator-custom-form { font-family: var(--font-body) !important; }
.forminator-custom-form .forminator-label {
  font-weight: 600 !important; font-size: 13px !important;
  color: var(--ink) !important; margin-bottom: 6px !important;
}
.forminator-custom-form input.forminator-input,
.forminator-custom-form textarea.forminator-textarea {
  border: 1.5px solid #e7e1f7 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  background: var(--lilac-50) !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: border-color .25s, box-shadow .25s !important;
  height: auto !important;
  line-height: 1.5 !important;
}
.forminator-custom-form select.forminator-select {
  border: 1.5px solid #e7e1f7 !important;
  border-radius: 12px !important;
  background: var(--lilac-50) !important;
  height: auto !important;
  padding: 12px 14px !important;
}
.forminator-custom-form input.forminator-input:focus,
.forminator-custom-form textarea.forminator-textarea:focus {
  border-color: var(--purple-500) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(106, 53, 230, .10) !important;
  outline: none !important;
}
.forminator-custom-form .forminator-row { margin-bottom: 16px !important; }
.forminator-custom-form .forminator-button-submit {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 15px 40px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  width: 100% !important;
  box-shadow: 0 8px 24px rgba(106, 53, 230, .25) !important;
  transition: transform .3s, box-shadow .3s !important;
  font-family: inherit !important;
  cursor: pointer;
}
.forminator-custom-form .forminator-button-submit:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 40px rgba(106, 53, 230, .4) !important;
}
.forminator-custom-form .forminator-response-message {
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 13.5px !important;
}
.forminator-custom-form .forminator-response-message.forminator-success {
  background: #e8f8ee !important;
  color: #146c3c !important;
  border: 1px solid #b9ecc9 !important;
}
.forminator-custom-form .forminator-response-message.forminator-error {
  background: #fdecec !important;
  color: #a3272c !important;
  border: 1px solid #f6c2c2 !important;
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-home .hero-grid { grid-template-columns: 1fr; }
  .why-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .timeline-line { display: none; }
  .awards-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .footer-about { grid-column: span 3; }
}
@media (max-width: 768px) {
  .hero-home { padding: 50px 0 70px; }
  .why-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trophy-row { grid-template-columns: repeat(2, 1fr); }
  .why-compact, .process-compact { padding: 50px 0; }
  .awards-compact { padding: 50px 0; }
  .footer { padding: 50px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 30px; }
  .footer-about { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar-left a:nth-child(2) { display: none; }
  .topbar-left a { margin-right: 14px; font-size: 11.5px; }
  .topbar-right a { font-size: 11.5px; }
  .lp-form-section { padding: 56px 0; }
  .lp-form-wrap { padding: 28px 22px; border-radius: 18px; }
  .esse-logo-header { max-height: 38px; }
  .esse-logo-footer { max-height: 42px; }
}
@media (max-width: 480px) {
  .hero-home h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-about { grid-column: span 2; }
  .ep-box { padding: 30px 22px 24px; }
  .lp-form-wrap { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}