/*
Theme Name: realhomes

Theme URI: realhomes.com

Description: realhomes 

Author: realhomes

Author URI: realhomes.com

Version: 1.0
*/

body.home div.container.contents {
    margin-top: 0 !important;
}

div.i_wish_this_home_block,
div.get_order_button_block {
    text-align: center;
    margin: 28px 0;
}

a.i_wish_this_home_link,
a.get_order_button_link {
    display: inline-block;
    background: #ec894d;
    color: white;
    padding: 12px 32px;
    font-size: large;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a.i_wish_this_home_link:hover,
a.get_order_button_link:hover {
    background-color: #e3712c;
    color: #ffffff;
}

div.property-meta .i_wish_this_home_block {
    float: left;
    margin: 0;
}


/* ВАРИАНТЫ СТРОИТЕЛЬСТВА*/


/*.stages_construction_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
*/

.single article p {
    margin-top: 15px;
}

.stages_construction_desc {
    margin-top: 20px;
}

.stages_construction_desc>ul>li {
    line-height: 25px;
    font-size: 18px;
}


/* END ВАРИАНТЫ СТРОИТЕЛЬСТВА*/


/* ОТЗЫВЫ*/

.aet-layout .group-field-content {
    height: auto;
    background-image: none;
}

.aet-layout-grid .testimonials-box {
    margin-bottom: 100px !important;
}


/* END ОТЗЫВЫ*/


/* PROMO BLOCK*/

.promo-block {
    /*background-color: #ffb400;*/
    overflow: auto;
    margin-bottom: 70px;
}

.promo-block ::after {
    content: none;
    clear: both;
}


/*.promo-block h3 {
    margin: 0 20px;
}*/

.promo-block-container {
    display: flex;
    flex-flow: wrap;
    /*margin: 20px;*/
    justify-content: center;
    ackground-color: #ffb40054;
}

.promo-block-container-single {
    width: 45.5%;
    display: flex;
    padding: 2%;
    background-color: #ffb400;
    /*border: 2px solid white;*/
    margin-bottom: 1%;
}

.promo-block-container-single:first-child {
    margin-right: 1%;
}

.promo-block-container-single:last-child {
    margin-left: 1%;
}

div.promo-block-container-single-left img {
    max-width: unset;
    width: 128px;
    height: 128px;
}


/*
.promo-block-container-single:first-child {
border-right: 2px solid white;
border-bottom: 2px solid white;
}

.promo-block-container-single:nth-child(2) {
border-left: 2px solid white;
border-bottom: 2px solid white;
}

.promo-block-container-single:nth-child(3) {
border-right: 2px solid white;
border-top: 2px solid white;
}

.promo-block-container-single:last-child {
border-left: 2px solid white;
border-top: 2px solid white;
}
*/

.promo-block-container-single-left {
    /*float: left;*/
    margin: 0 20px;
}

.promo-block-container-single-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-block-container-single-title-description {
    color: #fff;
}

@media (max-width: 768px) {
    .promo-block-container-single {
        width: 100%;
    }
    .promo-block-container-single:first-child {
        margin-right: 0;
    }
    .promo-block-container-single:last-child {
        margin-left: 0;
    }
}


/* END PROMO BLOCK*/


/* CATEGORY PAGE*/

div.container.contents.blog-page article.post.type-post {
    width: 31%;
    margin: 1%;
}

div.container.contents.blog-page .articles-block {
    display: flex;
    flex-wrap: wrap;
}


/* END CATEGORY PAGE*/


/* PROJECT PAGE*/

.property-item .property-meta span .icon-hour-glass {
    background: url(images/icon-hour-glass-2.png) no-repeat left center;
}


/* END PROJECT PAGE*/


/* POST PAGE*/


/*
.ngg-galleryoverview.ngg-ajax-pagination-none {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}

.ngg-gallery-thumbnail-box {
    margin: 10px;
}
*/


/* END POST PAGE*/


/*Youtube Video*/

.preview-lazyload {
    position: unset !important;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
}

.videoWrapper iframe {
    position: absolute;
    text-align: center;
    top: 20;
    /*left: 5%;*/
    width: 100%;
    height: 95%;
}

.generic-video {
    display: flex;
    margin-bottom: 20px;
}

.generic-video>div.videoWrapper {
    padding-bottom: 29.25%;
    width: 48%;
    margin: 1%;
}


/*END Youtube Video*/


/* #region  Popup form */

.pum .wpcf7-form {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 0 18px rgba(0, 0, 0, .33);
}

.pum .wpcf7-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    color: #000;
}

.pum .wpcf7-form label input {
    padding: 8px 28px;
    width: 100%;
    margin: 5px 0;
    border: 0;
    border-bottom: 2px solid #ffb400;
    text-align: center;
    font-size: 16px;
}

.pum .wpcf7-form .wpcf7-submit {
    color: #fff;
    letter-spacing: 4px;
    font-size: 14px;
    font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #ffb400;
    border: 12px solid #ffb400;
    padding: .3em 1em;
    cursor: pointer;
    width: auto;
}

.pum .wpcf7-form .trx_mscf_next {
    color: #2a2a2a;
    letter-spacing: 4px;
    font-size: 14px;
    font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    border: 4px solid #2a2a2a;
    padding: 12px 30px;
    cursor: pointer;
    margin: 5px;
}

.pum .wpcf7-form .trx_mscf_prev {
    border: 0;
    padding: 0;
    background: transparent;
    margin: 5px;
    cursor: pointer;
}

.pum .wpcf7-form .wpcf7-submit:hover,
.pum .wpcf7-form .trx_mscf_next:hover {
    opacity: .8;
}

.pum .wpcf7-form .trx_mscf_prev:hover {
    text-decoration: underline;
}

.pum .wpcf7 .trx_mscf_progressbar,
.pum .wpcf7 form .trx_mscf_step {
    width: 100%;
}

.pum .wpcf7-form h4 {
    text-align: center;
}

.pum .wpcf7-form-control {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.pum input[type="text"].wpcf7-form-control,
.pum input[type="tel"].wpcf7-form-control {
    text-align: center;
    padding: 10px 16px;
    margin: 0 5px;
    font-size: 16px;
}

.pum .wpcf7-list-item {
    margin: 5px;
    width: calc(25% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pum .wpcf7-list-item label {
    margin-bottom: 0;
    height: 100%;
}

.pum .wpcf7-list-item label input {
    display: none;
}

.pum .wpcf7-list-item label .wpcf7-list-item-label {
    cursor: pointer;
    padding: 10px 5px;
    border: 1px solid #ccc;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pum .wpcf7-form-control-wrap {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pum .wpcf7-list-item label input:checked+.wpcf7-list-item-label {
    background-color: #feb300;
    color: #fff;
    border-color: #feb300;
}

.pum .wpcf7-list-item label input:checked+.wpcf7-list-item-label::before {
    border-color: #feb300;
}

.pum .btn_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pum button.pum-close.popmake-close {
    font-size: 0!important;
    text-indent: -9999px;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    right: -30px !important;
    top: -30px !important;
}

.pum button.pum-close.popmake-close::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
    transform: rotate(45deg) translatex(-50%);
}

.pum button.pum-close.popmake-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
    transform: rotate(-45deg) translatex(-50%);
}

.pum div.wpcf7-response-output {
    margin: 0;
}

.pum div.wpcf7 .ajax-loader {
    display: none;
}

.pum .wpcf7 .trx_mscf_progressbar li.trx_mscf_bullets.active {
    color: #feb300;
}

.pum .wpcf7 .trx_mscf_progressbar li.trx_mscf_bullets.active:after,
.pum .wpcf7 .trx_mscf_progressbar li.trx_mscf_bullets.active:before {
    background: #feb300;
    color: #fff;
}

.pum span.wpcf7-list-item-label::before {
    content: "";
    width: 100%;
    height: 125.5px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

.pum .wpcf7-list-item input[name="radio-square"]+span.wpcf7-list-item-label::before {
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.pum .wpcf7-list-item:nth-child(1) input[name="radio-square"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/area100.jpg);
}

.pum .wpcf7-list-item:nth-child(2) input[name="radio-square"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/area100-150.jpg);
}

.pum .wpcf7-list-item:nth-child(3) input[name="radio-square"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/area150-200.jpg);
}

.pum .wpcf7-list-item:nth-child(4) input[name="radio-square"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/area200.jpg);
}

.pum .wpcf7-list-item input[name="radio-level"]+span.wpcf7-list-item-label::before {
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.pum .wpcf7-list-item:nth-child(1) input[name="radio-level"]+span.wpcf7-list-item-label::before {
    background-image: url(//www.casaperfecta.md/wp-content/uploads/2018/07/1-1.jpg);
}

.pum .wpcf7-list-item:nth-child(2) input[name="radio-level"]+span.wpcf7-list-item-label::before {
    background-image: url(//www.casaperfecta.md/wp-content/uploads/2018/04/3-min.jpg);
}

.pum .wpcf7-list-item:nth-child(3) input[name="radio-level"]+span.wpcf7-list-item-label::before {
    background-image: url(//www.casaperfecta.md/wp-content/uploads/2019/01/1.jpg);
}

.pum .wpcf7-list-item:nth-child(4) input[name="radio-level"]+span.wpcf7-list-item-label::before {
    background-image: url(//www.casaperfecta.md/wp-content/uploads/2017/05/casa-castellano-oglinda3-830x460.jpg);
}

.pum .wpcf7-list-item input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}


/* .pum .wpcf7-list-item:nth-child(1) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/bioblock.jpg);
}

.pum .wpcf7-list-item:nth-child(2) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/brick.jpg);
}

.pum .wpcf7-list-item:nth-child(3) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/bca.jpg);
}

.pum .wpcf7-list-item:nth-child(4) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/placa-polistiren-2.jpg);
} */

.pum .wpcf7-list-item:nth-child(1) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/placa-polistiren-2.jpg);
}

.pum .wpcf7-list-item:nth-child(2) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/bca.jpg);
}

.pum .wpcf7-list-item:nth-child(3) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/03/brick.jpg);
}

.pum .wpcf7-list-item:nth-child(4) input[name="radio-material"]+span.wpcf7-list-item-label::before {
    background-image: url(/wp-content/uploads/2020/04/penoblock.jpg);
}

@media (max-width: 600px) {
    .pum .wpcf7-list-item {
        width: 46%;
    }
    .pum-container.popmake {
        top: 4px !important;
    }
    .pum button.pum-close.popmake-close {
        right: 0px !important;
        top: 0px !important;
    }
    .pum .wpcf7-form {
        padding: 0;
    }
    .pum .wpcf7 .trx_mscf_progressbar {
        top: 30px;
        position: relative;
    }
    form.wpcf7-form>p:empty {
        display: none;
    }
    div.trx_mscf_step.trx_mscf_active {
        margin-top: 20px;
    }
}


/* #endregion */

@media (max-width: 439px) {
    .container {
        width: 100% !important;
    }
}