.wizard {
  position: relative;
  overflow: hidden;
}

.wizard:before,
.wizard:after {
  display: table;
  line-height: 0;
  content: "";
}

.wizard:after {
  clear: both;
}

.wizard section {
  padding: 0;
  margin: 0;
  list-style: none outside none;
}

.wizard section p {
  position: relative;
  float: left;
  height: 48px;
  padding: 0 20px 0 30px;
  margin: 0;
  font-size: 16px;
  line-height: 48px;
  color: #999999;
  cursor: default;
  background: #ededed;
  border: 1px solid #d4d4d4;
  min-width: 154px;
}

.wizard section p .chevron {
  position: absolute;
  top: 0;
  right: -15px;
  z-index: 1;
  display: block;
  border: 24px solid transparent;
  border-right: 0;
  border-left: 14px solid #d4d4d4;
}

.wizard section p .chevron:before {
  position: absolute;
  top: -24px;
  right: 1px;
  display: block;
  border: 24px solid transparent;
  border-right: 0;
  border-left: 14px solid #ededed;
  content: "";
}

.wizard section p.complete {
  color: #fff;
  background: #76C4ED;
  border: 1px solid #52B4E8;
}

.wizard section p.complete .chevron:before {
  border-left: 14px solid #76C4ED;
}

.wizard section p.complete .chevron {
  border-left: 14px solid #52B4E8;
}

.wizard section p.active {
  color: #fff;
  background: #4F8EDC;
  border: 1px solid #4F8EDC;
}

.wizard section p.active .chevron:before {
  border-left: 14px solid #4F8EDC;
}

.wizard section p.active .chevron {
  border-left: 14px solid #4F8EDC;
}

.wizard section p .badge {
  margin-right: 8px;
}

.wizard section p.active .badge {
    background: #fff;
    color: #4F8EDC;
}

.wizard section p.complete .badge {
    background: #fff;
    color: #52B4E8;
}

.wizard section p:first-child {
  padding-left: 20px;
}

.wizard .actions {
  position: absolute;
  right: 0;
  z-index: 1000;
  float: right;
  padding-right: 15px;
  padding-left: 15px;
  line-height: 46px;
  vertical-align: middle;
  background-color: #e5e5e5;
  border-left: 1px solid #d4d4d4;
}

.wizard .actions a {
  margin-right: 8px;
  font-size: 12px;
  line-height: 45px;
}

.wizard .actions .btn-prev i {
  margin-right: 5px;
}

.wizard .actions .btn-next i {
  margin-left: 5px;
}

@media(max-width: 768px) {
  .wizard section {
    display: flex;
    flex-direction: column;
  }

  .wizard section p {
    padding: 0 20px;
    width: max-content;
  }
}
