/* =========================================
   FOOTER
========================================= */

.site-footer {
    width: 100%;
    background: #242f67;
    color: #ffffff;

    border-radius: 0 0 4px 4px;
}


/* MAIN FOOTER */

.footer-container {
    max-width: 1400px;
    margin: 0 auto;

    padding: 48px 24px 30px;

    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    column-gap: 70px;
}


/* COLUMNS */

.footer-column h3 {
    margin: 0 0 14px;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.45;
}

.footer-column p {
    margin: 0 0 12px;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.45;
}


/* LINKS */

.footer-column a {
    display: block;

    margin-bottom: 7px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.35;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    color: #c73346;
}


/* BOTTOM */

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;

    padding: 22px 24px 38px;

    /* border-top: 1px solid rgba(255, 255, 255, 0.8); */

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.footer-social a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    /* border: 1px solid rgba(255, 255, 255, 0.7); */
    border-radius: 50%;

    color: #ffffff;

    font-size: 17px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.footer-social a:hover {
    /* background: #ffffff; */
    color: #ffffff;
    opacity: 0.5;
    transform: translateY(-3px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;

        column-gap: 40px;
        row-gap: 35px;
    }

    .footer-company {
        grid-column: 1 / -1;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .footer-container {
        grid-template-columns: 1fr;

        padding: 35px 22px 25px;

        row-gap: 28px;
    }

    .footer-company {
        grid-column: auto;
    }

    .footer-column h3 {
        font-size: 18px;
    }

    .footer-column p,
    .footer-column a {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 20px 20px 30px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

}

/* =========================================
   CHAT BUTTON
========================================= */

#chat-btn {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 62px;
    height: 62px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: #242f67;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 999999;

    font-size: 28px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#chat-btn:hover {
    transform: scale(1.08);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* =========================================
   CHAT WIDGET
========================================= */

.chat-widget {
    position: fixed;

    right: 25px;
    bottom: 100px;

    width: 360px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.22);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.95);

    transform-origin: bottom right;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


/* OPEN */

.chat-widget.active {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================
   CHAT HEADER
========================================= */

.chat-header {
    min-height: 65px;

    padding: 12px 15px;

    background: #242f67;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    display: flex;
    align-items: center;

    gap: 10px;
}

.chat-title img {
    width: 38px;
    height: 38px;

    object-fit: contain;

    background: #ffffff;
    border-radius: 50%;
}

.chat-title span {
    font-size: 16px;
    font-weight: 700;
}


.close-btn {
    width: 34px;
    height: 34px;

    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.7;
}


/* =========================================
   STATUS
========================================= */

.chat-status {
    padding: 8px 15px;

    font-size: 12px;

    color: #555;

    border-bottom: 1px solid #eeeeee;
}

.online-dot {
    display: inline-block;

    width: 8px;
    height: 8px;

    margin-right: 5px;

    border-radius: 50%;

    background: #2dbd59;
}


/* =========================================
   CHAT BODY
========================================= */

.chat-body {
    height: 260px;

    padding: 15px;

    overflow-y: auto;

    background: #f6f8fc;
}

.message {
    max-width: 90%;

    padding: 12px 14px;

    border-radius: 14px;

    font-size: 13px;

    line-height: 1.6;
}

.message.support {
    background: #ffffff;

    color: #333;

    border-top-left-radius: 4px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);
}


/* =========================================
   CHAT FOOTER
========================================= */

.chat-footer {
    padding: 12px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;
}


/* QUICK CONTACT */

.quick-contact {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    margin-bottom: 10px;
}

.quick-contact button {
    height: 36px;

    border: 1px solid #242f67;

    border-radius: 8px;

    background: #ffffff;

    color: #242f67;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.quick-contact button:hover {
    background: #242f67;

    color: #ffffff;
}


/* =========================================
   INPUT
========================================= */

.chat-input-row {
    display: flex;

    gap: 8px;
}

.chat-input-row input {
    flex: 1;

    min-width: 0;

    height: 40px;

    padding: 0 12px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    outline: none;

    font-size: 13px;
}

.chat-input-row input:focus {
    border-color: #242f67;
}


.send-btn {
    width: 42px;
    height: 40px;

    border: none;

    border-radius: 8px;

    background: #242f67;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.send-btn:hover {
    background: #1c2554;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    #chat-btn {
        right: 18px;
        bottom: 18px;

        width: 56px;
        height: 56px;
    }

    #chat-btn img {
        width: 34px;
        height: 34px;
    }

    .chat-widget {
        right: 15px;
        bottom: 85px;

        width: calc(100vw - 30px);
    }

}