@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.eot');
    src: local('Roboto'), local('Roboto-Regular'), url('../fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/Roboto-Regular.woff') format('woff'), url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

.hero_block {
    padding-top: 0;
    padding-left: 15px;
    padding-right: 15px;
}

    .hero_block .img_wrap {
        text-align: right;
        padding-right: 52px;
    }

        .hero_block .img_wrap img {
            max-width: 100%;
        }

    .hero_block .text_wrap {
        padding-top: 18px;
        padding-left: 12px;
        max-width: 570px;
        width: 100%;
    }

        .hero_block .text_wrap .page_title {
            color: #000000;
            font-size: 64px;
            font-family: 'Lato', sans-serif;
            font-weight: 600;
        }

        .hero_block .text_wrap .result_title {
            color: #000000;
            font-size: 36px;
            font-family: 'Lato', sans-serif;
            font-weight: 600;
            padding-top: 6px;
            margin-bottom: 20px;
        }

        .hero_block .text_wrap .btn.btn-blue {
            color: #ffffff;
            font-size: 16px;
            background-color: #4DA2C1;
            max-width: 268px;
            width: 100%;
            padding: 8px 11px 7px 10px;
            border-radius: 3px;
        }

.description_columns {
    padding: 0 15px 50px;
}

    .description_columns .text {
        column-count: 2;
        column-gap: 40px;
    }

        .description_columns .text p {
            font-family: 'Lato', 'sans-serif';
            color: #333333;
            line-height: 21px;
            margin-bottom: 21px;
        }

        .description_columns .text.left_column {
            padding-top: 3px;
        }

.form_steps {
    display: inline-flex;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .form_steps .step-item {
        padding-right: 2px;
        margin-bottom: 21px;
    }

        .form_steps .step-item:hover {
            cursor: pointer;
        }

        .form_steps .step-item span {
            color: #6c757d;
            font-size: 14px;
            padding: 8px 11px;
        }

        .form_steps .step-item.previous-question span {
            color: #000000;
        }

        .form_steps .step-item:hover span {
            text-decoration: underline;
        }

        .form_steps .step-item.active span.current-item {
            color: #ffffff;
            background-color: #2C96B9;
            border-radius: 3px;
        }

        .form_steps .step-item.active:hover span, .form_steps .step-item.next-question span {
            color: lightgray;
        }

        .form_steps .step-item.active:hover span, .form_steps .step-item.next-question:hover span {
            text-decoration: none;
            cursor: default;
        }
        /*.form_steps .step-item.next-question:hover*/
        .form_steps .step-item + .step-item::before {
            content: '>';
            display: inline-block;
            padding-right: 3px;
            color: #6c757d;
            font-family: 'Lato',sans-serif;
            font-weight: 500;
        }

.choice_mattress .title .form_title {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.choice_tiles {
    padding-top: 20px;
}

    .choice_tiles .choice_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

        .choice_tiles .choice_list li {
            height: 200px;
            max-width: 160px;
            width: 100%;
            background: #fff;
            box-shadow: 0px 6px 20px rgba(44, 150, 185, 0.15);
            padding: 10px 10px 3px;
            transition: .2s ease-in-out;
            margin: 0 20px 30px;
        }

            .choice_tiles .choice_list li:hover {
                box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
            }

        .choice_tiles .choice_list .choice_img {
            text-align: center;
            cursor: pointer;
        }

            .choice_tiles .choice_list .choice_img img {
                max-width: 140px;
            }

input[type="checkbox"][id^="choice_checkbox"] {
    display: none;
}

.choice_tiles .choice_list .choice_img label {
    cursor: pointer;
    margin: 0;
}

.choice_tiles .choice_list .choice_info {
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    padding-top: 10px;
}

.icon_info {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.popup_text {
    visibility: hidden;
    width: 180px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 8px 4px 8px;
    position: absolute;
    z-index: 199;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
}

    .popup_text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #555 transparent transparent transparent;
    }

    .popup_text.show {
        visibility: visible;
        -webkit-animation: fadeIn 1s;
        animation: fadeIn 1s;
    }

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.result_block {
    margin-bottom: 60px;
    padding: 0 15px;
}

    .result_block .result_main_title {
        font-size: 24px;
        font-weight: 700;
    }

.more_padding {
    margin-bottom: 40px;
}

.prod_result_wrap {
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

    .prod_result_wrap .outer-wrap {
        padding: 0 18px;
    }

        .prod_result_wrap .outer-wrap button.btn {
            font-size: 16px;
        }

.table_result {
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

    .table_result table svg {
        margin-top: -3px;
    }

    .table_result table {
        max-width: 560px;
        width: 100%;
        font-family: 'Lato', sans-serif;
        font-weight: 400;
        border-style: hidden;
        box-shadow: 0 0 0 1px #666;
        border-radius: 4px;
    }

        .table_result table tr, .table_result table td {
            border: 1px solid #575757;
        }

        .table_result table thead tr {
            background-color: #575757;
            text-align: center;
            border: none;
        }

            .table_result table thead tr th {
                color: #ffffff;
                padding: 8px;
            }

        .table_result table td {
            padding: 10px;
            position: relative;
        }

.result_answer_title {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}

.repeat_again {
    margin-top: 20px;
}

.result_block .btn-again {
    max-width: 228px;
    width: 100%;
    text-align: center;
}

.additional_questions {
    max-width: 1382px;
    width: 100%;
    margin: 0 auto;
    border-top: 1px solid #CDD2D4;
    padding-top: 32px;
    padding-bottom: 0;
}

    .additional_questions .contact_wrap {
        display: flex;
        flex-wrap: wrap;
        padding: 54px 15px 15px;
        justify-content: space-between;
    }

        .additional_questions .contact_wrap .contact_item {
            padding: 0 25px;
            margin-bottom: 30px;
        }

            .additional_questions .contact_wrap .contact_item .contact_icon {
                padding-right: 20px;
            }

            .additional_questions .contact_wrap .contact_item a {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
            }

            .additional_questions .contact_wrap .contact_item span {
                display: block;
                font-size: 16px;
            }

            .additional_questions .contact_wrap .contact_item .item_title {
                text-transform: uppercase;
                font-size: 24px;
            }

            .additional_questions .contact_wrap .contact_item .item_subtitle {
                font-size: 16px;
            }

            .additional_questions .contact_wrap .contact_item .phone_text {
                color: #4DA2C1;
            }

.modal_open {
    display: none;
}

    .modal_open.active {
        display: block;
    }

        .modal_open.active .form_wrapper {
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 121;
            top: 50%;
            position: fixed;
            max-width: 310px;
            width: 100%;
            background-color: #fff;
            padding: 15px 30px;
        }

.modal_wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    transition: opacity 0.15s linear;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}

.modal_open .form_wrapper .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

    .modal_open .form_wrapper .form-group label {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .modal_open .form_wrapper .form-group input {
        border: 1px solid #767c7e;
        border-radius: 5px;
        font-size: 16px;
        padding: 5px 15px 6px;
    }

    .modal_open .form_wrapper .form-group textarea {
        resize: none;
        height: 96px;
        border: 1px solid #767c7e;
        border-radius: 5px;
        padding: 5px 15px;
        width: 100%;
    }

.modal_open .form_wrapper .form_title {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    line-height: 36px;
    text-align: center;
    text-transform: uppercase;
}

.modal_open .form_wrapper .close {
    position: absolute;
    top: 13px;
    left: auto;
    right: 18px;
}

    .modal_open .form_wrapper .close img {
        width: 20px;
        height: 20px;
    }

.modal_open .form_wrapper .btn-blue {
    max-width: 250px;
    width: 100%;
}

.modal_open.callback .form_wrapper .form_actions {
    padding-top: 12px;
}

.choice_mattress .prod_result_wrap .prod-wrap {
    width: auto;
}

.choice_mattress .prod_result_wrap .outer-wrapp {
    height: auto;
}

    .choice_mattress .prod_result_wrap .outer-wrapp .item-wrap {
        display: none;
    }

    .choice_mattress .prod_result_wrap .outer-wrapp .item-wrap-full {
        top: auto;
        opacity: 1;
        z-index: 10;
        position: relative;
        box-shadow: none;
    }

#related-products .filter .btn-outline-info:not(:disabled):not(.disabled).active, .btn-outline-info:not(:disabled):not(.disabled):active, .show > .btn-outline-info.dropdown-toggle {
    background-color: #2c96b9;
    border-color: #2c96b9;
    color: #ffffff;
}

#related-products .filter .btn-outline-info {
    color: #2c96b9;
    border-color: #2c96b9;
}

    #related-products .filter .btn-outline-info:hover {
        color: #ffffff;
        background-color: #2c96b9;
    }

.choice_mattress .prod_result_wrap .outer-wrapp .item-wrap-full .btn-group-sm > .btn, .choice_mattress .prod_result_wrap .outer-wrapp .item-wrap-full .btn-sm {
    font-size: 16px;
}

.html-topic-page .page.topic-page .page-title h1 {
    margin-bottom: 0;
}

.table_result .popup_text {
    margin-left: -20px;
}

@media (max-width: 1199px) {
    .hero_block .img_wrap {
        padding-right: 0;
    }

    .hero_block .text_wrap {
        padding-left: 0;
    }

        .hero_block .text_wrap .page_title {
            font-size: 3rem;
        }

        .hero_block .text_wrap .result_title {
            font-size: 28px;
        }

    .description_columns {
        padding-top: 30px;
    }

        .description_columns .text.left_column {
            padding-left: 0;
            padding-right: 0;
            column-count: 1;
        }
}

@media (max-width: 992px) {
    .choice_mattress .prod_result_wrap .outer-wrapp .item-wrap-full {
        display: block;
    }
}

@media (max-width: 991px) {
    .form_wrap {
        padding-left: 15px;
        padding-right: 15px;
    }

    .form_steps_wrap {
        position: relative;
        overflow-x: auto;
        width: 100%;
    }

    .form_steps {
        flex-wrap: nowrap;
        padding: 10px 0;
    }

        .form_steps .step-item {
            white-space: nowrap;
        }

    .prod_result_wrap .outer-wrap {
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .choice_tiles .choice_list li {
        margin-left: 0;
        position: relative;
        box-shadow: 0px 6px 20px rgba(44, 150, 185, 0.15);
    }

    .additional_questions .contact_wrap .contact_item .contact_icon svg {
        max-width: 60px;
    }

    .choice_tiles .choice_list li:hover {
        box-shadow: 0px 6px 20px rgba(44, 150, 185, 0.15);
    }
}

@media (max-width: 575px) {
    .hero_block {
        padding-top: 0;
    }

        .hero_block .text_wrap {
            text-align: center;
        }

            .hero_block .text_wrap .page_title {
                font-size: 36px;
                font-weight: 700;
                text-align: center;
            }

            .hero_block .text_wrap .result_title {
                font-size: 16px;
            }

    .form_wrap {
        padding-left: 0;
        padding-right: 0;
    }

    .choice_tiles {
        margin-left: -15px;
        margin-right: -15px;
    }

        .choice_tiles .choice_list li {
            max-width: 160px;
        }

    .additional_questions .contact_wrap {
        justify-content: center;
    }

        .additional_questions .contact_wrap .contact_item .contact_icon {
            padding-right: 0;
        }

        .additional_questions .contact_wrap .contact_item a {
            justify-content: center;
            text-align: center;
            flex-direction: column;
        }

    .html-topic-page .page.topic-page .page-title h1 {
        margin-bottom: 0;
    }
}

@media (max-width: 450px) {
    .choice_tiles .choice_list li:nth-child(odd) {
        margin-left: 0;
    }

    .choice_tiles .choice_list li:nth-child(even) {
        margin-right: 0;
    }

    .choice_tiles .choice_list li {
        padding: 10px 5px 3px;
        margin-left: 5px;
        margin-right: 5px;
    }
}

@media (min-width: 360px) and (max-width: 385px) {
    .choice_tiles .choice_list {
        justify-content: center;
    }
}

@media (max-width: 359px) {
    .choice_tiles .choice_list {
        justify-content: center;
    }
}

@media (min-width: 320px) and (max-width: 359px) {
    .choice_tiles .choice_list li {
        max-width: 160px;
    }
}
