/*form styles*/

#msform_container {
    position: relative;
}

#msform {
    width: 100% text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    overflow: hidden;
}

#msform .form-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    padding-top: 23px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    ;
}

#msform .msform_section {
    background: white;
    border: 0 none;
    border-radius: 3px;
    /*box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);*/
    box-sizing: border-box;
    /*stacking fieldsets above each other*/
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 13%;
    padding-bottom: 100px;
    margin: 0;
    box-sizing: border-box;
}


/*Hide all except first fieldset*/

#msform .msform_section:not(:first-of-type) {
    display: none;
}


/*buttons*/

#msform .action-button,
.action-buttons .action-button {
    background: #ce08e6;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 100px;
    cursor: pointer;
    padding: 5px 30px;
    margin: 10px 5px;
    box-shadow: 0 0 0 2px white, 0 0 0 3px #ce08e6;
    white-space: nowrap;
    display: inline-block;
}

#msform .action-button:hover,
#msform .action-button:focus,
.action-buttons .action-button:hover,
.action-buttons .action-button:focus {
    background: brown;
    box-shadow: 0 0 0 2px white, 0 0 0 3px brown;
}


/*headings*/

#msform .fs-title {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2C3E50;
    margin-top: 10px;
    margin-bottom: 5px;
    line-height: 18px;
}

#msform .fs-subtitle {
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding-left: 15px;
}


/*progressbar*/

#msform #progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}

#msform #progressbar li {
    list-style-type: none;
    color: #000;
    text-transform: uppercase;
    font-size: 9px;
    float: left;
    position: relative;
    text-align: center;
    font-weight: 700;
    line-height: 12px;
}

#msform #progressbar.two-step li {
    width: 50%;
}

#msform #progressbar.three-step li {
    width: 33.33%;
}

#msform #progressbar.four-step li {
    width: 25%;
}

#msform #progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 20px;
    line-height: 20px;
    display: block;
    font-size: 10px;
    color: #333;
    background: #ddd;
    border-radius: 3px;
    margin: 0 auto 5px auto;
}


/*progressbar connectors*/

#msform #progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    left: -50%;
    top: 9px;
    z-index: -1;
    /*put it behind the numbers*/
}

#msform #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*/

#msform #progressbar li.active:before,
#msform #progressbar li.active:after {
    background: #27AE60;
    color: white;
}

@media(max-width: 768px) {
    #msform .msform_section {
        padding: 0 15px;
    }
}

@media(max-width: 576px) {
    #msform .msform_section {
        padding: 0 15px;
    }
}