﻿/* needed in order to reuse the modal popup*/

.modal-wrapper {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

    .modal-wrapper .show {
        display: block;
    }

.modal-container {
    left: 0;
    top: 0;
    position: relative;
    display: block;
    background-color: rgba(0,0,0,0.8);
    height: 100%;
    width: 100%;
    z-index: 100;
}

@media (max-width: 480px) {
    .modal-container {
        padding: 0;
        overflow: auto;
    }
}

.modal-content {
   /* -webkit-transition: 0.2s linear;
    transition: 0.2s linear;*/
    display: none;
    background-color: #fff;
    max-width: 680px;
    width: 100%;
    padding: 86px 60px 0;
    opacity: 0;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100% - 100px);
    overflow-y: auto;
}

@media only screen and (min-width: 768px) and (max-width: 961px) {
    .modal-content {
        max-width: calc(100% - 40px);
        left: 20px;
        transform: translate(0, -50%);
    }
}

.modal-content.show {
    opacity: 1;
    display: block;
}

.modal-content .close-wrap .close-txt {
    cursor: pointer;
    position: absolute;
    right: 35px;
    top: 34px;
    font-size: 21px;
    line-height: 22px;
    color: #005a73;
    padding: 10px 40px 10px 10px;
}

.modal-content .close-wrap.focus-visible .close-txt {
    outline: 2px solid #005a73;
}

.modal-content.contact h2 {
    font-size: 30px;
}

.modal-content .close {
    cursor: pointer;
    position: absolute;
    right: 35px;
    top: 44px;
    width: 22px;
    height: 22px;
    border: 2px solid #f2a91d;
    border-radius: 50%;
    padding: 10px;
    opacity: unset;
}

@media (max-width: 767px) {
    .modal-content {
        padding: 56px 20px 36px 20px;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        transform: none;
    }
    .modal-content .close {
        right: 20px;
        top: 15px;
    }
    .modal-content .close-wrap .close-txt {
        right: 18px;
        top: 6px;
    }
    .modal-content.contact h2 {
        font-size: 22px;
    }
}

.modal-content .close:before, .modal-content .close:after {
    display: block;
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #f2a91d;
    border-radius: 2px;
    -webkit-transition: all .3s ease-in;
    transition: all .3s ease-in;
}

.modal-content .close:before {
    top: 3px;
    left: 4px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    transform-origin: bottom left;
}

.modal-content .close:after {
    top: 1px;
    left: 15px;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
    -webkit-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    transform-origin: bottom left;
}

.modal-content .inner-text {
    float: left;
}

.modal-content .item {
    width: 100%;
}

    .modal-content .item p {
        font-size: 17px;
        line-height: 19px;
        color: #605f5f;
    }

.modal-content .btn-content {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 44px;
}

@media (max-width: 767px) {
    .modal-content .btn-content {
        text-align: center;
        position: static;
        left: 0;
        transform: translateX(0);
    }
}

.modal-content .btn {
    color: #b1b4b6;
    border: 2px solid #f2a91d;
    margin: 0 6px 10px;
    padding: 8px 54px;
    border-radius: 30px;
    line-height: unset;
    font-weight: bold;
}

@media (max-width: 1260px) {
    .modal-content .btn {
        padding: 8px 44px;
    }
}

.modal-content .btn:hover {
    color: #fff;
    background-color: #f2a91d;
}
/************************************************************************************************* text break *******/
.info-box {
    word-wrap: break-word;
}

    .info-box ul li .phone {
        font-size: 20px;
    }
/************************************************************************************************* submenu *******/
.main-nav .submenu {
    z-index: 10;
}
/************************************************************************************************* centered text on banner *******/
@media (max-width: 639px) {
    .group .banner figure {
        height: 374px;
    }
}
