/* Timeline (Steps) */
.timeline-row > div {
  padding: 0;
}
.timeline .mobile {
  display: none;
}
.timeline-row {
  padding: 15px;
  margin-top: 90px;
}
.timeline {
  position: relative;
  top: 60px;
}
.timeline ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin-left: -40px;
}
.timeline li {
  text-align: center;
}
.timeline .step-header {
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  width: 200%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  padding-bottom: 30px;
  transition: .3s;
}
.timeline .step-icon {
  height: 100px;
  width: 100px;
  padding: 12px;
  border-radius: 50%;
  position: relative;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.timeline .step-icon:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  border-radius: inherit;
  transition: .3s;
  transform: scale(1.1);
}
.step-icon img {
  width: 40px;
}
.timeline :not(.active) .step-icon {
  cursor: pointer;
}
.timeline .filled .step-icon {
  transition: .3s .3s;
}
.timeline li.next .step-icon:after,
.timeline li .step-icon:hover:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: .8;
  border-radius: inherit;
  animation: t 2s infinite;
}
@keyframes t {
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.timeline-progress-line {
  position: absolute;
  content: '';
  border-top: 1px dotted;
  height: 0;
  width: 100%;
  top: 40px;
  left: 0;
  z-index: -1;
}
.timeline-solid {
  border-top: 1px solid;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(.1);
  transition: .5s linear;
}
.step-description i {
  height: 20px;
  width: 20px;
  border: 1px solid;
  border-width: 1px 0 0 1px;
  position: absolute;
  top: -1px;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: .3s;
  will-change: left;
}
@media (min-width: 769px) {
  .step-description {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid;
    left: 0;
    position: relative;
    width: 100%;
    text-align: left;
    margin-bottom: 60px;
  }
}
@media (max-width: 768px) {
  .timeline-row {
    padding: 0;
    margin-top: 50px;
  }
  .timeline-row > div {
    padding-left: 15px;
    padding-right: 15px;
  }
  .timeline-progress-line {
    display: none;
  }
  .timeline ul {
    margin: 0;
    padding: 0;
    display: block;
  }
  .timeline .step {
    pointer-events: none;
  }
  .timeline li {
    margin-bottom: 50px;
    position: relative;
  }
  .timeline .step-icon.filled {
    background: #85BB25;
  }
  .step-description.mobile:not(#step-description-mobile-5):after {
    content: '';
    position: absolute;
    left: 25px;
    height: calc(100% + 50px);
    top: 0;
    width: 1px;
    background: #85BB25;
    z-index: -1;
    transition: 1s;
    transform: scaleY(0);
    transform-origin: top center;
  }
  .filled + .step-description.mobile:not(#step-description-mobile-5):after {
    transform: scaleY(1);
  }
  .timeline .step-header {
    text-align: left;
    margin: 0;
    white-space: normal;
    width: auto!important;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    padding-bottom: 0;
    margin-left: 75px;
  }
  .timeline .step-header > br {
    display: none;
  }
  .timeline .step-icon {
    height: 50px;
    width: 50px;
    position: absolute;
    top: 0;
    left: 0;
  }
  .timeline li.next .step-icon:after {
    content: none;
  }
  .timeline .mobile {
    display: block;
  }
  .step-description {
    margin-left: 75px;
    text-align: left;
  }
  .step-description.mobile p {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }
  .step-description i {
    display: none;
  }
  .step-description.desktop {
    display: none;
  }
}
@media (min-width: 769px) {
  .anim .timeline li.step {
    position: relative;
    opacity: 1;
    transform: none;
    transition: .8s;
  }
  .timeline li.step:nth-child(1) {transition-delay: .5s;}
  .timeline li.step:nth-child(2) {transition-delay: .6s;}
  .timeline li.step:nth-child(3) {transition-delay: .7s;}
  .timeline li.step:nth-child(4) {transition-delay: .8s;}
  .timeline li.step:nth-child(5) {transition-delay: .9s;}
  .timeline li.step:nth-child(6) {transition-delay: 1s;}

  .timeline li.step {
    opacity: 0;
    transform: translate3d(0,20px,0);
  }
}
