/* ========================================
   Homepage Patch v2 — Stronger overrides
   ======================================== */

/* ── FIX: How It Works — force all 3 cards in one row ── */
section.how-it-works .steps-grid,
.how-it-works .steps-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
  justify-content: center !important;
}

section.how-it-works .step-card,
.how-it-works .step-card {
  min-width: 0 !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  padding: 2rem 1.25rem !important;
}

section.how-it-works .step-connector,
.how-it-works .step-connector {
  width: 32px !important;
  min-width: 32px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 900px) {
  section.how-it-works .steps-grid,
  .how-it-works .steps-grid {
    flex-wrap: wrap !important;
    gap: 2rem !important;
  }
  section.how-it-works .step-card,
  .how-it-works .step-card {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
  section.how-it-works .step-connector,
  .how-it-works .step-connector {
    display: none !important;
  }
}

/* ── REPLACE: Hide old 4-column video grid ── */
.video-gallery .videos-grid {
  display: none !important;
}

/* ── Video Widget — centered, prominent ── */
.hp-video-widget {
  max-width: 380px;
  margin: 0 auto;
}

.hp-video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/14;
  background: #08142c;
  cursor: pointer;
  border: 2px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hp-video-wrap:hover {
  border-color: rgba(212, 160, 23, 0.7);
  box-shadow: 0 12px 48px rgba(212, 160, 23, 0.15);
}

.hp-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}

/* ── PROMINENT play button overlay ── */
.hp-video-expand {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
  cursor: pointer;
  transition: background 0.3s;
}
.hp-video-expand:hover {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
}

.hp-play-circle {
  width: 72px; height: 72px;
  background: rgba(212, 160, 23, 0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(212, 160, 23, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hp-video-expand:hover .hp-play-circle {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(212, 160, 23, 0.6);
}
.hp-play-circle svg {
  width: 28px; height: 28px;
  fill: #020810;
  margin-left: 3px;
}

/* "Click to watch" label */
.hp-expand-label {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav buttons */
.hp-video-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 1rem;
}
.hp-nav-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
}
.hp-nav-btn svg { width: 18px; height: 18px; color: #f0f4ff; }
.hp-nav-btn:hover { background: rgba(255,255,255,0.08); border-color: #d4a017; }
.hp-vid-counter {
  font-family: 'Syne', sans-serif; font-size: 0.85rem;
  font-weight: 600; color: rgba(240,244,255,0.55);
}
.hp-video-caption {
  text-align: center; margin-top: 0.75rem;
  font-size: 0.8rem; color: rgba(240,244,255,0.3); font-style: italic;
}

/* ── Video Popup ── */
.hp-vid-popup {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(2,8,16,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.hp-vid-popup.active { opacity: 1; visibility: visible; }
.hp-vid-popup-inner { position: relative; width: 100%; max-width: 420px; }
.hp-vid-popup-inner video {
  width: 100%; max-height: 75vh; border-radius: 16px;
  background: #000; display: block;
}
.hp-vid-popup-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
}
.hp-vid-popup-close svg { width: 18px; height: 18px; color: #fff; }
.hp-vid-popup-close:hover { background: rgba(255,255,255,0.2); }
.hp-vid-popup-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 1rem;
}
.hp-vp-btn {
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.8rem;
  cursor: pointer; transition: all 0.3s;
}
.hp-vp-btn:hover { background: rgba(255,255,255,0.15); border-color: #d4a017; }
.hp-vp-counter {
  font-family: 'Syne', sans-serif; font-size: 0.85rem;
  font-weight: 600; color: rgba(240,244,255,0.55);
}

/* ── JotForm Popup Overlay ── */
.hp-jotform-overlay {
  position: fixed; inset: 0; z-index: 10002;
  background: rgba(2,8,16,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.hp-jotform-overlay.active { opacity: 1; visibility: visible; }
.hp-jotform-modal {
  position: relative; width: 100%; max-width: 620px;
  height: 85vh; max-height: 800px;
  background: #08142c; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.hp-jotform-modal iframe {
  width: 100%; height: 100%; border: none;
  background: #fff; border-radius: 0 0 28px 28px;
}
.hp-jf-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hp-jf-close svg { width: 20px; height: 20px; color: #fff; }
.hp-jf-close:hover { background: rgba(0,0,0,0.8); }

/* FORCE all 3 step cards visible — override GSAP hiding them */
section.how-it-works .step-card,
.how-it-works .step-card,
.step-card[data-animate],
.steps-grid .step-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}
