.card-wrapper * {
    margin: 0 auto;
    padding: 0;
}

.mortgage-container *:focus {
    outline: none;
}

.card-wrapper {
    margin-top: 0;
    /*background-color: #f4f4f4;*/
    font-family: 'Raleway', sans-serif;
    font-size: 62.5%;
    -webkit-font-smoothing: antialiased;
    /*-moz-osx-font-smoothing: grayscale;*/
}

.mortgage-container h1,
.mortgage-container h2,
.mortgage-container h4,
.mortgage-container p,
.mortgage-container a,
.mortgage-container span {
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.mortgage-container h1,
.mortgage-container h2,
.mortgage-container h4,
.mortgage-container p,
.mortgage-container a {
    padding-left: 40px;
}

.mortgage-container h1 {
    font-size: 2.3em;
    margin-right: 30px;
}

.mortgage-container h2 {
    font-size: 1.7em;
    text-decoration: underline;
}

.mortgage-container h4 {
    font-size: 1em;
}

.mortgage-container p {
    font-size: 1.5em;
    line-height: 20px;
}

.mortgage-container button {
    border: 0;
    border-radius: 26px;
    padding-bottom: 2px;
}

/*.mortgage-container span {*/
/*    font-size: 1.6em;*/
/*}*/

.mortgage-container,
.flip-box,
.front,
.back {
    width: 360px;
    height: 480px;
}

.mortgage-container,
.flip_box {
    position: relative;
}

.front,
.back {
    position: absolute;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

.back .dashed {
    border-style: dashed;
    border-color: white;
    margin-left: 40px;
    margin-right: 40px;
}

.back h4 {
    margin-right: 20px;
}

.mortgage-container {
    text-align: start !important;
    -moz-transform: perspective(1200px);
    -webkit-perspective: 1200px;
    perspective: 1200px;
    overflow: hidden;
}

.flip_box {
    transition: all 0.5s ease-out;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.front {
    background-color: #024395;
    background-image: url('/static/images/mortage-card.png');
    background-repeat: no-repeat;
    background-position-y: center;
}

.f_title {
    padding-top: 30px;
}

.f_subline {
    padding-top: 340px;
    color: #B1D4E8 !important;
}

.f_headline {
    line-height: 23px;
    position: absolute;
    bottom: 38px;
}

.back {
    background-color: #D21849;
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.b_headline {
    padding-top: 20px;
}

.b_text {
    font-size: 1.4em;
    line-height: 28px;
    padding-top: 10px;
    opacity: 0.85;
    margin-right: 20px;
}

.b_list {
    padding-bottom: 10px;
}

.b_list span {
    color: lightgreen;
}

.b_button {
    position: absolute;
    left: 36px;
    bottom: 38px;
    width: 150px;
    height: 52px;
    background-color: #C30C3D;
    transition: all 0.3s;
}

.b_button:hover {
    background-color: #E30143;
}

.flipped {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.r_wrap {
    position: absolute;
    right: 40px;
    bottom: 38px;
}

.b_round,
.s_round {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #D21849;
    transition: all 0.2s linear;
}

.b_round {
    opacity: 0;
    background-color: #D21849;
}

.b_round_hover {
    transform: scale(1.37);
    opacity: 0.4;
}

.b_round_back_hover {
    background-color: #F60044;
}

.s_round_click {
    transform: scale(1.7);
}

.s_round_back {
    background-color: #C30C3D;
}

.s_arrow {
    width: 52px;
    height: 52px;
    background-image: url('https://img-fotki.yandex.ru/get/194549/29644339.5/0_d6c60_1d7815f0_orig');
    background-color: transparent;
    transition: all 0.35s linear;
}

.s_arrow_rotate {
    transform: rotate(-180deg);
}

.contact {
    z-index: 6;
    text-transform: uppercase;
}

.contact-form {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #ffffff;
    z-index: 5;
    padding: 80px 0;
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    -webkit-transition: opacity .01s, .3s ease;
    transition: opacity .01s, .3s ease;
}

.contact-form.active {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.contact-form .close {
    color: rgba(0, 0, 0, 0.7);
    position: absolute !important;
    right: 10px !important;
    top: 30px !important;
    padding: 6px 11px !important;
}

.contact-form .c-form .control {
    position: relative;
    margin-bottom: 10px;
    padding-top: 20px;
    /*margin-left: 30px;*/
    /*padding-left: 30px;*/
}

.contact-form .c-form .control label {
    position: absolute;
    top: 30px;
    left: 0;
    /*margin-left: 30px;*/
    -webkit-transition: .3s ease;
    transition: .3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
}

.contact-form .c-form .control.submit {
    text-align: right;
}

#f_submit_1:hover:enabled, #f_submit_2:hover:enabled {
    background-color: #E30143;
}

#f_submit_1:disabled, #f_submit_2:disabled {
    background-color: #9e9e9e;
}

.contact-form .c-form input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e3e3e3;
    outline: none;
    padding: 10px 0 !important;
}

.contact-form .c-form .filled label, .contact-form .c-form input:focus + label {
    top: 0;
    font-size: 12px;
}

.contact-form .c-form input[type="submit"] {
    width: auto;
    background-color: #C30C3D;
    padding: 10px 40px;
    color: white;
    border-radius: 40px;
}

.back .iti__flag-container {
    margin-top: 20px !important;
    width: 40px;
    right: 0 !important;
    left: 80% !important;
}

.back .iti__country-list {
    margin-left: -275px;
    padding: 0;
}

.back .iti__country-name, .iti__dial-code {
    color: #7f848c !important;
}

.back .control input {
    font-size: 1.5em;
}

.back .custom-validate{
    font-size: 1em;
}

/*.iti-mobile .iti__country-list {*/
/*    width: auto !important;*/
/*}*/
/*.iti {*/
/*    width: 40px;*/
/*}*/


@media (max-width: 991.98px) {
    .fix-mobile {
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .mortgage-container,
    .flip-box,
    .front,
    .back {
        width: 330px;
        height: 480px;
    }

    .mortgage-container h1 {
        font-size: 2em;
    }

    .mortgage-container h2 {
        font-size: 1.5em;
    }

    .mortgage-container p {
        font-size: 1.2em;
    }

    .front {
        background-position-y: center;
    }

    .f_subline {
        padding-top: 310px;
    }

    #inputDebt {
        margin-top: 27px;
    }
    .iti__country-list {
        margin-left: 0;
    }
}

@media (max-width: 765.98px) {
    #inputDebt {
        margin-top: 0;
    }

    /*.mortgage-container,*/
    /*.flip-box,*/
    /*.front,*/
    /*.back {*/
    /*    width: 330px !important;*/
    /*}*/

}

@media (max-width: 373.98px) {
    .fix-mobile {
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .mortgage-container,
    .flip-box,
    .front,
    .back {
        width: 310px !important;
    }

    .front {
        background-size: 300px;
    }

    .mortgage-container h1 {
        font-size: 1.8em;
    }

    .mortgage-container h2 {
        font-size: 1.5em;
    }

    .mortgage-container p {
        font-size: 1.2em;
    }
    .mortgage-container h4 {
        font-size: .8em;
    }

}

.slide-out-bottom {
	-webkit-animation: slide-out-bottom 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: slide-out-bottom 0.3s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2020-10-15 22:33:31
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info.
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-out-bottom
 * ----------------------------------------
 */
@-webkit-keyframes slide-out-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
}
@keyframes slide-out-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
}

.slide-in-bottom {
	-webkit-animation: slide-in-bottom 0.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-bottom 0.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ----------------------------------------------
 * Generated by Animista on 2020-10-15 22:34:18
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info.
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-in-bottom
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

.modal--opened {
  position: absolute;
  left: 0;
  right: 0;
}