.form fieldset {
    border: none;
    padding: 0;
    padding: 10px 0;
    position: relative;
    clear: both;
}

@media (max-width: 400px) {
    .md-stepper-horizontal .md-step .md-step-title {
        font-size: 13px;
    }
}
@media (min-width: 768px) {
    .form fieldset.fieldset-ccv {
        float: right;
    }
    .checkout,
    .md-stepper-horizontal {
        max-width: 460px;
    }
    .credit-card-box,
    .credit-card-box .front,
    .credit-card-box .back {
        max-width: 400px;
    }
    .md-stepper-horizontal .md-step {
        padding: 24px;
    }

    .form fieldset.fieldset-expiration {
        float: left;
        width: 60%;
    }

    .form fieldset.fieldset-expiration .select {
        width: 84px;
        margin-right: 12px;
        float: left;
    }
}

.form fieldset label {
    display: block;
    margin-bottom: 5px;
}

.form fieldset input,
.form fieldset .select {
    height: 38px;
}

.form fieldset input.input-cart-number,
.form fieldset .select.input-cart-number {
    width: 22%;
}

.form fieldset input.input-street-postalcode {
    width: 110px;
    display: inline-block;
    margin-right: 8px;
}

.form fieldset input.input-cart-number:last-child,
.form fieldset .select.input-cart-number:last-child {
    margin-right: 0;
}

.form fieldset .select {
    position: relative;
}

.form fieldset .select::after {
    content: '';
    border-top: 8px solid #222;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 10px;
    pointer-events: none;
}

.form fieldset .select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    border: none;
    width: 100%;
    outline: none !important;
    top: 8px;
    left: 6px;
    background: none;
    position: absolute;
    -webkit-border-radius: 2px;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0);
}

.form fieldset .select select :-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

.form button {
    width: 100%;
    text-transform: uppercase;
    border: none;
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.form button .fa {
    margin-right: 6px;
}

.checkout {
    margin: 0px auto;
    position: relative;
    width: 100%;
    background: white;
    border-radius: 15px;
}

.credit-card-box {
    margin: auto;

    -webkit-perspective: 1000;
    perspective: 1000;
    width: 100%;
    height: 280px;
}

.credit-card-box:hover .flip,
.credit-card-box.hover .flip {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.credit-card-box .front,
.credit-card-box .back {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #bd6772, #53223f);
    position: absolute;
    color: #fff;
    top: 0;
    left: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.credit-card-box .front::before,
.credit-card-box .back::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url("http://cdn.flaticon.com/svg/44/44386.svg") no-repeat center;
    background-size: cover;
    opacity: .05;
}

.credit-card-box .flip {
    -webkit-transition: 0.6s;
    transition: 0.6s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    position: relative;
}

.credit-card-box .logo {
    position: absolute;
    top: 9px;
    right: 20px;
    width: 60px;
}

.credit-card-box .logo svg {
    width: 100%;
    height: auto;
    fill: #fff;
}

.credit-card-box .front {
    z-index: 2;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.credit-card-box .back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.credit-card-box .back .logo {
    top: 185px;
}

.credit-card-box .chip {
    position: absolute;
    width: 60px;
    height: 45px;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);
    border-radius: 8px;
}

.credit-card-box .chip::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border: 4px solid rgba(128, 128, 128, 0.1);
    width: 80%;
    height: 70%;
    border-radius: 5px;
}

.credit-card-box .strip {
    background: linear-gradient(135deg, #404040, #1a1a1a);
    position: absolute;
    width: 100%;
    height: 50px;
    top: 30px;
    left: 0;
}

.credit-card-box .number {
    position: absolute;
    margin: 0 auto;
    top: 103px;
    left: 19px;
    font-size: 28px;
}

.credit-card-box label {
    font-size: 10px;
    letter-spacing: 1px;
    text-shadow: none;
    text-transform: uppercase;
    opacity: 0.5;
    display: block;
    margin-bottom: 3px;
}

.credit-card-box .card-holder,
.credit-card-box .card-expiration-date {
    position: absolute;
    margin: 0 auto;
    top: 180px;
    left: 19px;
    font-size: 22px;
    text-transform: capitalize;
}

.credit-card-box .card-expiration-date {
    text-align: right;
    left: auto;
    right: 20px;
}

.credit-card-box .ccv {
    height: 36px;
    background: #fff;
    width: 91%;
    border-radius: 5px;
    top: 110px;
    left: 0;
    right: 0;
    position: absolute;
    margin: 0 auto;
    color: #000;
    text-align: right;
    padding: 10px;
}

.credit-card-box .ccv label {
    margin: -35px 0 15px;
    color: #fff;
}

#regForm {
    background-color: #ffffff;
    margin: 100px auto;
    padding: 40px;
    width: 70%;
    min-width: 300px;
}


/* Mark input boxes that gets an error on validation: */

input.invalid,
div.invalid {
    border-color: #F64E60;
}

.tab {
    display: none;
}

.md-stepper-horizontal {
    display: table;
    margin: 0 auto;
    width: 100%;
}

.md-stepper-horizontal .md-step {
    display: table-cell;
    position: relative;
    padding: 24px 6px;
}

.md-stepper-horizontal .md-step:active {
    border-radius: 15% / 75%;
}

.md-stepper-horizontal .md-step:first-child:active {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.md-stepper-horizontal .md-step:last-child:active {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.md-stepper-horizontal .md-step:first-child .md-step-bar-left,
.md-stepper-horizontal .md-step:last-child .md-step-bar-right {
    display: none;
}

.md-stepper-horizontal .md-step .md-step-circle {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    background-color: #999999;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.md-stepper-horizontal.green .md-step.active .md-step-circle {
    background-color: #396 !important;
}

.md-stepper-horizontal-green {
    background-color: #396 !important;
}

.md-stepper-horizontal .md-step.active .md-step-circle {
    background-color: #757575;
}

.md-stepper-horizontal .md-step .md-step-title {
    margin-top: 16px;
    font-size: 16px;
}

.md-stepper-horizontal .md-step .md-step-title,
.md-stepper-horizontal .md-step .md-step-optional {
    text-align: center;
    color: rgba(0, 0, 0, .26);
}

.md-stepper-horizontal .md-step.active .md-step-title {
    font-weight: 600;
    color: rgba(0, 0, 0, .87);
}

.md-stepper-horizontal .md-step.active.done .md-step-title,
.md-stepper-horizontal .md-step.active.editable .md-step-title {
    font-weight: 600;
}

.md-stepper-horizontal .md-step .md-step-optional {
    font-size: 12px;
}

.md-stepper-horizontal .md-step.active .md-step-optional {
    color: rgba(0, 0, 0, .54);
}

.md-stepper-horizontal .md-step .md-step-bar-left,
.md-stepper-horizontal .md-step .md-step-bar-right {
    position: absolute;
    top: 36px;
    height: 1px;
    border-top: 1px solid #DDDDDD;
}

.md-stepper-horizontal .md-step .md-step-bar-right {
    right: 0;
    left: 50%;
    margin-left: 20px;
}

.md-stepper-horizontal .md-step .md-step-bar-left {
    left: 0;
    right: 50%;
    margin-right: 20px;
}

.modal-backdrop.fade.in.loading {
    z-index: 10001;
    background-image: url('/img/loading-dark.gif');
    opacity: 0.7 !important;
    background-repeat: no-repeat;
    background-position: center center;
}

#frm-checkout-address {
    margin-bottom: 2rem;
}

#prevBtn {
    display: none;
    float: left;
}

#frm-checkout-card {
    margin: 0 auto;
}

.pagseguro-image {
    margin-top: 50px;
    text-align: center;
}

.fieldset-ccv label .popover {
    width: 250px;
    margin-left: 25px;
}
