#timeline {
  background: rgb(214, 230, 245);
  padding-bottom: 80px;
  padding-top: 64px;
}

#timeline .container {
  height: auto !important;
}

#timeline .step {
  text-align: center;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  padding-bottom: 8px;
  cursor: pointer;
  width: 100%;
}

#timeline svg {
  position: absolute;
  top: -4px;
  left: -3px;
  height: 15px;
  width: 15px;
}

#timeline .check {
  display: none;
  visibility: hidden;
  opacity: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #007ab3;
  border-radius: 50%;
  background: #007ab3;
  color: #fff;
  flex: 0 0 auto;
  position: relative;
}

#timeline .small-dot {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #007ab3;
}

#timeline .show-small-dot .small-dot {
  display: block;
}

#timeline .show-tooltip .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition-property: opacity;
  transition-duration: 0.5s;
  transition-timing-function: ease;
}

#timeline .active-step .dot {
  display: none;
}

#timeline .active-step .check {
  display: inline;
  visibility: visible;
  opacity: 1;
  transition-delay: 0.5s;
  transition-property: opacity;
  transition-duration: 0.5s;
  transition-timing-function: ease;
}

#timeline .active-step .line {
  transition-property: border-color;
  transition-duration: 0.5s;
  transition-timing-function: ease;
  border-top: 4px solid #007ab3;
}

#timeline .dot {
  width: 16px;
  height: 16px;
  border: 2px solid #007ab3;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
}

#timeline .line {
  border-top: dotted 4px #c2c2c2;
  width: calc(100% - (16px));
  left: calc(50% + 8px);
  position: absolute;
}

#timeline .last-step .line {
  display: none;
}

#timeline .label {
  position: absolute;
  top: 28px;
}

#timeline .stepper {
  justify-content: space-between;
  display: flex;
  flex-direction: row;
}

#timeline .title {
  margin-top: 52px;
  text-align: center;
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 164px;
}

#timeline .tooltiptext {
  visibility: hidden;
  opacity: 0;
  background-color: #fff;
  color: #006192;
  text-align: center;
  max-width: 240px;
  min-width: 125px;
  letter-spacing: 0.5px;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  position: absolute;
  bottom: calc(100% + 8px);
  box-shadow: 0 2px 4px 0 rgba(65, 65, 65, 0.5);
  left: 0;
}

#timeline .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

@media (max-width: 767px) {
  #timeline .stepper {
    flex-direction: column;
  }

  #timeline .container {
    height: 500px;
  }

  #timeline .label {
    top: 0px;
    left: 26px;
    position: absolute;
  }

  #timeline .title {
    margin-bottom: 28px;
    font-size: 26px;
  }

  #timeline .step {
    justify-content: left;
    align-items: flex-start;
    flex-direction: column;
    padding: 0;
  }

  #timeline .line {
    height: 175px;
    border-top: 0;
    border-left: dotted 4px #c2c2c2;
    position: relative;
    left: 6px;
  }

  #timeline .active-step .line {
    border-top: 0;
    border-left: 4px solid #007ab3;
  }

  #timeline .tooltiptext {
    bottom: inherit;
    top: 36px;
    left: 30px;
  }

  #timeline .tooltiptext::after {
    content: " ";
    position: absolute;
    top: -10px;
    left: 2%;
    margin-left: 5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
  }

  #timeline .last-step {
    padding-bottom: 75px;
    height: 75px;
  }
}
