/* ═══════════════════════════════════════════════════════════════════════════
   HOW TO LIST YOUR PROPERTY - MODERN HORIZONTAL STEPPER
   ═══════════════════════════════════════════════════════════════════════════ */

.how-to-list-section {
  text-align: center;
  padding: 3.5rem 0 2.5rem 0;
  background: linear-gradient(180deg, 
    rgba(249, 250, 251, 0.8), 
    rgba(255, 255, 255, 0.4),
    rgba(249, 250, 251, 0.8)
  );
  position: relative;
  overflow: hidden;
}

/* Subtle animated background pattern */
.how-to-list-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.how-to-list-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Subtitle */
.how-to-list-section::after {
  content: 'Simple, Fast, Automated';
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 2rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
}

/* Horizontal Stepper Container */
.how-to-stepper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Individual Step Item */
.how-to-step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 200px;
  opacity: 0;
  animation: stepFadeIn 0.8s ease-out forwards;
}

.how-to-step-item:nth-child(1) { animation-delay: 0.2s; }
.how-to-step-item:nth-child(3) { animation-delay: 0.4s; }
.how-to-step-item:nth-child(5) { animation-delay: 0.6s; }
.how-to-step-item:nth-child(7) { animation-delay: 0.8s; }

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Step Number Badge */
.how-to-step-number {
  position: absolute;
  top: -12px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.4),
    0 0 0 5px rgba(255, 255, 255, 1),
    0 0 0 6px rgba(59, 130, 246, 0.2);
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 
      0 4px 16px rgba(59, 130, 246, 0.4),
      0 0 0 5px rgba(255, 255, 255, 1),
      0 0 0 6px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 
      0 6px 20px rgba(59, 130, 246, 0.5),
      0 0 0 5px rgba(255, 255, 255, 1),
      0 0 0 8px rgba(59, 130, 246, 0.3);
  }
}

.how-to-step-item:hover .how-to-step-number {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.6),
    0 0 0 5px rgba(255, 255, 255, 1),
    0 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Icon Wrapper */
.how-to-step-icon-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

/* Floating animation for icons */
.how-to-step-icon-wrapper {
  animation: gentleFloat 4s ease-in-out infinite;
}

.how-to-step-item:nth-child(1) .how-to-step-icon-wrapper {
  animation-delay: 0s;
}
.how-to-step-item:nth-child(3) .how-to-step-icon-wrapper {
  animation-delay: 1s;
}
.how-to-step-item:nth-child(5) .how-to-step-icon-wrapper {
  animation-delay: 2s;
}
.how-to-step-item:nth-child(7) .how-to-step-icon-wrapper {
  animation-delay: 3s;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Icon Container - Modern Glassmorphic */
.how-to-step-icon {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 10px 25px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Icon color variants - Modern vibrant gradients */
.how-to-step-icon--red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.how-to-step-icon--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.how-to-step-icon--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.how-to-step-icon--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* Glow ring effect */
.how-to-step-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 30px;
  background: inherit;
  opacity: 0;
  filter: blur(20px);
  z-index: -1;
  transition: opacity 0.6s ease;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

/* Sparkle effect */
.how-to-step-icon::after {
  content: '✨';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.25rem;
  opacity: 0;
  transform: scale(0.5) rotate(0deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-to-step-item:hover .how-to-step-icon {
  transform: translateY(-15px) scale(1.1) rotate(-3deg);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.18),
    0 15px 35px rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.how-to-step-item:hover .how-to-step-icon::before {
  opacity: 0.6;
}

.how-to-step-item:hover .how-to-step-icon::after {
  opacity: 1;
  transform: scale(1) rotate(15deg);
}

/* Icon itself with subtle rotation */
.how-to-step-icon i {
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: iconBreathe 3s ease-in-out infinite;
}

@keyframes iconBreathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.how-to-step-item:hover .how-to-step-icon i {
  transform: scale(1.15) rotate(-5deg);
  animation: none;
}

/* Step Title */
.how-to-step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  transition: all 0.4s ease;
}

.how-to-step-item:hover .how-to-step-title {
  color: #3b82f6;
  transform: translateY(-2px);
}

/* Step Description */
.how-to-step-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  max-width: 180px;
  transition: all 0.4s ease;
}

.how-to-step-item:hover .how-to-step-desc {
  color: #374151;
  transform: translateY(-2px);
}

/* Connector between steps */
.how-to-step-connector {
  position: relative;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.75rem;
  margin-bottom: 60px;
}

.connector-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.2), 
    rgba(59, 130, 246, 0.4),
    rgba(59, 130, 246, 0.2)
  );
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Animated shimmer effect */
.connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.8) 50%, 
    transparent 100%
  );
  animation: flowRight 2.5s ease-in-out infinite;
}

@keyframes flowRight {
  to {
    left: 100%;
  }
}

.connector-arrow {
  position: absolute;
  font-size: 1.75rem;
  color: #3b82f6;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08);
  animation: arrowBounce 2s ease-in-out infinite;
  border: 2px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(6px) scale(1.1);
  }
}

.connector-arrow:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  transform: scale(1.2);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .how-to-stepper {
    flex-wrap: wrap;
    gap: 3rem;
  }

  .how-to-step-connector {
    display: none;
  }

  .how-to-step-item {
    flex: 0 0 calc(50% - 1.5rem);
    max-width: none;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .how-to-list-section {
    padding: 3rem 0;
  }

  .how-to-list-title {
    font-size: 1.875rem;
    margin-bottom: 2.5rem;
  }

  .how-to-stepper {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 1rem;
  }

  .how-to-step-item {
    flex: 1;
    max-width: 100%;
  }

  .how-to-step-icon {
    width: 90px;
    height: 90px;
    font-size: 2.25rem;
  }

  .how-to-step-title {
    font-size: 1.125rem;
  }

  .how-to-step-desc {
    font-size: 0.875rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════════════════ */

.dark .how-to-list-section {
  background: transparent;
}

.dark .how-to-list-title {
  background: linear-gradient(135deg, #f9fafb, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .how-to-step-number {
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.5),
    0 0 0 4px rgba(17, 24, 39, 1);
}

.dark .how-to-step-item:hover .how-to-step-number {
  box-shadow: 
    0 6px 16px rgba(59, 130, 246, 0.6),
    0 0 0 4px rgba(17, 24, 39, 1);
}

.dark .how-to-step-icon {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .how-to-step-item:hover .how-to-step-icon {
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dark .how-to-step-title {
  color: #f9fafb;
}

.dark .how-to-step-item:hover .how-to-step-title {
  color: #60a5fa;
}

.dark .how-to-step-desc {
  color: #9ca3af;
}

.dark .how-to-step-item:hover .how-to-step-desc {
  color: #d1d5db;
}

.dark .connector-line {
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.4), 
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0.4)
  );
}

.dark .connector-arrow {
  background: #1f2937;
  color: #60a5fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
