/* =========================
   10/10 Premium Base (Mobile First)
========================= */
:root{
  --bg:#07070a;
  --text:#f7f7fb;
  --muted:#b7b7c6;
  --line:rgba(255,255,255,.10);

  --accent:#9b5cff;
  --accent2:#35f0c3;

  --radius:18px;
  --radius2:22px;
  --shadow: 0 18px 55px rgba(0,0,0,.55);

  --max: 1180px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px; scroll-behavior:smooth;}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  line-height:1.6;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(155,92,255,.22), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(53,240,195,.16), transparent 58%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button{font:inherit}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* Typography baseline */
h1,h2,h3{line-height:1.08}
p{color:var(--muted)}
strong{color:var(--text)}

/* Small helpers */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}

/* =========================
   Header / Navbar
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter: blur(12px);
  background: rgba(7,7,10,.72);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand-mark{
  width:42px;height:42px;
  border-radius:15px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-name{font-weight:950;letter-spacing:.2px}
.brand-tag{font-size:12px;color:var(--muted);margin-top:4px}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-link{
  font-size:14px;
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.06);
  color:var(--text);
  transform: translateY(-1px);
}
.nav-link.active{
  color:var(--text);
  background: rgba(155,92,255,.16);
  border:1px solid rgba(155,92,255,.26);
}

.nav-cta{
  margin-left:10px;
  padding:11px 14px;
  border-radius:14px;
  font-weight:950;
  background: linear-gradient(135deg, rgba(155,92,255,.98), rgba(53,240,195,.88));
  color:#07070a;
  box-shadow: 0 18px 45px rgba(155,92,255,.18);
  transition: transform .15s ease, filter .15s ease;
}
.nav-cta:hover{transform: translateY(-1px); filter: brightness(1.04);}

/* Mobile menu button */
.nav-toggle{
  display:none;
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:20px;height:2px;
  background: var(--text);
  margin:5px auto;
  border-radius:2px;
}

/* =========================
   Buttons
========================= */
.btn-primary, .btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  transition: transform .15s ease, background .15s ease, filter .15s ease;
  user-select:none;
}

.btn-primary{
  font-weight:950;
  background: linear-gradient(135deg, rgba(155,92,255,.98), rgba(53,240,195,.88));
  color:#07070a;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.btn-primary:hover{transform: translateY(-1px); filter: brightness(1.04);}

.btn-secondary{
  font-weight:900;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
}
.btn-secondary:hover{transform: translateY(-1px); background: rgba(255,255,255,.10);}

/* =========================
   Hero
========================= */
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  padding:34px 0 22px;
  align-items:stretch;
}

.hero-left{
  padding:28px;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-kicker{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(155,92,255,.14);
  border: 1px solid rgba(155,92,255,.28);
  color: var(--text);
  font-size:13px;
}

.hero-title{
  font-size:46px;
  margin:14px 0 10px;
  letter-spacing:-.6px;
}

.hero-subtitle{
  color:var(--muted);
  max-width:680px;
  font-size:15px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-trust{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}

.trust-item{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.trust-num{display:block;font-weight:950;font-size:20px;color:var(--text)}
.trust-label{display:block;color:var(--muted);font-size:12px;margin-top:4px}

/* Right card wrapper */
.hero-right{border-radius: var(--radius2); overflow:hidden;}
.hero-card{
  height:100%;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* =========================
   Carousel
========================= */
.carousel{
  position:relative;
  height:100%;
  min-height: 440px;
  border-radius: var(--radius2);
  overflow:hidden;
}

.carousel-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 700ms ease;
  background-size: cover;
  background-position: center;
}
.carousel-slide.active{opacity:1; transform: scale(1);}

.carousel-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.82));
}

.carousel-ui{
  position:absolute;
  left:18px; right:18px; bottom:18px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
}

.hero-card-title{font-weight:950;margin-bottom:6px;color:var(--text)}
.hero-card-sub{color:var(--muted);font-size:13px}

.carousel-controls{display:flex;gap:10px;}
.icon-btn{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.10);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.icon-btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.14);}

.carousel-dots{
  position:absolute;
  top:18px; left:18px;
  display:flex; gap:8px;
}
.carousel-dot{
  width:10px;height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.25);
  cursor:pointer;
}
.carousel-dot.active{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
}

/* =========================
   Sections
========================= */
.features,
.results{
  padding: 34px 0 64px;
}

.section-head{
  margin: 10px 0 18px;
  max-width: 760px;
}

.section-title{
  font-size: 32px;
  letter-spacing: -.3px;
}

.section-subtitle{
  margin-top: 10px;
  color: var(--muted);
}

/* =========================
   Features
========================= */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top: 16px;
}

.feature-card{
  padding:18px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease;
}
.feature-card:hover{transform: translateY(-3px); background: rgba(255,255,255,.06);}

.feature-media{
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(155,92,255,.20), rgba(53,240,195,.12));
  border:1px solid rgba(255,255,255,.10);
  margin-bottom: 14px;
}

.feature-title{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 8px;
  color:var(--text);
}

.feature-text{
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.feature-points{
  list-style: none;
  display:grid;
  gap:8px;
  margin-top: 10px;
}

.feature-points li{
  color: var(--text);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.features-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 18px;
}

/* =========================
   Results
========================= */
.results-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top: 16px;
}

.result-card{
  padding:18px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.result-card:hover{transform: translateY(-3px);}

.result-media{
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(53,240,195,.12));
  border:1px solid rgba(255,255,255,.10);
  margin-bottom: 14px;
}

.result-title{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 6px;
  color:var(--text);
}

.result-text{
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Testimonials (Fixes your current look)
========================= */
.testimonial-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top: 16px;
}

.testimonial-card{
  padding:18px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}

.quote{
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.who{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .nav-toggle{display:inline-block}
  .nav{
    display:none;
    position:absolute;
    left:18px;
    right:18px;
    top:72px;
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    border-radius:18px;
    border:1px solid var(--line);
    background: rgba(10,10,14,.92);
    box-shadow: var(--shadow);
  }
  .nav.show{display:flex}
  .nav-cta{margin-left:0;text-align:center}

  .hero{grid-template-columns:1fr}
  .hero-title{font-size:38px}

  .feature-grid{grid-template-columns:1fr}
  .results-grid{grid-template-columns:1fr}
  .testimonial-grid{grid-template-columns:1fr}

  .carousel{min-height: 340px;}
}
/* =========================
   CTA Strip + Footer
========================= */
.cta-strip{
  padding: 0 0 22px;
}

.cta-inner{
  margin-top: 8px;
  padding: 22px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background:
    radial-gradient(700px 280px at 10% 20%, rgba(155,92,255,.22), transparent 60%),
    radial-gradient(700px 280px at 90% 20%, rgba(53,240,195,.18), transparent 60%),
    rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}

.cta-title{
  font-size: 28px;
  letter-spacing: -.3px;
}

.cta-subtitle{
  margin-top: 8px;
  color: var(--muted);
  max-width: 680px;
}

.cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Footer */
.site-footer{
  margin-top: 18px;
  padding: 36px 0 18px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}

.footer-grid{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display:grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 18px;
}

.footer-col{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 12px;
}

.footer-brand-text{line-height:1.05}
.footer-brand-name{font-weight:950;color:var(--text)}
.footer-brand-tag{font-size:12px;color:var(--muted);margin-top:4px}

.footer-text{
  margin-top: 10px;
  color: var(--muted);
}

.footer-mini{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 14px;
}

.mini-pill{
  font-size:12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
}

.footer-title{
  font-weight:950;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-link{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  border:1px solid transparent;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}

.footer-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.08);
}

.footer-small{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.social-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}

.social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 850;
  font-size: 13px;
  transition: transform .15s ease, background .15s ease;
}
.social-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.footer-bottom{
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0 18px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom-right{
  text-align:right;
}

/* Responsive */
@media (max-width: 980px){
  .cta-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .cta-title{font-size: 24px;}

  .footer-grid{
    grid-template-columns: 1fr;
  }
  .footer-bottom{
    flex-direction:column;
    text-align:left;
  }
  .footer-bottom-right{
    text-align:left;
  }
}
/* WhatsApp emphasis */
.social-btn.whatsapp{
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #041b0f;
  font-weight: 950;
  box-shadow: 0 16px 40px rgba(37,211,102,.35);
  border: none;
}
.social-btn.whatsapp:hover{
  transform: translateY(-2px);
}
/* =========================
   Lead Modal
========================= */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:2000;
}
.modal.open{display:block;}

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.modal-panel{
  position:relative;
  width:min(720px, calc(100% - 28px));
  margin: 90px auto 24px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(700px 320px at 12% 18%, rgba(155,92,255,.18), transparent 60%),
    radial-gradient(700px 320px at 92% 18%, rgba(53,240,195,.14), transparent 60%),
    rgba(12,12,18,.92);
  padding:18px;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.modal-title{
  font-size: 20px;
  font-weight: 950;
  color: var(--text);
}

.modal-sub{
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.modal-x{
  width:42px;
  height:42px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.modal-x:hover{background: rgba(255,255,255,.10)}

.lead-form{
  margin-top: 14px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field-label{
  font-size: 12px;
  color: var(--muted);
}

.field-input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}

.field-input:focus{
  border-color: rgba(155,92,255,.45);
  box-shadow: 0 0 0 3px rgba(155,92,255,.16);
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.form-note{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

@media (max-width: 980px){
  .modal-panel{ margin: 70px auto 18px; }
  .form-grid{ grid-template-columns: 1fr; }
}
.feature-media,
.result-media,
.carousel-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* =========================
   Lead Form Fixes (Dropdown + Mobile input)
========================= */

/* Force dark UI for native form controls (Chrome/Edge) */
.lead-form, .modal-panel {
  color-scheme: dark;
}

/* Inputs + selects styling consistency */
.field-input{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Make selects look consistent + remove weird white flash */
select.field-input{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px; /* space for arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%),
    linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 12px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Options dropdown (helps reduce white dropdown patch on some setups) */
select.field-input option{
  background: #0f0f14;
  color: #f6f6f8;
}

/* Focus */
.field-input:focus{
  outline: none;
  border-color: rgba(155,92,255,.45);
  box-shadow: 0 0 0 4px rgba(155,92,255,.16);
}
/* ===== Pricing Banner Hero (no split layout) ===== */
.hero.hero-banner{
  margin-top: 18px;
}

.hero-banner-inner{
  width: 100%;
  max-width: 100%;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(1200px 500px at 20% 20%, rgba(155,92,255,.18), transparent 60%),
              radial-gradient(900px 500px at 85% 30%, rgba(53,240,195,.16), transparent 55%),
              rgba(10,12,16,.72);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Force banner to not try 2-column layout */
.hero.hero-banner{
  display: block;
}

.hero.hero-banner .hero-left{
  max-width: 100%;
}

.hero.hero-banner .hero-actions{
  flex-wrap: wrap;
  gap: 12px;
}
/* === Stable Pricing Cards === */
.pricing-cards{ padding: 18px 0 8px; }

.plans-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:14px;
}
@media (max-width: 980px){
  .plans-grid{ grid-template-columns: 1fr; }
}

.plan-card{
  border-radius:22px;
  padding:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  min-height: 420px;
}

.plan-featured{
  border: 1px solid rgba(140,110,255,.45);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  transform: translateY(-6px);
}
@media (max-width: 980px){
  .plan-featured{ transform:none; }
}

.plan-top{ padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.10); }

.plan-badge{
  display:inline-flex;
  width: max-content;
  padding: 8px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-name{ margin:0 0 10px; font-size: 18px; letter-spacing:.2px; }

.plan-price{
  display:flex;
  align-items: baseline;
  gap:10px;
  margin-bottom: 6px;
}
.plan-amt{ font-size: 40px; font-weight: 900; line-height: 1; }
.plan-usd{ opacity:.85; font-weight:700; }

.plan-for{ margin: 0; opacity: .90; font-weight: 600; }

.plan-features{
  list-style:none;
  padding: 14px 0 0;
  margin: 0;
  display:grid;
  gap:10px;
  flex:1;
}
.plan-features li{
  position:relative;
  padding: 12px 12px 12px 40px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 650;
  opacity: .96;
}
.plan-features li::before{
  content: "✓";
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
}

.plan-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.plan-btn{ width: max-content; }

.plans-note{
  margin-top: 12px;
  opacity: .9;
}
.footer-bottom-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links a{
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  opacity: .85;
}

.footer-bottom-links a:hover{
  opacity: 1;
}
/* Footer contact icon style */
.footer-contact{
  display:flex;
  align-items:center;
  gap:10px;
}

.footer-ico{
  width:28px;
  height:28px;
  border-radius:10px;
  display:inline-grid;
  place-items:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
  line-height: 1;
}
/* =========================
   Mobile Lead Modal Fix
   - Panel fits viewport
   - Form scrolls
   - Buttons sticky and always visible
========================= */

.modal {
  padding: 16px; /* ensures breathing space on small screens */
}

.modal-panel {
  max-height: calc(100vh - 32px);
  overflow: hidden;               /* important: keep scroll inside form */
  display: flex;
  flex-direction: column;
}

/* Make the form area scroll, not the whole modal */
.lead-form {
  display: flex;
  flex-direction: column;
  min-height: 0;                  /* critical for flex scroll */
  flex: 1;
}

/* Scroll inside form content */
.lead-form .form-grid {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;             /* avoids scrollbar overlap (Android) */
  min-height: 0;
}

/* Keep buttons visible */
.lead-form .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 12px;
  padding-top: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom)); /* iPhone safe area */
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* On very small phones, ensure fields don't get too tall */
@media (max-width: 420px) {
  .modal-panel { max-height: calc(100vh - 20px); }
}
/* =========================
   iOS Safari modal fix
   - use dvh when available
   - avoid 100vh keyboard bug
   - ensure scroll works + sticky buttons visible
========================= */

/* Prefer dynamic viewport height on modern Safari */
@supports (height: 100dvh) {
  .modal-panel {
    max-height: calc(100dvh - 32px);
  }
}

/* Fallback for older Safari: use -webkit-fill-available */
@supports (-webkit-touch-callout: none) {
  .modal-panel {
    max-height: -webkit-fill-available;
  }
}

/* Make sure the scroll happens on a dedicated body wrapper */
.modal-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lead-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* critical for iOS flex scrolling */
}

/* This is the scroll container */
.lead-form .form-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 18px; /* space above sticky buttons */
}

/* Sticky action bar for Safari */
.lead-form .form-actions {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* If Safari still clips the bottom due to keyboard, add more room */
@supports (-webkit-touch-callout: none) {
  .modal { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.modal-panel {
  max-height: calc((var(--vh, 1vh) * 100) - 32px);
}
/* =========================
   DROP-IN FIX: Mobile zoom + Safari modal scroll
   (NO restructure, overrides only)
========================= */

/* 1) Prevent mobile auto-zoom on input/select (Chrome + Safari) */
.field-input,
select.field-input,
textarea.field-input{
  font-size:16px !important; /* critical */
  line-height:1.2 !important;
}

/* 2) Make sure modal panel never exceeds viewport height */
.modal-panel{
  max-height: calc((var(--vh, 1vh) * 100) - 32px) !important;
}

/* 3) Reduce risky top margin on mobile so buttons don't go out */
@media (max-width: 980px){
  .modal-panel{
    margin: 16px auto 16px !important;
  }
}

/* 4) Ensure internal scroll works smoothly on iOS */
.lead-form .form-grid{
  -webkit-overflow-scrolling: touch !important;
  overflow-y: auto !important;
}

/* 5) Sticky actions always visible (Safari) */
.lead-form .form-actions{
  position: -webkit-sticky !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  background: rgba(10, 10, 12, 0.96) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
}
/* =========================
   Welcome Popup (Home)
========================= */
.welcome-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2100;
}
.welcome-modal.open{ display: block; }

.welcome-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-panel{
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: 18vh auto 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(800px 320px at 20% 10%, rgba(155,92,255,.22), transparent 60%),
    radial-gradient(800px 320px at 90% 10%, rgba(53,240,195,.16), transparent 60%),
    rgba(12,12,18,.94);
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  padding: 18px;
}

.welcome-badge{
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(155,92,255,.14);
  border: 1px solid rgba(155,92,255,.28);
  color: #f7f7fb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 12px;
}

.welcome-title{
  font-size: 22px;
  font-weight: 950;
  color: #f7f7fb;
  line-height: 1.15;
}

.welcome-sub{
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.6;
}

.welcome-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.welcome-x{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #f7f7fb;
  cursor: pointer;
}
.welcome-x:hover{ background: rgba(255,255,255,.10); }

@media (max-width: 420px){
  .welcome-panel{ margin: 14vh auto 18px; }
}

