button.stepper {
  padding: 10px 25px;
  margin-left: 0;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 15px;
  outline: 0;
  margin-right: 15px;
  position: relative;
  margin-bottom: 10px;
}

button.stepper.long {
  width: 100%;
  padding: 2px 10px;
  margin-left: 0;
  margin-right: 0;
}

button.stepper.legend.active,
button.stepper.legend {
  border: none !important;
  padding: 0;
  margin: 0;
  background-color: transparent;
  width: auto;
  cursor: default;
}

ul.form-list.legend li span {
  position: relative;
  top: 0;
  margin-left: 5px;
}

.legend-container {
  display: block;
}

button.stepper.legend .stepper-text {
  border-left: none;
  width: 100%;
}

.long .recommended-question-stepper {
  font-size: 18px;
}

.long .recommended-question-stepper,
.long .required-question-stepper {
  top: 10px;
  left: 98%;
}

button.stepper.active.long {
  padding: 2px 10px;
}

button.stepper.active.long .icon {
  padding: unset;
}

.required-question-stepper {
  position: absolute;
  top: -2px;
  left: 2px;
  color: #ed6102;
  font-size: 25px;
  font-weight: bold;
}

.recommended-question-stepper {
  font-size: 13px;
  font-weight: bold;
  position: absolute;
  top: 0px;
  left: 4px;
}

button.stepper .stepper-text {
  border-left: 1px solid #a1a1a1;
  padding-left: 5px;
  margin-left: 5px;
  width: 200px;
  text-align: left;
  /* without flex */
  min-height: 45px;
  position: relative;
}

button.stepper.long .stepper-text {
  width: 100%;
}

button.stepper .stepper-text span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  line-height: 19px;
}

button.stepper .icon i {
  /* font-size: 25px; */
  top: 50%;
  transform: translateY(-50%);
  position: relative;
}

button.stepper .icon i.fa-sync-alt {
  top: 5px;
}

button.stepper .inner-container {
  text-align: center;
  display: flex;
}


/* Not started */
button.stepper.not-started {
  background-color: #fff;
  border: 1px solid #a1a1a1;
}

button.stepper.not-started:hover {
  background: #F2F2F2;
}

button.stepper.not-started .icon {
  color: #a1a1a1;
}

/* Success */
button.stepper.success {
  background-color: #fff;
  border: 1px solid #5F8011;
}

button.stepper.success:hover {
  background: #F2F2F2;
}

button.stepper.success .icon {
  color: #000;
}

button.stepper.success .stepper-text {
  color: #5F8011;
}

button.stepper.success .icon {
  display: inline-block;
  padding: 2px 0px 0px 0px;
}

button.stepper.success .icon i {
  border: 1px solid #000;
  padding: 4px;
  border-radius: 30px;
  background-color: #b5dc10;
  font-size: 1.5em;
}

/* Updated */
button.stepper.updated {
  background-color: #fff;
  border: 1px solid #D59C19;
}

button.stepper.updated:hover {
  background: #F2F2F2;
}

button.stepper.updated .icon {
  color: #000;
}

button.stepper.updated .stepper-text {
  color: #D59C19;
}

button.stepper.updated .icon {
  display: inline-block;
  padding: 0px 0px 4px 0px;
}

button.stepper.updated .icon i {
  border: 1px solid #000;
  padding: 5px;
  border-radius: 30px;
  background-color: #FCBE2C;
  font-size: 1.2em;
}

/* go to */
button.stepper.goto {
  background-color: #fff;
  border: 1px solid #540011;
}

button.stepper.goto:hover {
  background: #F2F2F2;
}

button.stepper.goto .icon {
  color: #540011;
}

button.stepper.goto .stepper-text {
  color: #540011;
}

button.stepper.goto .icon {
  display: inline-block;
  padding: 2px 0px 0px 0px;
}

button.stepper.goto .icon i {
  border: 1px solid #540011;
  padding: 4px;
  border-radius: 30px;
  background-color: transparent;
  font-size: 1.5em;
}

/* go to greyed out */
button.stepper.goto-grey {
  background-color: #fff;
  border: 1px solid #D8D8D8;
}

/* button.stepper.goto-grey:hover {
  background: #F2F2F2;
} */

button.stepper.goto-grey .icon {
  color: #D8D8D8;
}

button.stepper.goto-grey .stepper-text {
  color: #D8D8D8;
  border-left: 1px solid #D8D8D8;
}

button.stepper.goto-grey .icon {
  display: inline-block;
  padding: 2px 0px 0px 0px;
}

button.stepper.goto-grey .icon i {
  border: 1px solid #D8D8D8;
  padding: 4px;
  border-radius: 30px;
  background-color: transparent;
  font-size: 1.5em;
}

/* Fail */
button.stepper.fail {
  background-color: #fff;
  border: 1px solid #E60122;
}

button.stepper.fail:hover {
  background: #F2F2F2;
}

button.stepper.fail .icon {
  color: #000;
}

button.stepper.fail .stepper-text {
  color: #E60122;
}

button.stepper.fail .icon {
  display: inline-block;
  padding: 2px 0px 0px 0px;
}

button.stepper.fail .icon i {
  border: 1px solid #000;
  padding: 4px;
  border-radius: 30px;
  background-color: #FF6669;
  font-size: 1.5em;
}

/* Active */
button.stepper.active {
  background-color: #F2F2F2;
  border: 2px solid #437AA8;
  /* with out flex */
  padding: 25px 22px;
}

button.stepper.active .icon {
  color: #000;
}

button.stepper.active .stepper-text {
  color: #437AA8;
}

button.stepper.active .icon {
  display: inline-block;
  padding: 2px 0px 0px 4px;
}

button.stepper.active .icon i {
  border: 1px solid #000;
  padding: 4px;
  border-radius: 30px;
  background-color: #77A5CB;
  font-size: 1.5em;
}

.required-pages {
  text-align: right;
  font-size: 13px;
  width: 100%;
  margin-bottom: 5px;
}

.show-all {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

ul.form-list.legend {
  text-align: center;
}


ul.form-list.legend li {
  width: auto;
  margin-right: 30px
}

ul.form-list.legend li span {
  position: relative;
  top: -3px;
}

.mobile-text span {
  display: none;
}

@media only all and (max-width: 1024px) {

  button.stepper.legend.active,
  button.stepper.legend {
    font-size: 12px;
  }

  ul.form-list.legend li span {
    font-size: 12px;
  }
}

@media only all and (max-width: 991px) {


  .stepper .ohio-card.ode-section h3.section-header-text.status-title {
    font-size: 16px;
  }

  button.stepper.long,
  button.stepper {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    padding: 5px;
    padding-right: 25px;
  }

  button.stepper .stepper-text {
    min-height: 0;
    width: auto;
    padding-top: 5px;
  }

  button.stepper .stepper-text span {
    position: unset;
    top: 50%;
    transform: translateY(-50%);
  }

  button.stepper.active .icon i,
  button.stepper.fail .icon i,
  button.stepper.goto-grey .icon i,
  button.stepper.goto .icon i,
  button.stepper.fail .icon i,
  button.stepper.success .icon i {
    font-size: 1.2em;
  }

  button.stepper.active {
    padding: 5px;
  }

  button.stepper.active .icon {
    padding: 2px 0px 0px 0px;
  }


  .long .recommended-question-stepper,
  .long .required-question-stepper {
    top: 5px;
    left: 96%;
  }

  .required-question {
    font-size: 32px;
    top: 5px;
    left: 96%;
  }

  .recommended-question {
    font-size: 19px;
    top: 5px;
    left: 96%;
  }
}

@media only all and (max-width: 768px) {

  .long .required-question-stepper,
  .required-question-stepper {
    font-size: 32px;
    top: 5px;
    left: 93%;
  }

  .recommended-question-stepper {
    font-size: 18px;
    top: 5px;
    left: 93%;
  }


  .long .recommended-question-stepper {
    top: 5px;
    left: 93%;
    top: 50%;
    transform: translateY(-50%);
  }

  .stepper .ohio-card.ode-section {
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 10px 10px 5px 5px;
    margin-top: -20px;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 20px;
  }

  .show-all {
    bottom: 5px;
  }

  .col-md-12.stepper-outer {
    padding-right: 0;
    padding-left: 0;

  }

  ul.form-list.legend li span {
    font-size: 11px;
  }
}

@media only all and (max-width: 425px) {

  button.stepper.legend.active,
  button.stepper.legend {
    font-size: 9px;
  }

  ul.form-list.legend {
    background-color: #fff;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  ul.form-list.legend li span {
    font-size: 10px;
  }

  ul.form-list.legend li {
    margin-right: 7px;
  }

  ul.form-list.legend li {
    margin-bottom: 4px;
  }

  /* This is new design mobile idea */
  .mobile-blue {
    background-color: #437AA8;
    padding-top: 10px;
    padding-left: 5px;
    padding-right: 5px;

  }

  .mobile-blue div.flex {
    display: flex;
    overflow: auto;
  }

  button.stepper .stepper-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100px;
  }

  button.stepper.mobile-active .stepper-text {
    width: 100%;
  }

  .mobile-text {
    color: #fff;
    padding: 5px;
  }

  .mobile-text span {

    text-align: center;
    display: block;
    font-size: 17px;
  }

  button.stepper.mobile-active .recommended-question-stepper {
    left: 93%;
  }

  .recommended-question-stepper {
    font-size: 18px;
    top: 7px;
    left: 88%;
  }

  .stepper-outer .ohio-card.ode-section .show-all,
  .stepper-outer .ohio-card.ode-section .required-pages,
  .stepper-outer .ohio-card.ode-section hr,
  .stepper-outer .ohio-card.ode-section .section-top-container {
    display: none;
  }

  .stepper .ohio-card.ode-section {
    padding-bottom: 5px;
  }

  .stepper .ohio-card.ode-section {
    padding: 0;
  }
}