﻿/*progressbar*/
#progressbar {
  margin: 30px 0;
  padding: 0;
  overflow: hidden;
  /*CSS counters to number the steps*/
  counter-reset: step;
  /*    border-bottom: 1px solid #A3A3A3;*/
  height: 60px;
  background: transparent;
}

#progressbar li {
  list-style-type: none;
  color: #A3A3A3;
  font-size: 14px;
  width: 15%;
  float: left;
  text-align: center;
  position: relative;
  letter-spacing: 1px;
}

#progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 32px;
  height: 32px;
  line-height: 28px;
  display: block;
  font-size: 12px;
  border: 2px solid #A3A3A3;
  color: #A3A3A3;
  background: white;
  border-radius: 25px;
  text-align: center;
  margin: 0 auto 10px auto;
}

/*progressbar connectors*/
#progressbar li:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #A3A3A3;
  position: absolute;
  left: -50%;
  top: 15px;
  z-index: -1;
  /*put it behind the numbers*/
}

#progressbar li:first-child:before {
  background: #fff;
  color: #529341;
  border: 2px solid #529341;
  font-weight: 600;
}

#progressbar li:first-child span {
  color: #212121;
  font-weight: 500;
}

#progressbar li:first-child:after {
  /*connector not needed before the first step*/
  content: none;
}

/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before, #progressbar li.active:after {
  background: #fff;
  color: #529341;
  border: 2px solid #529341;
  font-weight: 600;
}

#progressbar li.active span {
  color: #212121;
  font-weight: 500;
}

#progressbar li.valid:before {
  background: #529341 !important;
  font-weight: 100;
  font-size: 18px;
  font-family: FontAwesome;
  content: "\f00c";
  color: #f5f5f7;
}

#progressbar li.inactive:before {
  background: #fff;
  color: #A3A3A3;
  border: 2px solid #A3A3A3;
}

fieldset {
  /* for chrome and safari*/
  -webkit-animation-duration: 0.25ms;
  -webkit-animation-name: slidein;
  /*for firefox*/
  -moz-animation-duration: 1s;
  -moz-animation-name: slidein;
  /* for opera*/
  -o-animation-duration: 1s;
  -o-animation-name: slidein;
  /* Standard syntax*/
  animation-duration: 1s;
  animation-name: slidein;
}

@-webkit-keyframes slidein {
  from {
    margin-right: 100%;
    width: 300%;
  }
  to {
    margin-right: 0%;
    width: 100%;
  }
}
@-moz-keyframes slidein {
  from {
    margin-left: 100%;
    width: 300%;
  }
  to {
    margin-left: 0%;
    width: 100%;
  }
}
@-o-keyframes slidein {
  from {
    margin-left: 100%;
    width: 300%;
  }
  to {
    margin-left: 0%;
    width: 100%;
  }
}
@keyframes slidein {
  from {
    margin-left: 100%;
    width: 300%;
  }
  to {
    margin-left: 0%;
    width: 100%;
  }
}
@media (max-width: 991px) {
  #progressbar li span {
    display: none;
  }
  #progressbar li.valid span {
    display: none !important;
  }
  #progressbar li:first-child span {
    display: block;
  }
  #progressbar li.active span {
    display: block;
  }
}
