/* ==========================================================================
   Elementor Clixsa Customization Journey Widget Styles
   ========================================================================== */

:root {
  --eccj-font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --eccj-primary-color: #6366f1;
  /* Indigo */
  --eccj-accent-color: #a855f7;
  /* Purple/Violet */
  --eccj-cyan-color: #0ea5e9;
  /* Cyan */
  --eccj-text-light: #f8fafc;
  --eccj-text-muted: #94a3b8;
  --eccj-card-bg: rgba(30, 41, 59, 0.45);
  --eccj-border-glow: rgba(255, 255, 255, 0.05);
}

/* Base Wrapper */
.eccj-journey-container {
  font-family: var(--eccj-font-family);
  color: var(--eccj-text-light);
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Staggered Split Grid */
.eccj-split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  /* align-items: center; */
}

@media (max-width: 991px) {
  .eccj-split-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Left Hero Content styling */
.eccj-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* Pill badge styling */
.eccj-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 13px;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.05);
}

/* Headline with modern gradient text */
.eccj-headline {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 70%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 767px) {
  .eccj-headline {
    font-size: 34px;
  }
}

/* Subheading description text */
.eccj-subheading {
  font-size: 17px;
  line-height: 1.65;
  color: var(--eccj-text-muted);
  margin: 0;
  max-width: 580px;
}

/* Optional Hero Action CTA */
.eccj-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--eccj-primary-color), var(--eccj-accent-color));
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.eccj-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.eccj-hero-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.eccj-hero-cta:hover svg {
  transform: translateX(4px);
}

/* Right Staggered Timeline Content */
.eccj-timeline-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-left: 20px;
}

/* Connecting Glowing Timeline Line */
.eccj-timeline-line {
  position: absolute;
  left: 45px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom,
      var(--eccj-primary-color) 0%,
      var(--eccj-accent-color) 50%,
      transparent 100%);
  opacity: 0.3;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Individual Journey Card */
.eccj-step-card {
  position: relative;
  display: flex;
  gap: 25px;
  background: var(--eccj-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--eccj-border-glow);
  border-radius: 20px;
  padding: 30px 24px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Stagger items slightly on desktop */
@media (min-width: 992px) {
  .eccj-step-card:nth-child(2) {
    transform: translateX(20px);
  }

  .eccj-step-card:nth-child(3) {
    transform: translateX(40px);
  }

  .eccj-step-card:hover {
    transform: translateY(-5px);
  }

  .eccj-step-card:nth-child(2):hover {
    transform: translateX(20px) translateY(-5px);
  }

  .eccj-step-card:nth-child(3):hover {
    transform: translateX(40px) translateY(-5px);
  }
}

@media (max-width: 991px) {
  .eccj-step-card:hover {
    transform: translateY(-5px);
  }

  .eccj-timeline-wrap {
    padding-left: 0;
  }

  .eccj-timeline-line {
    left: 25px;
  }
}

.eccj-step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s ease;
}

.eccj-step-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.12);
  background: rgba(30, 41, 59, 0.65);
}

.eccj-step-card:hover::before {
  background: linear-gradient(135deg, var(--eccj-primary-color), var(--eccj-accent-color));
}

/* Badge/Circle for Step Numbers */
.eccj-step-badge-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.eccj-step-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 2px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.eccj-step-card:hover .eccj-step-badge {
  background: linear-gradient(135deg, var(--eccj-primary-color), var(--eccj-accent-color));
  border-color: transparent;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  transform: scale(1.08);
}

/* Card Step Text Info */
.eccj-step-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eccj-step-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  transition: color 0.3s ease;
}

.eccj-step-card:hover .eccj-step-title {
  color: #a5b4fc;
}

.eccj-step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--eccj-text-muted);
  margin: 0;
  transition: color 0.3s ease;
}

.eccj-step-card:hover .eccj-step-desc {
  color: rgba(255, 255, 255, 0.95);
}

/* Stagger Animations */
.eccj-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: eccjFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes eccjFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}