/* How It Works Section Styles */

#how-it-works {
  padding: 4rem 1rem;
  background-color: #ffffff;
  position: relative;
}

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

.how-it-works-intro {
  text-align: center;
  margin-bottom: 3rem;
}


.how-it-works-intro p {
  font-size: 1.2rem;
  color: var(--secondary-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.step:nth-child(even) {
  direction: rtl;
}

.step:nth-child(even) .step-content {
  direction: ltr;
  text-align: right;
}

.step:nth-child(odd) .step-content {
  text-align: left;
}

.step-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.step-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity 0.3s ease;
  background-color: #f5f5f5;
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
  z-index: 2;
}

.step:nth-child(even) .step-number {
  right: -15px;
  left: auto;
}

.step-content h3 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.step-content p {
  color: var(--secondary-gray);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.step-features {
  list-style: none;
  padding: 0;
}

.step-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-gray);
  font-size: 1rem;
}

.step-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
  font-size: 1.1rem;
}

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 3rem 2rem;
  border-radius: 20px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cta-section h3 {
  color: var(--primary-orange);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-section p {
  color: var(--secondary-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-buttons a {
  transition: transform 0.3s ease;
}

.cta-buttons a:hover {
  transform: scale(1.05);
}

.cta-buttons img {
  height: 60px !important;
  width: auto !important;
}

.cta-buttons img[alt~="Google"] {
  min-width: 180px;
}

/* Connection lines between steps */
.step::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: linear-gradient(180deg, var(--primary-orange), transparent);
  z-index: 1;
}

.step:last-child::after {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  #how-it-works {
    padding: 3rem 1rem;
  }

  .how-it-works-intro h2 {
    font-size: 2rem;
  }

  .how-it-works-intro p {
    font-size: 1.1rem;
  }

  .steps-container {
    gap: 3rem;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .step:nth-child(even) {
    direction: ltr;
  }

  .step:nth-child(even) .step-content {
    text-align: center;
  }

  .step:nth-child(odd) .step-content {
    text-align: center;
  }

  .step-number {
    top: -15px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .step-image img {
    height: 250px;
  }

  .step-content h3 {
    font-size: 1.5rem;
  }

  .step-content p {
    font-size: 1rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }

  .cta-section h3 {
    font-size: 1.7rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-buttons img {
    height: 50px !important;
  }

  .cta-buttons img[alt~="Google"] {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .how-it-works-intro h2 {
    font-size: 1.8rem;
  }

  .step-image img {
    height: 220px;
  }

  .step-content h3 {
    font-size: 1.3rem;
  }

  .cta-section h3 {
    font-size: 1.5rem;
  }
}