.mb-0 {
  margin-bottom: 0 !important;
}

/* How OCR works section */
.how-sub-heading {
  font-weight: 500;
  line-height: 33px;
}

.how-heading {
  margin: 2px auto 0 !important;
}

.process-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Process steps row */
.steps-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  gap: 10px;
}

.step-wrapper {
  position: relative;
}

/* Step circles */
.step-circle {
  width: 99px;
  height: 99px;
  border-radius: 50%;
  display: flex;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 250px auto;
  border: 10px solid #fde2e4;
}

/* Step content */
.step-content {
  text-align: center;
  position: absolute;
}

/* Alternate content positioning for desktop */
.step-wrapper:nth-child(odd) .step-content {
  bottom: 390px;
}

.step-wrapper:nth-child(even) .step-content {
  top: 385px;
}

.step-wrapper .step-content h2 {
  font-size: 22.7px !important;
  font-weight: bold;
  margin-bottom: 5px !important;
  color: #000;
}

.step-wrapper .step-content p {
  color: #666;
  font-size: 14px !important;
  line-height: 1.4;
  margin: 0 auto;
}

/* Number badges */
.step-number {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #e63946;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  z-index: 2;
  font-weight: 500;
  font-size: 19.33px;
  box-shadow: 0px 2.2px 2.2px 0px #00000040;
}

/* Specific number positions */
.step-wrapper:nth-child(odd) .step-number {
  top: -20px;
}

.step-wrapper:nth-child(even) .step-number {
  bottom: -50px;
}

/* Horizontal connecting lines */
.step-wrapper:not(:last-child) .step-circle::after {
  content: "";
  position: absolute;
  height: 2px;
  background-color: #e63946;
  top: 34.5px;
  z-index: -1;
  left: 79px;
  width: calc(100% + 20px);
}

/* Vertical connecting lines for top numbers */
.step-wrapper:nth-child(odd) .step-number::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #e63946;
  top: -20px;
  height: 20px;
  z-index: 0;
}

/* Vertical connecting lines for bottom numbers */
.step-wrapper:nth-child(even) .step-number::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #e63946;
  bottom: 30px;
  height: 25px;
  z-index: 0;
}


@media (max-width: 768px) {
  .process-container {
    padding: 20px 10px;
  }

  .steps-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
    gap: 0;
  }

  .step-wrapper:not(:last-child) .step-circle::after {
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    z-index: 0;
  }

  /* Reset desktop connecting lines */
  .step-wrapper::before,
  .step-wrapper::after {
    display: none;
  }

  /* Mobile step wrapper */
  .step-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
  }

  /* Center the circles */
  .step-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* Position the step content */
  .step-content {
    position: absolute;
    width: calc(50% - 80px);
    max-width: 300px;
    margin: 0;
  }

  /* Left side content */
  .step-wrapper:nth-child(odd) .step-content {
    left: 0;
    padding-right: 20px;
    margin-bottom: 0;
  }

  /* Right side content */
  .step-wrapper:nth-child(even) .step-content {
    right: 0;
    margin-top: 0;
  }

  .step-content h2 {
    font-size: 22px;
  }

  .step-content p {
    font-size: 14px;
    margin: 0;
    max-width: none;
  }

  /* Number badges on top of circles */
  .step-wrapper:nth-child(odd) .step-number,
  .step-wrapper:nth-child(even) .step-number {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
  }
}

@media only screen and (max-width: 572px) {
  /* 	How OCR works section */
  .how-heading {
    margin-bottom: 34px !important;
  }

  .steps-row {
    padding-top: 0;
    margin-top: 0;
  }

  .step-content {
    width: calc(50% - 35px);
    text-align: center;
  }

  .step-wrapper:nth-child(odd) .step-content,
  .step-wrapper:nth-child(even) .step-content {
    top: unset;
    bottom: unset;
  }

  .step-wrapper:nth-child(odd) .step-content {
    padding-right: 10px;
  }

  .step-wrapper:nth-child(even) .step-content {
    padding-left: 10px;
  }

  .step-wrapper .step-content h2 {
    font-size: 15px !important;
    margin-top: 0 !important;
  }

  .step-wrapper .step-content p {
    padding: 0;
  }

  .step-circle {
    width: 74px;
    height: 74px;
    border: 5px solid #fde2e4;
  }

  .step-wrapper:not(:last-child) .step-circle::after {
    width: 2px;
    top: 69px;
    z-index: -2;
    left: 31px;
    height: calc(100% + 10px);
  }

  .step-number {
    width: 22.5px;
    height: 22.5px;
    font-size: 14.66px;
    box-shadow: 0px 1.67px 1.67px 0px #00000040;
  }

  .step-wrapper:nth-child(odd) .step-number,
  .step-wrapper:nth-child(even) .step-number {
    top: -12px;
  }

  .step-wrapper .step-number::before {
    display: none;
  }

  .step-icon {
    transform: scale(0.75);
  }
}