/* ========================================================
   Interactive Funnel Widget for Elementor - Styles
   ======================================================== */

.funnel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  box-sizing: border-box;
}

.funnel-wrapper {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  box-sizing: border-box;
}

/* =========================
   FUNNEL LEFT
   ========================= */

.funnel-box {
  position: relative;
  width: 42%;
  min-width: 300px;
  max-width: 470px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.funnel {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

/* =========================
   LAYERS
   ========================= */

.layer {
  cursor: pointer;
  outline: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.layer:hover {
  filter: brightness(1.1);
}

.layer path {
  stroke: none;
  transition: stroke 0.35s ease, stroke-width 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.layer.active path {
  stroke: #ffffff !important;
  stroke-width: 1 !important;
}

/* =========================
   RIGHT CONTENT CARD
   ========================= */

.content-side {
  position: relative;
  width: 480px;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.info-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 38px;
  border-radius: 28px;
  border: 2px solid #14cfff;
  background: rgba(4, 12, 28, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 22px rgba(20, 207, 255, 0.16);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.info-card h2 {
  font-size: 28px;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 24px;
  color: #18cfff;
  transition: color 0.35s ease;
  letter-spacing: -0.01em;
}

.info-card ul {
  margin: 0;
  padding-left: 22px;
  list-style-type: disc;
}

.info-card li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.9;
  transition: color 0.3s ease;
}

/* =========================
   CONNECTOR SVG & ANIMATION
   ========================= */

.connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.connector-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: opacity 0.3s ease, stroke 0.35s ease;
}

.connector-path.active {
  opacity: 1;
  animation: ifwLineAnim 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ifwLineAnim {
  to {
    stroke-dashoffset: 0;
  }
}

.dot {
  r: 5;
  opacity: 0;
  transition: opacity 0.3s ease, fill 0.35s ease;
}

.dot.active {
  opacity: 1;
}

/* =========================
   RESPONSIVE: TABLET
   ========================= */

@media (max-width: 992px) and (min-width: 769px) {
  .funnel-wrapper {
    gap: 40px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  .funnel-box {
    width: 40% !important;
    min-width: 0 !important;
    max-width: 380px !important;
  }

  .content-side {
    width: 380px !important;
    max-width: 55% !important;
  }

  .info-card {
    padding: 30px !important;
    border-radius: 22px !important;
  }

  .info-card h2 {
    font-size: 26px !important;
  }
}

/* =========================
   RESPONSIVE: MOBILE (Matches Original Exactly)
   ========================= */

@media (max-width: 768px) {
  .funnel-section {
    padding: 30px 16px !important;
  }

  .funnel-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .funnel-box {
    width: 100% !important;
    max-width: 320px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .funnel {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    display: block !important;
    height: auto !important;
  }

  .content-side {
    width: 100% !important;
    max-width: 500px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .info-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 26px !important;
    border-radius: 16px !important;
  }

  .info-card h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }

  .info-card ul {
    margin: 0 !important;
    padding-left: 22px !important;
  }

  .info-card li {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .connector-svg {
    display: none !important;
  }
}
