/* Process Steps Component */
.process {
  padding: 3rem 0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  width: calc(25% - 2rem);
  margin: 1rem;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

/* Connector lines between steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: -25px;
  width: 50px;
  height: 2px;
}

/* Style adjustments for longer text in step identifiers */
.process-step[data-step-type="years"] .step-number,
.process-step[data-step-type="custom"] .step-number {
  width: auto;
  min-width: 50px;
  height: 50px;
  border-radius: 25px;
  padding: 0 15px;
}

/* Step content styling */
.process-step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.process-step p {
  margin-top: 0;
}

/* Background color variations and color adaptations */

/* White background */
.process.bg-white {
  background-color: #FFFFFF;
  color: #4D5152;
}
.process.bg-white .step-number {
  background-color: #E22B28;
  color: #fff;
}
.process.bg-white .process-step:not(:last-child)::after {
  background-color: #C7C8CA;
}

/* Blue background */
.process.bg-blue {
  background-color: #003A5D;
  color: #fff;
}
.process.bg-blue .step-number {
  background-color: #fff;
  color: #003A5D;
}
.process.bg-blue .process-step:not(:last-child)::after {
  background-color: #66C7FF;
}

/* Red background */
.process.bg-red {
  background-color: #E22B28;
  color: #fff;
}
.process.bg-red .step-number {
  background-color: #fff;
  color: #E22B28;
}
.process.bg-red .process-step:not(:last-child)::after {
  background-color: #ffffff;
}

/* Light Blue background */
.process.bg-light-blue {
  background-color: #0065A6;
  color: #fff;
}
.process.bg-light-blue .step-number {
  background-color: #fff;
  color: #0065A6;
}
.process.bg-light-blue .process-step:not(:last-child)::after {
  background-color: #66C7FF;
}

/* Dark Gray background */
.process.bg-dark-gray {
  background-color: #4D5152;
  color: #fff;
}
.process.bg-dark-gray .step-number {
  background-color: #fff;
  color: #4D5152;
}
.process.bg-dark-gray .process-step:not(:last-child)::after {
  background-color: #C7C8CA;
}

/* Light Gray background */
.process.bg-light-gray {
  background-color: #C7C8CA;
  color: #4D5152;
}
.process.bg-light-gray .step-number {
  background-color: #E22B28;
  color: #fff;
}
.process.bg-light-gray .process-step:not(:last-child)::after {
  background-color: #4D5152;
}

/* Responsive adjustments */
@media (max-width: 768px) {     
  .process-step {
    width: calc(50% - 2rem);
  }
  
  /* Remove connector lines for every second item in each row */
  .process-step:nth-child(2n):not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .process-step {
    width: 100%;
  }
  
  /* Remove all connector lines on mobile */
  .process-step::after {
    display: none;
  }
}