﻿.wizard {
    max-width: 1200px;
    margin: 0 auto;
}

.wizard__header {
    position: relative;
    color: #FFF;
    padding: 50px;
    border-radius: 5px;
    text-align: center;
    height: 130px;    
    /*background: url("../../dist/img/bg3.jpg");*/
    background-color: #4D637B;
    background-position: 0px -200px;
    background-repeat: no-repeat;
    background-size: 1200px auto;
}

.wizard__header-content {
    position: absolute;
    width: 100%;
    padding: 0 50px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

.wizard__header-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /*background: rgba(77, 99, 123, 0.6);*/
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.wizard__title {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.wizard__subheading {
    text-transform: uppercase;
    margin: 0;
    font-size: .8rem;
    letter-spacing: 2px;
}

    .wizard__subheading span {
        font-weight: 600;
    }

.wizard__steps {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(50%);
    z-index: 10;
}

.wizard__footer {
    padding: 0px 0px 20px 0px;
    border-radius: 5px;
}

.wizard__content {
    background: #FFF;
    box-shadow: 0px 0px 10px #c5c5c5;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.wizard__congrats-message {
    color: #29a746;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 90%;
    z-index: 0;
    background-color:#fff;
    padding:10px 0 10px 0;
    border:2px;
}

.wizard.completed .wizard__content {
    animation: gettingOut 2s cubic-bezier(1, -0.71, 1, 1.16) forwards;
}

.wizard.completed .wizard__congrats-message {
    animation: fadeIn 2s cubic-bezier(1, -0.71, 1, 1.16) forwards;
}

.line {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: -1;
    height: 6px;
    transition: all 0.5s ease;
}

    .line.-start {
        left: 0%;
        background: #28a745;
        width: 50%;
    }

    .line.-end {
        left: 50%;
        background: #5094de;
        width: 50%;
    }

    .line.-background {
        background: #c3c3c3;
        width: 100%;
    }

    .line.-progress {
        background: #28a745;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left center;
    }

    .line.-in-progress {
        transform: scaleX(1);
    }

.panels {
    position: relative;
    overflow: hidden;
    text-align: left;
}

.panel {
    position: absolute;
    top: 0;
    left: 0;
    transition: .5s all;
    padding: 50px 20px 20px 20px;
    width: 100%;
}

.panel__header {
    margin-bottom: 30px;
}

.panel__title {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.panel__subheading {
    font-size: .9rem;
    line-height: 1.2rem;
    margin: 0;
}

.panel.movingOutBackward {
    transform: translateX(-1200px);
}

.panel.movingOutFoward {
    transform: translateX(1200px);
}

.panel.movingIn {
    transform: translateX(0);
}

.steps {
    position: relative;
    display: flex;
    flex: 0 1 auto;
    /*color: #fff;*/
}

.step {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 5px;
}

.step__content {
    position: relative;
    z-index: 2;
}

.step__number {
    font-size: 1.3rem;
    color: #676767;
    background: #FFF;
    font-weight: 800;
    width: 50px;
    height: 50px;
    line-height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid #c3c3c3;
    transition: opacity .5s;
    opacity: 1;
    z-index: 5;
}

.step.-completed .step__number {
    opacity: 0;
}

.step.-completed .checkmark {
    z-index: 0;
    animation: fill .4s ease-in-out forwards, scale .3s ease-in-out .6s both;
}

.step.-completed .checkmark__check {
    animation: stroke .5s linear .4s forwards;
}

.step.-completed .line {
    transform: scaleX(1);
}

.step:last-child .line {
    width: 50%;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #28a745;
    z-index: -1;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 8;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    stroke: #FFF;
    stroke-width: 5;
}

.button {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1rem;
    background: #dc3545;
    color: #FFF;
    padding: 10px 15px;
    border: none;
    outline: none;
    display: inline-block;
    transition: all .3s;
}

    .button:hover {
        background: #f95d6c;
        color: #ffffff;
    }

    .button.previous {
        margin-right: 5px;
    }

    .button.disabled {
        background: #c3c3c3;
        cursor: default;
    }

@keyframes stroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    50% {
        transform: translateX(-50%) scale3d(1.5, 1.5, 1.5);
    }

    100% {
        transform: scale3d(0);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #2ba745;
    }
}

@keyframes gettingOut {
    0% {
        transform: translateY(0%);
    }

    30% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(-200%);
    }
}

@keyframes fadeIn {
    100% {
        opacity: 1;
    }
}

.wizard label {
    margin-bottom: 0rem
}

.fs-title {
    font-size: 25px;
    color: #4bb8d1;
    margin-bottom: 15px;
    font-weight: normal;
    text-align: left;
}

.stepin {
    font-size: 1.2rem;
    color: gray;
    margin-bottom: 10px;
    font-weight: normal;
    text-align: right;
}
