/* ============================================
   INDIA VSL MVP — Nutra Atlas-style (Black)
   Mobile First. Clean. Keitaro-ready.
   ============================================ */

:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --red: #c1121f;
  --red-dark: #8a0f18;
  --text: #f5f5f5;
  --text-muted: #b0b0b0;
  --success: #2e7d32;
  --error: #c62828;
  --border: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }

/* Container — mobile first, centered */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ================= HEADER (sticky + red menu) ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #111;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: var(--red);
  border-radius: 6px;
  padding: 2px 6px;
}

.nav-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 10px;
  white-space: nowrap;
  transition: background .15s;
}
.nav-bar a:hover {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* Burger (mobile) */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--red);
  border: none;
  border-radius: 6px;
  width: 42px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.menu-toggle .bar {
  width: 20px;
  height: 2px;
  background: #fff;
}

/* ================= HERO / HEADLINE ================= */
.hero {
  padding: 28px 0 16px;
  text-align: center;
}

.headline {
  font-size: clamp(21px, 5.4vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}

.headline span {
  color: var(--red);
}

.subheadline {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 20px;
}

/* ================= VIDEO SECTION ================= */
/* RELIABLE DESKTOP CENTERING FOR VIDEO PLAYER

   Problem: On wide screens the video player sticks to the LEFT.
   It only becomes centered after reducing browser width.

   Root cause:
   HTML is: <div class="container video-section">
   .container forces max-width:900px + margin:0 auto + padding.
   Inside elements with width:100% get stuck left on very wide viewports.

   Correct fix (simplest + strongest):
   - Remove container constraints ONLY for this video block
   - Center using classic margin:0 auto on .video-wrap (max-width + no width:100%)
*/

.container.video-section {
  /* Detach from the .container (900px) limit */
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 12px 0 28px !important;
}

.video-wrap {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);

  /* THE CENTERING */
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Unmute / Tap overlay (big) */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: opacity .3s;
}
.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-overlay .unmute-btn {
  background: var(--red);
  color: #fff;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(193,18,31,.5);
}
.video-overlay .unmute-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: .85;
}

/* Progress bar */
.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  width: 0%;
  z-index: 6;
  transition: width .1s linear;
}

/* ================= AS SEEN ON ================= */
.as-seen {
  padding: 14px 0;
  text-align: center;
}
.as-seen-title {
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.as-seen-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  opacity: 0.85;
}
.as-seen-logos span {
  background: #2a2a2a;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ================= FORM BLOCK (main + popup) ================= */
.form-section {
  margin: 24px 0;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 12px;
}

.form-header h2 {
  font-size: 18px;
  font-weight: 800;
}

.form-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 14px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 15px;
}

.price-new {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.discount {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.scarcity {
  font-size: 14px;
  color: #ffcc00;
  font-weight: 700;
  margin-bottom: 10px;
}

.timer-box {
  background: #111;
  border: 1px solid #444;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-and-form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-img-wrap {
  flex: 1;
  min-width: 140px;
  max-width: 260px;
}
.product-img-wrap img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* Form */
.lead-form {
  flex: 1;
  min-width: 240px;
}

.lead-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  color: var(--text-muted);
}

.lead-form input {
  width: 100%;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  margin-bottom: 10px;
  box-sizing: border-box;
  padding: 13px 14px;
}

/* Ensure phone inputs inside the wrapper get their size from .phone-input rules instead of mixing with this block */
.lead-form input[type="tel"] {
  height: auto;
}

.lead-form input:focus {
  outline: none;
  border-color: var(--red);
}

/* =================================================
   INDIA FLAG INSIDE PHONE INPUT — PERFECT CENTER
   Flag is centered vertically inside the <input> box.
   Every phone input uses:
     <div class="phone-input">
       <img class="flag" src="images/flag-in.png">
       <input type="tel" name="phone" ...>
     </div>
   ================================================= */

/* The container that holds ONLY the flag + input (place it right after <label>) */
.phone-input {
  position: relative;
  height: 48px;       /* explicit height = the "input box" */
}

/* Flag image — perfectly centered vertically */
.phone-input .flag,
.phone-input img.flag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);    /* vertical centering */
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #fff;
  z-index: 10;
  pointer-events: none;
}

/* The telephone input field */
.phone-input input[type="tel"] {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 14px 0 41px;   /* left room for flag + gap */
  font-size: 16px;
  line-height: normal;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111;
  color: #fff;
}

.phone-input input[type="tel"]:focus {
  outline: none;
  border-color: var(--red);
}

/* Make any old .input-group flag rule inert (we migrated away from it) */
.input-group .flag {
  display: none !important;
}

/* Submit */
.submit-btn {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.submit-btn:hover {
  background: #e21b2b;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

/* ================= COMMENTS ================= */
.comments {
  margin: 32px auto;
  max-width: 860px;
}
.comments-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.coment {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 10px 12px;
  animation: fadeUp .35s ease forwards;
}

.coment.visible {
  display: flex;
}

.coment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #333;
}

.coment-body { flex: 1; }
.coment-name { font-weight: 700; font-size: 14px; }
.coment-text { font-size: 13.5px; color: #ddd; margin-top: 1px; }
.coment-likes { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= EXIT POPUP ================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.popup-overlay.open {
  display: flex;
}

.popup-card {
  width: 94%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  position: relative;
}

.popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* ================= THANK YOU / SUCCESS ================= */
.thank-block {
  background: var(--bg-card);
  border: 1px solid var(--success);
  padding: 22px;
  text-align: center;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 500px;
  display: none;
}
.thank-block.show { display: block; }

/* ================= UTILITY ================= */
.hidden { display: none !important; }

/* =====================================================
   COMEBACKER / SECOND OFFER POPUP (config-driven)
   Ported pattern from saveweb2zip source:
   - Full screen dark overlay
   - White (dark-themed) card with urgency offer
   - Own timer + separate form (same submitLead handler)
   - Shows on back-button or stronger intent
===================================================== */
.comebacker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.comebacker-overlay.open {
  display: flex;
}

.comebacker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.8);
}

.comebacker-card h3 {
  color: #ffe066;
  font-size: 20px;
  margin-bottom: 6px;
}

.comebacker-card .urgency {
  color: #ff6b6b;
  font-weight: 700;
  margin-bottom: 12px;
}

.comebacker-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.comebacker-card .lead-form {
  margin-top: 12px;
}

.comebacker-card .timer-box {
  text-align: center;
  font-size: 22px;
  background: #111;
  padding: 8px;
  border-radius: 6px;
  margin: 12px 0;
}
.mt-10 { margin-top: 10px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .nav-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red);
    flex-direction: column;
    display: none;
  }
  .nav-bar.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .product-and-form {
    flex-direction: column;
  }
  .product-img-wrap {
    max-width: 180px;
    margin: 0 auto;
  }
}
