/* How It Works Section Styles */
#How-It-Works {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.how-it-works-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: "Lobster", sans-serif;
  color: #0A2463;
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #0A2463, #FFD166);
  border-radius: 2px;
}

.section-subtitle {
  color: #4D648D;
  font-size: 1.2rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2463 0%, #1E40AF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step:hover .step-icon {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, #FFD166 0%, #FF9E4A 100%);
}

.step-icon i {
  font-size: 2.2rem;
  color: white;
}

.step h3 {
  color: #0A2463;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.step p {
  color: #4D648D;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 15px;
}

.add-on {
  background-color: rgba(255, 209, 102, 0.15);
  border-left: 4px solid #FFD166;
  padding: 12px 15px;
  border-radius: 6px;
  margin-top: 10px;
  color: #0A2463;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-on i {
  color: #0A2463;
}

.step-connector {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, #0A2463, #FFD166, #0A2463);
  margin: 45px 0;
  position: relative;
  opacity: 0.5;
  max-width: 80px;
}

.step-connector::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  background: #0A2463;
  border-radius: 50%;
}

.cta-container {
  margin-top: 40px;
}

.cta-button {
  background: linear-gradient(to right, #0A2463, #1E40AF);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(10, 36, 99, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 36, 99, 0.4);
  background: linear-gradient(to right, #1E40AF, #0A2463);
  color: #FFD166;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(10, 36, 99, 0.3);
}

/* Animation for steps */
.step {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.step.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
  }
  
  .step-connector {
    width: 3px;
    height: 40px;
    max-width: none;
    margin: 0 auto;
  }
  
  .step-connector::before {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 768px) {
  #How-It-Works {
    padding: 60px 15px;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .step-icon {
    width: 80px;
    height: 80px;
  }
  
  .step-icon i {
    font-size: 1.8rem;
  }
  
  .step h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .step {
    padding: 0 10px;
  }
  
  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  .add-on {
    font-size: 0.85rem;
  }
}
