/* Process Steps Section */
.process-section {
  background: white;
  /* Reduced padding from 80px to 50px for less vertical space */
  padding: 50px 0;
  width: 100%;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.process-section h2 {
  font-size: 2.8rem;
  color: #333;
  /* Reduced margin-bottom from 20px to 15px */
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.process-section h2:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #333, #f7be16);
  /* Reduced margin from 15px to 10px */
  margin: 10px auto 0;
  border-radius: 2px;
}

.process-subtitle {
  font-size: 1.2rem;
  color: #666;
  /* Reduced margin-bottom from 40px to 25px */
  margin-bottom: 25px;
}

.process-progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  /* Reduced margin-bottom from 40px to 25px */
  margin-bottom: 25px;
  overflow: hidden;
}

.progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #f7be16, #ffc107);
  border-radius: 2px;
  width: 0%;
  transition: width 0.6s ease;
}

.progress-line.active {
  animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* New vertical timeline layout */
.timeline-wrapper {
  position: relative;
  max-width: 800px;
  /* Reduced margin-bottom from 40px to 25px */
  margin: 0 auto 25px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f7be16, #ffc107);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: center;
  /* Reduced margin-bottom from 30px to 20px and margin-top from -30px to -20px for tighter spacing */
  margin-bottom: 20px;
  margin-top: -20px;
  /* Set default opacity to 1 so cards are visible */
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* First timeline step should not have negative margin */
.timeline-step:first-child {
  margin-top: 0;
}

.timeline-step:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-step:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.step-number {
  /* Reduced size from 60px to 50px for more compact look */
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f7be16, #ffc107);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reduced font-size from 1.5rem to 1.3rem */
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 25px rgba(247, 190, 22, 0.3);
  border: 4px solid white;
}

.timeline-content {
  flex: 1;
  max-width: 350px;
  background: white;
  /* Reduced padding from 25px to 20px */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #f8fafc;
  transition: all 0.3s ease;
  margin: 0 15px;
  position: relative;
  z-index: 1;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #f7be16;
  z-index: 3;
}

.timeline-step:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 15px;
}

.timeline-step:nth-child(even) .timeline-content {
  margin-right: auto;
  margin-left: 15px;
}

.step-icon {
  /* Reduced size from 50px to 40px */
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #333, #555);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reduced margin-bottom from 20px to 15px */
  margin: 0 auto 15px;
  /* Reduced font-size from 1.3rem to 1.1rem */
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-step:nth-child(even) .step-icon {
  /* Reduced margin-bottom from 20px to 15px */
  margin: 0 0 15px auto;
}

.timeline-step:nth-child(odd) .step-icon {
  /* Reduced margin-bottom from 20px to 15px */
  margin: 0 auto 15px 0;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #333;
  /* Reduced margin-bottom from 12px to 10px */
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.timeline-content p strong {
  color: #f7be16;
  font-weight: 700;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Reduced gap from 30px to 20px */
  gap: 20px;
  /* Reduced margin-bottom from 40px to 25px */
  margin-bottom: 25px;
}

.process-step {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  /* Reduced padding from 30px 25px to 25px 20px */
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(30px);
}

.process-step.animate {
  opacity: 1;
  transform: translateY(0);
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: #f7be16;
  background: white;
}

.step-content {
  text-align: center;
  /* Reduced padding-top from 15px to 10px */
  padding-top: 10px;
}

.process-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.process-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 220px;
  justify-content: center;
}

.process-btn.primary {
  background: linear-gradient(135deg, #f7be16, #ffc107);
  color: white;
  box-shadow: 0 6px 20px rgba(247, 190, 22, 0.3);
}

.process-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247, 190, 22, 0.4);
}

.process-btn.secondary {
  background: white;
  color: #333;
  border: 2px solid #f7be16;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.process-btn.secondary:hover {
  background: #f7be16;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247, 190, 22, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .process-section {
    /* Reduced mobile padding from 60px to 40px */
    padding: 40px 0;
  }

  .process-section h2 {
    font-size: 2.2rem;
  }

  .process-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
  }

  .process-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 25px;
    overflow: hidden;
  }

  .timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 25px;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-step {
    flex-direction: row !important;
    /* Reduced mobile margins for tighter spacing */
    margin-bottom: 15px;
    margin-top: -15px;
  }

  /* First timeline step mobile adjustment */
  .timeline-step:first-child {
    margin-top: 0;
  }

  .timeline-step:nth-child(even) .timeline-content {
    text-align: left;
  }

  .timeline-marker {
    left: 30px;
  }

  .timeline-content {
    margin: 0 0 0 80px !important;
    max-width: none;
    /* Reduced mobile padding from 20px to 15px */
    padding: 15px;
  }

  .step-icon {
    margin: 0 auto 15px 0 !important;
    /* Reduced mobile icon size from 45px to 35px */
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .step-number {
    /* Reduced mobile step number size from 50px to 40px */
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .process-cta {
    flex-direction: column;
    align-items: center;
  }

  .process-btn {
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  .process-section h2 {
    font-size: 1.8rem;
  }

  .timeline-content {
    /* Reduced small mobile padding */
    padding: 15px;
    margin-left: 60px !important;
  }

  .step-number {
    /* Further reduced step number size for small screens */
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-line {
    left: 20px;
  }
}
