@import url('/wp-content/themes/cqjdc-2025-block/assets/css/fonts.css');

#gotoTop {
    pointer-events: none;
    position: fixed;
    left: 0;
    z-index: 1000;
    bottom: 200px;
}

#gotoTop .optimal-content-width {
    padding: 0 25px;
}

#gotoTop .goto-top__button {
    color: #fff;
    background-color: #005aba;
    cursor: pointer;
    pointer-events: all;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    padding: 0;
    float: right;
    border: 2px solid #fff;
}

#gotoTop .goto-top__button>.fa {
    width: 100%;
    height: 100%;
    color: #ffffff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 20px;
}

#gotoTop .goto-top__button>.fa svg {
    fill: #fff;
    width: 20px;
    height: auto;
}

#footer {
    font-size: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: -20px;
}

#footer .footer__thick {
    background-color: #ff7800;
    min-height: 300px;
    color: #fff;
    position: relative;
    line-height: 150%;
}

#footer .footer__thick>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0;
}

#footer .footer__thick--round-image {
    pointer-events: none;
    position: absolute;
    width: 100%;
    top: -35px;
    z-index: 1;
}

#footer .footer__thick--round-image img {
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: bottom;
    object-position: bottom;
    width: 100%;
    height: 36px;
}

.optimal-content-width-footer {
    width: 1300px;
}

#footer .footer__thick-zone-1,
#footer .footer__thick-zone-2,
#footer .footer__thick-zone-3,
#footer .footer__thick-zone-4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px;
}

#footer .footer__thick-follow-us {
    font-family: "Nunito", sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

#footer .footer__thick-zone-1 *,
#footer .footer__thick-zone-2 *,
#footer .footer__thick-zone-3 *,
#footer .footer__thick-zone-4 * {
    color: #fff;
}

#footer form .input-text-gray input {
    color: #333 !important;
}

.form__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.form__row-single {
    flex: 1;
    min-width: 0;
}

.form__row-single input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form__column input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.right-aligned {
    text-align: right;
}

#footer .footer__thick-about,
#footer .footer__thick-contact {
    text-align: right;
}

#footer .footer__thick-zone-1 *,
#footer .footer__thick-zone-2 *,
#footer .footer__thick-zone-3 *,
#footer .footer__thick-zone-4 * {
    color: #fff;
}

#footer .footer__thick-zone-2 {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#footer .footer__thick-socials {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#footer .footer__thick-social:not(:last-child) {
    margin-right: 25px;
}

#footer .footer__thick-social {
    width: 72px;
    height: 72px;
    background: #005aba;
    border-radius: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 25px;
}

#footer .footer__thick-social img {
    display: block;
}

#footer .footer__thin {
    background-color: #0078c9;
    color: #fff;
    min-height: 120px;
    font-size: 16px;
}

#footer .footer__thin>.optimal-content-width {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#footer .footer__thin-copyright {
    text-align: center;
    margin: 5px 20px 5px 0;
}

#footer .footer__thin--menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

#footer .footer__thin--menu a:not(:last-child) {
    margin-right: 13px;
}

#footer .footer__thin--menu a {
    text-decoration: underline;
}

#footer a {
    color: #fff;
    text-decoration: none;
}

#footer .footer__thin--menu a:not(:last-child):after {
    content: "|";
    margin-left: 13px;
    color: #fff;
}

#footer .footer__thin-credit {
    text-align: center;
    margin: 5px 0;
}

#footer .footer__thin-credit span {
    margin-right: 10px;
}

#footer .footer__thin-credit img {
    max-width: 100px;
    vertical-align: middle;
    margin-bottom: 5px;
}

#footer .footer__thick-zone-1 {
    flex-basis: 640px;
}

#footer .footer__thick-zone-2 {
    flex-basis: 320px;
}

.form__row.form__row-single:last-child {
    margin-left: 30px;
}

/* Responsive Footer Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .optimal-content-width-footer {
        width: 100%;
        max-width: 100%;
    }

    #footer .footer__thick>div {
        flex-direction: column;
        gap: 20px;
    }

    #footer .footer__thick-zone-1,
    #footer .footer__thick-zone-2,
    #footer .footer__thick-zone-3,
    #footer .footer__thick-zone-4 {
        padding: 15px;
        text-align: center;
    }

    #footer .footer__thick-about,
    #footer .footer__thick-contact {
        text-align: center;
    }

    #footer .footer__thick-socials {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    #footer .footer__thick-social {
        margin-bottom: 15px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    #footer .footer__thick {
        min-height: auto;
        padding: 30px 0;
    }

    .form__row-single input {
        width: 100%;
        box-sizing: border-box;
    }

    .form__column input {
        width: 100%;
        box-sizing: border-box;
    }

    #footer .footer__thick-zone-1,
    #footer .footer__thick-zone-2,
    #footer .footer__thick-zone-3,
    #footer .footer__thick-zone-4 {
        padding: 10px 70px;
    }

    #footer .footer__thick-follow-us {
        margin-bottom: 15px;
        text-align: center;
    }

    #footer .footer__thick-social {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    #footer .footer__thin {
        min-height: auto;
        padding: 20px 0;
    }

    #footer .footer__thin>.optimal-content-width {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    #footer .footer__thin-copyright {
        margin: 0;
    }

    #footer .footer__thin--menu {
        flex-direction: column;
        gap: 10px;
    }

    #footer .footer__thin--menu a:not(:last-child):after {
        content: "";
        margin: 0;
    }

    #footer .footer__thick-zone-1 {
        flex-basis: 100%;
    }

    #footer .footer__thick-zone-2 {
        flex-basis: 100%;
    }

    #footer .footer__thick-social:not(:last-child) {
        margin-right: 0px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    #footer .footer__thick {
        padding: 20px 0;
    }

    #footer .footer__thick-zone-1,
    #footer .footer__thick-zone-2,
    #footer .footer__thick-zone-3,
    #footer .footer__thick-zone-4 {
        padding: 5px 20px;
    }

    #footer .footer__thick-social {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    #footer .footer__thin {
        padding: 15px 0;
        font-size: 14px;
    }

    #footer .footer__thin-credit img {
        max-width: 80px;
    }

    /* Newsletter form mobile styling */
    .form__row-single input,
    .form__column input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 12px;
    }

    .form__row {
        flex-direction: column;
        gap: 10px;
    }

    .form__row-single {
        flex: none;
        width: 100%;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    #footer .footer__thick {
        padding: 15px 0;
    }

    #footer .footer__thick-zone-1,
    #footer .footer__thick-zone-2,
    #footer .footer__thick-zone-3,
    #footer .footer__thick-zone-4 {
        padding: 5px 20px;
    }

    #footer .footer__thick-social {
        width: 45px;
        height: 45px;
        margin-bottom: 5px;
    }

    /*  #footer .footer__thick-social:not(:last-child) {
        margin-right: 10px;
    } */

    #footer .footer__thin {
        padding: 10px 0;
        font-size: 12px;
    }

    #footer .footer__thin-credit img {
        max-width: 60px;
    }

    #footer .footer__thin-copyright {
        font-size: 12px;
    }
}

/* Short screens (like Nest Hub) */
@media (max-height: 800px) {
    #footer .footer__thick {
        min-height: auto;
        padding: 20px 0;
    }

    #footer .footer__thick-social {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    #footer .footer__thin {
        min-height: auto;
        padding: 15px 0;
    }
}