/* ========================================
   MODAL HOW IT WORKS - ENHANCED DESIGN
   ======================================== */

/* ScrollSpy Navigation */
.scrollspy-btn {
  transition: all 0.3s ease !important;
}

.scrollspy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3) !important;
}

.scrollspy-btn.active {
  background: linear-gradient(135deg, #0A2540 0%, #1E4C7A 100%) !important;
  color: white !important;
  border-color: #1E4C7A !important;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.4) !important;
}

.scrollspy-btn.active i {
  color: white !important;
}

/* Smooth Scroll */
#modal-steps-container {
  scroll-behavior: smooth;
}

/* Modal Steps Hover */
.modal-workflow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border-color: #1E4C7A !important;
}

/* Badge Shine Effect Modal */
.step-badge-modal::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.modal-workflow-step:hover .step-badge-modal::after {
  left: 100%;
}

/* Feature Items Hover */
.feature-item {
  transition: all 0.2s ease;
}

.feature-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2) !important;
  border-color: #1E4C7A !important;
}

/* Modal Content Fade-in Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-workflow-step {
  animation: fadeInUp 0.5s ease-out;
}

.modal-workflow-step:nth-child(1) { animation-delay: 0.1s; }
.modal-workflow-step:nth-child(3) { animation-delay: 0.2s; }
.modal-workflow-step:nth-child(5) { animation-delay: 0.3s; }
.modal-workflow-step:nth-child(7) { animation-delay: 0.4s; }

/* Scroll Progress Indicator */
#workflowModal .modal-body::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0A2540 0%, #1E4C7A 100%);
  opacity: 0.2;
  pointer-events: none;
}

/* CTA Button Enhancement */
#workflowModal .btn-stripe-primary {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3);
}

#workflowModal .btn-stripe-primary:hover {
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-workflow-step {
    padding: 1.5rem !important;
  }
  
  .step-badge-modal {
    min-width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
  }
  
  .feature-item {
    margin-bottom: 0.75rem;
  }
  
  #workflowModal .modal-body::before {
    display: none;
  }
}
