.how-it-works {
  padding: 4rem 0;
}

.how-it-works_header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.how-it-works_header p {
  font-size: 1rem;
  color: grey;
  margin-bottom: 2rem !important;
  max-width: 600px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f1f1;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  background-color: transparent;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.tab-btn.active {
  background-color: var(--secondary-color);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step {
  width: 100%;
  gap: 1rem;
}

.step .header {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 1.4rem;
  background-color: #7f2fb123;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .header h3 {
  font-size: 1rem !important;
}

.step-text p {
  margin: 0;
  font-size: 0.85rem;
  color: gray;
}

.step-line {
  margin: -1rem 0;
}

.step-line img {
  height: 24px;
  max-width: 80px;
  margin-top: 24px;
}

@media only screen and (max-width: 900px) {
  .how-it-works {
    padding-top: 0rem;
  }
  .how-it-works_header h2 {
    font-size: 1.8rem;
  }

  .how-it-works_header p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .tab-btn {
    padding: 0.7rem 1rem;
  }

  .steps {
    flex-wrap: wrap;
  }

  .step {
    width: calc(50% - 2rem);
  }

  .step .header {
    gap: 0.5rem;
  }

  .step-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .step-line img {
    display: none;
  }
}

@media only screen and (max-width: 560px) {
  .how-it-works_header h2 {
    font-size: 1.8rem;
  }

  .how-it-works_header p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .tab-btn {
    padding: 0.7rem 1rem;
  }

  .steps {
    flex-wrap: wrap;
    max-width: 90%;
    margin: 0 auto;
  }

  .step {
    width: 100%;
  }
}
