footer {
    position: relative;
    background-image: url(../images/bg-footer.jpg);
    background-size: cover;
    background-position: center;
}

footer .box-f {
    background: rgba(0, 0, 0, .8);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .container {
    padding: 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

footer .box {
    flex-basis: 31%;
}

footer .box h2 {
    margin-bottom: 15px;
}

footer .box .item {
    padding: 10px 0;
}

footer .box .item:last-child {
    padding-bottom: 0;
}

footer .box .item i {
    margin-right: 2px;
    color: var(--white);
}

footer .box h2 {
    color: var(--red);
}

footer .box .item span {
    color: var(--white);
}

footer .box .item a {
    text-transform: capitalize;
    color: var(--white);
}

footer .box .item a:hover {
    color: var(--red);
}

footer .sub-footer {
    text-align: center;
    padding: 10px 0;
    background: var(--black);
}

footer .sub-footer .box {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .sub-footer .box .icon {
    margin: 0 4px;
}

footer .sub-footer a {
    font-weight: bold;
    color: var(--white);
}

footer .sub-footer a:hover {
    text-decoration: underline;
}

footer .sub-footer p {
    color: var(--white);
}

footer .sub-footer span {
    color: var(--white);
}

/*nút gọi điện*/
.contact-box {
    position: fixed;
    bottom: 5px;
    right: 0;
    z-index: 100;
}

@keyframes img-phone {
    0% {
        transform: rotate(0) scale(1) skew(1deg);
    }
    10% {
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
        transform: rotate(0) scale(1) skew(1deg);
    }
    100% {
        transform: rotate(0) scale(1) skew(1deg);
    }
}

.kh-phone {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

@keyframes zoomEffect {
    0% {
        transform: scale(.9)
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent
    }
    100% {
        transform: scale(.9);
        box-shadow: 0 0 0 0 transparent
    }
}

.phone-box {
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    position: absolute;
    background-color: red;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all .5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: zoomEffect 1.3s infinite;
    animation: zoomEffect 1.3s infinite;
    opacity: .7;
    box-shadow: 0 0 0 0 red;
}

.img-phone {
    background-color: red;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    -webkit-animation: img-phone 1s infinite ease-in-out;
    animation: img-phone 1s infinite ease-in-out;
}

.img-phone a {
    display: block;
    line-height: 37px;
}

.img-phone img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

/*chat zalo*/
.kh-zalo {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

.kh-zalo .phone-box {
    box-shadow: 0 0 0 0 #2196f3;
    background-color: rgba(33, 150, 243, .9);
}

.kh-zalo .img-phone {
    background-color: #2196f3;
}

/*chat messenger fb*/
.kh-fbm {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

.kh-fbm .phone-box {
    box-shadow: 0 0 0 0 #2196f3;
    background-color: rgba(33, 150, 243, .9);
}

.kh-fbm .img-phone {
    background-color: #2196f3;
}

.kh-fbm .img-phone img {
    max-height: 45px;
    max-width: 40px;
}

@media only screen and (max-width: 1200px) {
    footer .container {
        padding: 20px 15px;
    }
}

@media only screen and (max-width: 768px) {
    footer .container {
        flex-wrap: wrap;
    }

    footer .box-info {
        flex-basis: 100%;
        margin-bottom: 25px;
    }

    footer .box-page {
        flex-basis: 49%;
    }

    footer .box h2 {
        margin-bottom: 10px;
    }

    footer .sub-footer .box {
        flex-direction: column;
    }

    footer .sub-footer .box .icon {
        display: none;
    }

    footer .sub-footer .box p {
        margin-bottom: 5px;
    }

    footer .sub-footer .box p:last-child {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 576px) {
    footer .container {
        padding: 15px 10px 0;
    }

    footer .box-page {
        flex-basis: 100%;
    }

    footer .box-map {
        margin-top: 20px;
    }

    footer .box-map iframe {
        height: 200px;
    }
}

@media only screen and (max-width: 480px) {
    /*liên hệ khách hàng*/
    .contact-box {
        right: 0;
    }

    .kh-zalo, .kh-phone, .kh-fbm {
        height: 75px;
    }
}

@media only screen and (max-width: 365px) {
    footer .sub-footer .text-b {
        display: flex;
        flex-direction: column;
    }

    footer .sub-footer .text-b .icon-s {
        display: none;
    }

    footer .sub-footer .text-b span:first-child {
        margin-bottom: 2px;
    }

    footer .sub-footer .box p {
        margin-bottom: 2px;
    }

    footer .sub-footer a {
        display: block;
        font-weight: bold;
        color: var(--white);
    }
}

