/*
 * Modern footer treatment used only by the USCIS landing page.
 * The shared footer markup remains unchanged so menus, legal copy,
 * payment marks, social links, modals and tracking hooks are preserved.
 */

body.ts-uscis-page #footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 7% 0%, rgba(203, 38, 77, 0.14), transparent 27rem),
        radial-gradient(circle at 92% 12%, rgba(122, 196, 67, 0.09), transparent 25rem),
        linear-gradient(145deg, #294652 0%, #203944 48%, #182f39 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.ts-uscis-page #footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -210px;
    right: -145px;
    width: 430px;
    height: 430px;
    border: 62px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    pointer-events: none;
}

body.ts-uscis-page #footer > .container,
body.ts-uscis-page #copyRight > .container {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 0;
}

body.ts-uscis-page #footer > .container {
    padding-block: 54px 58px;
}

body.ts-uscis-page #footer .container > .row {
    display: grid;
    grid-template-columns: 1.18fr repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
}

body.ts-uscis-page #footer .container > .row + .row {
    padding-top: 22px !important;
}

body.ts-uscis-page #footer .container > .row > [class*="col-"] {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
}

body.ts-uscis-page #footer .container > .row:first-child > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    margin: 0 0 12px !important;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(10, 30, 39, 0.2);
}

body.ts-uscis-page #footer .container > .row:first-child > div:first-child img {
    display: block;
    width: min(570px, 100%) !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

body.ts-uscis-page #footer .footer-box {
    height: 100%;
    margin: 0;
    padding: 24px 23px 25px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
    body.ts-uscis-page #footer .footer-box:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.075);
        border-color: rgba(255, 255, 255, 0.17);
    }
}

body.ts-uscis-page #footer .footer-heading,
body.ts-uscis-page #footer .footer-heading a {
    margin: 0;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

body.ts-uscis-page #footer .section-seperator {
    position: relative;
    display: block;
    width: 31px;
    height: 3px;
    margin: 13px 0 0;
    background: #cb264d;
    border-radius: 999px;
}

body.ts-uscis-page #footer .section-seperator span {
    display: none;
}

body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(4) .footer-heading,
body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(4) .section-seperator,
body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(5) .footer-heading,
body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(5) .section-seperator {
    visibility: hidden;
}

body.ts-uscis-page #footer .footer-text {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.65;
}

body.ts-uscis-page #footer .footer-text p {
    color: inherit;
    line-height: inherit;
}

body.ts-uscis-page #footer .footer-text p + p {
    margin-top: 12px;
}

body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(2) .footer-text > p:nth-child(2),
body.ts-uscis-page #footer .container > .row:nth-child(2) > div:nth-child(4) .footer-text > p:nth-of-type(3),
body.ts-uscis-page #footer .container > .row:nth-child(2) > div:nth-child(4) .footer-text > p:nth-of-type(5) {
    height: 0;
    margin: 0;
    overflow: hidden;
    line-height: 0;
}

body.ts-uscis-page #footer .footer-text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ts-uscis-page #footer .footer-text ul li {
    margin: 0 0 5px;
    padding: 0;
    line-height: 1.45;
}

body.ts-uscis-page #footer .footer-text ul li a,
body.ts-uscis-page #footer .footer-text p a {
    display: inline;
    margin: 0;
    color: rgba(255, 255, 255, 0.79);
    font-size: inherit;
    line-height: inherit;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

body.ts-uscis-page #footer .footer-text ul li a:hover,
body.ts-uscis-page #footer .footer-text ul li a:focus-visible,
body.ts-uscis-page #footer .footer-text p a:hover,
body.ts-uscis-page #footer .footer-text p a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #e95879;
}

body.ts-uscis-page #footer .intouch p i.fa {
    color: #f05277;
}

body.ts-uscis-page #footer .intouch p a {
    padding-left: 4px;
}

body.ts-uscis-page #footer .intouch .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 19px;
}

body.ts-uscis-page #footer .intouch .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: none;
}

body.ts-uscis-page #footer .intouch .footer-social a:hover,
body.ts-uscis-page #footer .intouch .footer-social a:focus-visible {
    color: #ffffff;
    background: #cb264d;
    border-color: #cb264d;
    box-shadow: 0 8px 18px rgba(203, 38, 77, 0.25);
}

body.ts-uscis-page #footer .intouch .footer-social a i.fa {
    color: inherit;
    line-height: 1;
}

body.ts-uscis-page #copyRight {
    padding: 30px 0 34px;
    background: #10252e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.ts-uscis-page #copyRight .row {
    margin: 0;
}

body.ts-uscis-page #copyRight p {
    max-width: 1080px;
    margin: 0 auto 9px !important;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11.5px;
    line-height: 1.65;
}

body.ts-uscis-page #copyRight p:first-child {
    margin-bottom: 14px !important;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12.5px;
    font-weight: 600;
}

body.ts-uscis-page #copyRight p:last-child {
    margin-bottom: 0 !important;
}

body.ts-uscis-page #copyRight a {
    color: #f1849e;
    text-decoration: none;
    text-underline-offset: 3px;
}

body.ts-uscis-page #copyRight a:hover,
body.ts-uscis-page #copyRight a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 991px) {
    body.ts-uscis-page #footer .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ts-uscis-page #footer .container > .row:first-child > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body.ts-uscis-page #footer > .container,
    body.ts-uscis-page #copyRight > .container {
        width: min(1180px, calc(100% - 28px));
    }

    body.ts-uscis-page #footer > .container {
        padding-block: 38px 42px;
    }

    body.ts-uscis-page #footer .container > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    body.ts-uscis-page #footer .container > .row + .row {
        padding-top: 14px !important;
    }

    body.ts-uscis-page #footer .container > .row:first-child > div:first-child {
        grid-column: auto;
        min-height: 66px;
        margin-bottom: 4px !important;
        padding: 13px 16px;
        border-radius: 14px;
    }

    body.ts-uscis-page #footer .container > .row:first-child > div:first-child img {
        width: min(470px, 100%) !important;
    }

    body.ts-uscis-page #footer .footer-box {
        padding: 21px 20px 22px;
        border-radius: 14px;
    }

    body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(4) .footer-heading,
    body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(4) .section-seperator,
    body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(5) .footer-heading,
    body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(5) .section-seperator {
        display: none;
        visibility: visible;
    }

    body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(4) .footer-text,
    body.ts-uscis-page #footer .container > .row:first-child > div:nth-child(5) .footer-text {
        margin-top: 0;
    }

    body.ts-uscis-page #copyRight {
        padding: 26px 0 30px;
    }

    body.ts-uscis-page #copyRight p {
        font-size: 11px;
        line-height: 1.62;
    }
}
