/* ==========================================================================
   OUR SALES PROCESS - PARALLEL HORIZONTAL TRACK WITH SEMICIRCULAR TURNS
   - Only the circle is on the line; cards sit beside/below the line (not on top)
   - The horizontal lines and 180° semicircle bends remain completely visible
   - Pure matte finish: NO gloss, NO shine, NO glow filters, NO blur
   - Solid travelling marker circle with crisp step numbers (1 -> 2 -> 3 -> 4)
   - Real-time line drawing along the horizontal and semicircular segments
   - Fully responsive across Desktop, Tablet, and Mobile devices
   ========================================================================== */

.sales-process-section {
  position: relative;
  background-color: #f8fafc;
  padding: 65px 0 80px;
  overflow: hidden;
  box-sizing: border-box;
}

.sales-process-section .section-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sales-process-section .section-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: #64748b;
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Timeline Container & SVG Canvas
   -------------------------------------------------------------------------- */
.process-timeline-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 24px 60px;
  box-sizing: border-box;
}

/* Hide legacy timeline elements */
.process-timeline:before,
.process-timeline-wrapper:before {
  display: none !important;
}

/* SVG Raster Canvas */
.sales-process-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Faint Matte Track Path (NO GLOSS) */
.sales-track-path {
  stroke: #cbd5e1;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 6;
  opacity: 0.75;
}

/* Active Solid Matte Path (NO GLOW, NO SHINE) in Header Dark Blue */
.sales-active-path {
  stroke: #222e40;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Travelling Numbered Marker (Matte, Solid, Crisp) */
.sales-travel-marker {
  cursor: pointer;
  pointer-events: auto;
  will-change: transform, opacity;
  z-index: 5;
  transition: opacity 0.2s ease;
}

.marker-base {
  box-shadow: none;
  filter: none;
}


/* --------------------------------------------------------------------------
   Process Steps List
   Cards sit BESIDE / BELOW the line; ONLY the circle sits ON the line.
   -------------------------------------------------------------------------- */
.process-timeline-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 55px;
}

.process-step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

/* Row 1 & 3: Circle on left, card below aligned to left */
.process-step-item.step-left {
  align-items: flex-start;
}

/* Row 2 & 4: Circle on right, card below aligned to right */
.process-step-item.step-right {
  align-items: flex-end;
}

/* Circular Milestone Node Badges (Placed Directly ON the Line)
   Default state: Hollow, colorless ring with NO visible number */
.step-badge {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #eef2f6);
  border: 2.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255,255,255,0.7) inset;
  z-index: 3;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.step-badge:hover {
  border-color: #94a3b8;
}

.step-badge .badge-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: transparent;
  line-height: 1;
  user-select: none;
  transition: color 0.35s ease;
}

/* Visited / Active Badge State (Filled with header dark blue and crisp white number) */
.process-step-item.is-visited .step-badge,
.process-step-item.is-active .step-badge {
  border-color: #1e293b;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35), 0 1px 3px rgba(0,0,0,0.2);
}

.process-step-item.is-visited .step-badge .badge-num,
.process-step-item.is-active .step-badge .badge-num {
  color: #ffffff;
}

.process-step-item.is-active .step-badge {
  transform: scale(1.08);
}

/* Step Card Box (Placed BESIDE / BELOW the line, NOT on top of it) */
.step-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfd 100%);
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.85) inset,
    0 12px 36px -6px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-left: 4px solid #1e293b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease;
  margin-top: 14px;
  max-width: 480px;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,23,42,0.02) 0%, transparent 70%);
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.85) inset,
    0 22px 48px -8px rgba(15, 23, 42, 0.11),
    0 6px 16px rgba(0, 0, 0, 0.04);
  border-color: rgba(203, 213, 225, 0.6);
}

.process-step-item.step-right .step-card {
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  border-right: 4px solid #1e293b;
  text-align: right;
}

.step-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.step-desc a {
  color: #222e40;
  text-decoration: underline;
  word-break: break-all;
}

/* Active Card State (Matte, Solid, Crisp) */
.process-step-item.is-visited .step-card {
  border-left-color: #222e40;
}

.process-step-item.step-right.is-visited .step-card {
  border-right-color: #222e40;
}

.process-step-item.is-active .step-card {
  border-left-color: #222e40;
  border-top-color: #cbd5e1;
  border-right-color: #cbd5e1;
  border-bottom-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.process-step-item.step-right.is-active .step-card {
  border-left-color: #cbd5e1;
  border-right-color: #222e40;
}

.process-step-item.is-active .step-tag {
  background: #f1f5f9;
  color: #222e40;
}

.process-step-item.is-active .step-title {
  color: #222e40;
}

/* --------------------------------------------------------------------------
   Mobile & Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .sales-process-section {
    padding: 55px 0 65px;
  }

  .process-timeline-wrapper {
    padding: 10px 18px 50px;
  }

  .step-card {
    max-width: 420px;
    padding: 18px 20px;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .step-desc {
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .sales-process-section {
    padding: 45px 0 55px;
  }

  .sales-process-section .section-subtitle {
    margin-bottom: 30px;
    font-size: 0.92rem;
    padding: 0 10px;
  }

  .process-timeline-list {
    gap: 45px;
  }

  .step-card {
    max-width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
  }

  .step-badge {
    width: 40px;
    height: 40px;
  }

  .step-badge .badge-num {
    font-size: 0.95rem;
  }

  .step-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .step-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .sales-process-section {
    padding: 35px 0 45px;
  }

  .process-timeline-wrapper {
    padding: 10px 10px 35px;
  }

  .process-timeline-list {
    gap: 38px;
  }

  .step-badge {
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  .step-badge .badge-num {
    font-size: 0.88rem;
  }

  .step-card {
    padding: 14px 14px;
    margin-top: 10px;
    border-radius: 10px;
  }

  .process-step-item.step-right .step-card {
    text-align: left;
  }

  .process-step-item.step-right .step-tag {
    margin-left: 0;
  }

  .step-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    margin-bottom: 4px;
  }

  .step-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .step-desc {
    font-size: 0.8rem;
    line-height: 1.42;
  }
}
