/* Styling for horizontal step indicators in multipart forms */
ul.multipart-steps {
    display: inline-block;
    overflow: hidden;
    counter-reset: step;
    margin: 30px 0 0 0;
    padding: 0;
}
ul.multipart-steps li {
    list-style-type: none;
    float: left;
    position: relative;
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: center;
    color: #aaa;
    width: 160px;
}
ul.multipart-steps li:before {
    content: counter(step);
    counter-increment: step;
    width: 24px;
    line-height: 24px;
    display: block;
    text-align: center;
    background: #aaa;
    color: white;
    border-radius: 6px;
    margin: 0 auto 5px auto;
}
/* Connectors for the steps */
ul.multipart-steps li:after {
    content: "";
    width: 160px;
    position: absolute;
    left: -80px;
    top: 11px;
    z-index: -1;
    background-color: #aaa;
    height: 2px;
}
ul.multipart-steps li:first-child:after {
    content: none;
}
ul.multipart-steps li.past:before,
ul.multipart-steps li.past:after {
    background: #0dd9f3;
}
ul.multipart-steps li.past {
    color: black;
}
ul.multipart-steps li.active:before,
ul.multipart-steps li.active:after {
    background: #00c7f3;
}
ul.multipart-steps li.active {
    color: #00c7f3;
}
ul.multipart-steps li.error:before,
ul.multipart-steps li.error:after {
    background: #e74c3c;
}
ul.multipart-steps li.error {
    color: #e74c3c;
}

.form-multipart {
    position: relative;
}

.form-multipart fieldset {
    position: absolute;
    width: 80%;
    margin: 1em 10%;
    float: left;
    background: white;
}

/* Hide all but the first fieldset for multipart forms */
.form-multipart fieldset:not(:first-of-type) {
    display: none;
}

/* Placement of buttons */
.form-multipart .previous {
    float: left;
}
.form-multipart .next,
.form-multipart button[type=submit],
.form-multipart input[type=submit] {
    float: right;
}
