.page-footer {
    position: relative;
    background-color: #0c2340;
    padding: 35px 0 0;
    margin-top: -1px;
}

.newsletter-form {
    position: relative;
    background-color: #0c2340;
    padding-top: 35px;
    margin-top: 0;
}

.footer-newsletter-content {
    text-align: center;
    color: #fff;
}

.footer-newsletter-content h2 {
    font-size: 25px;
    color: #fff;
    margin: 0 0 3px;
}

.footer-newsletter-content p {
    margin: 0 0 10px;
    font-family: "Jost", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1em;
}

.footer-newsletter-content h2:after {
    display: none;
}

.footer-newsletter {
    position: relative;
    padding: 0 0 25px;
}

.footer-newsletter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        rgb(12, 35, 64) 0%,
        rgb(130, 64, 136) 32.14%,
        rgb(250, 158, 32) 76.05%,
        rgb(254, 203, 5) 100%
    );
    z-index: 2;
}

.footer-newsletter-input {
    position: relative;
}

.footer-newsletter-input form {
    position: relative;
    overflow: unset;
}

.footer-newsletter-input input {
    width: 100%;
    display: block;
    padding: 5px 10px 5px 25px;
    background-color: #fff;
    border: none;
    border-radius: 50px;
    height: 43px;
    font-size: 16px;
    color: #5a5d69;
    font-weight: 400;
}

.footer-newsletter-input input:focus {
    border: none;
}

.footer-newsletter-input p {
    position: absolute;
    left: 15px;
    top: 7px;
    color: #211b12;
    font-size: 18px;
    font-family: "Jost", sans-serif;
    margin: 0;
    font-weight: 500;
    z-index: 1;
}

.footer-newsletter-input .wpcf7 form .wpcf7-response-output {
    display: none;
}

.footer-newsletter-input .wpcf7 form .wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

.footer-newsletter-input .wpcf7 form label.error,
.footer-newsletter-input .wpcf7 form span.wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    color: #f00;
    font-size: 14px;
    font-weight: 400;
    width: max-content;
    margin-top: 5px;
}

.footer-newsletter-input .wpcf7 form span.wpcf7-not-valid-tip::after {
    display: none;
}

.footer-newsletter-input form .wpcf7-spinner {
    position: absolute;
    top: 9px;
    right: 230px;
    margin: 0;
}

.footer-logo {
    text-align: center;
}

.footer-logo a {
    max-width: 165px;
    display: block;
    margin: 0 auto 20px;
    text-decoration: none;
    background: none;
}

.footer-logo a:hover {
    background: none;
}

.footer-newsletter-input form label {
    display: none;
}

.footer-newsletter-input .btn {
    margin: 15px auto 0;
    display: table;
    padding: 17px 40px 17px 20px;
}

.footer-newsletter-input .btn::before {
    font-size: 30px;
}

.footer-social ul {
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0 10px;
    align-items: center;
    justify-content: center;
}

.sidebar-social ul {
    padding: 0;
    margin: 0;
}

.footer-social ul li,
.sidebar-social ul li {
    padding: 0;
    margin: 0;
}

.footer-social ul li:before,
.sidebar-social ul li:before {
    display: none;
}

.footer-social ul li a,
.sidebar-social ul li a {
    font-size: 28px;
    color: #ffcb05;
    position: relative;
    background: none;
}

.footer-social ul li a i,
.sidebar-social ul li a i {
    position: relative;
    z-index: 1;
}

.footer-social ul li a i:after,
.sidebar-social ul li a i:after {
    content: "";
    width: 27px;
    height: 27px;
    position: absolute;
    left: 14px;
    top: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    background-color: transparent;
    z-index: -1;
}

.footer-social-icon__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    filter: brightness(0) saturate(100%) invert(85%) sepia(24%) saturate(2315%) hue-rotate(349deg) brightness(99%)
        contrast(108%);
}

.footer-address p {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    position: relative;
    padding: 0 0 0 30px;
    margin: 0 0 10px;
}

.footer-address p i {
    position: absolute;
    left: 0;
    top: 17px;
    color: #ffcb05;
    font-size: 20px;
}

.footer-address a i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #ffcb05;
    font-size: 20px;
}

.footer-address a i.icon-warning {
    top: 9px;
}

.footer-address a {
    color: #fff;
    font-weight: 400;
    position: relative;
    padding-left: 30px;
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    background: none;
}

.footer-address a span.footer-emergency-label {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: -2px;
    color: #ffcb05;
}

.footer-address a span.footer-emergency-phone {
    font-size: 18px;
    font-weight: bold;
    padding: 4px 0 0;
    display: block;
}

.footer-address .btn {
    padding-left: 0;
    font-weight: 600;
    display: block;
    width: max-content;
    background: none;
}

.footer-address .btn::after {
    color: #ffffff;
}

.footer-address {
    display: block;
    width: max-content;
    margin: 12px 0 0;
}

body.home .footer-address {
    .btn {
        margin-inline: 0;
    }
}

@media (max-width: 767px) {
    .footer-address {
        margin-inline: auto;
    }
}

.footer-link-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-link ul {
    padding: 0;
    margin: 0;
}

.footer-link ul li {
    padding: 0;
    margin: 0 0 8px;
}

.footer-link ul li:before {
    display: none;
}

.footer-link ul li a {
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    background: none;
}

.footer-link {
    margin: 25px 0 0;
}

.footer-bottom {
    background-color: #57325a;
    padding: 18px 0;
    margin: 26px 0 0;
}

.back-to-top {
    text-align: center;
    margin: 0 0 10px;
}

.back-to-top a {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    padding-right: 28px;
    background: none;
    position: relative;
}

.back-to-top a:after {
    content: "\e908";
    font-family: "alcor";
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 14px;
    font-weight: normal;
    transform: translate(0, -50%);
    width: auto;
    height: auto;
    background: transparent;
    z-index: 1;
}

.footer-bottom-wrapper ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 26px;
    align-items: center;
}

.footer-bottom-wrapper ul li {
    padding: 0;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.075em;
    color: #fff;
    font-weight: 400;
}

.footer-bottom-wrapper ul li:before {
    display: none;
}

.footer-bottom-wrapper ul li a {
    font-size: 15px;
    color: #fff;
    background: none;
    letter-spacing: 0.075em;
    font-weight: 400;
}

.sidebar-social {
    position: fixed;
    transform: translate(0, -50%);
    top: 50%;
    right: 20px;
    z-index: 9999;
}

@media (max-width: 767px) {
    .footer-newsletter-input .wpcf7-submit.btn {
        background: transparent !important;
        color: #fff;
        border: 2px solid #fff;
        float: none;
    }
}

@media (min-width: 768px) {
    .footer-newsletter-content h2 {
        font-size: 33px;
    }

    .footer-newsletter-content p {
        margin: 0 0 16px;
    }

    .footer-newsletter-input input {
        padding: 12px 30px 12px 25px;
        height: 52px;
    }

    .footer-newsletter-input p {
        left: 16px;
        top: 14px;
        font-size: 16px;
    }

    .footer-newsletter-input .btn {
        margin: 0;
        position: absolute;
        right: 0;
        top: -1px;
        width: 169px;
        font-size: 16px;
    }

    .footer-newsletter {
        padding: 0 0 30px;
    }

    .footer-newsletter-input form label.error {
        position: absolute;
        top: 100%;
        margin: 0;
    }

    .footer-newsletter-input form .wpcf7-spinner {
        top: 50%;
        transform: translateY(-50%);
        right: 230px;
    }

    .footer-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-address {
        width: 50%;
        margin: 0;
        padding: 0 0 0 16px;
    }

    .footer-address p {
        font-size: 18px;
        padding-left: 35px;
        margin: 0 0 15px;
    }

    .footer-address a {
        font-size: 18px;
        margin: 0 0 16px;
        padding-left: 35px;
    }

    .footer-address a i {
        font-size: 25px;
    }

    .footer-address p .btn {
        margin: -4px 0 0 0;
    }

    .footer-address p i {
        font-size: 25px;
    }

    .footer-logo a {
        max-width: 258px;
        margin: 0 0 18px;
    }

    .footer-social ul {
        justify-content: flex-start;
    }

    .footer-link {
        width: calc(50% - 16px);
        margin: 25px 16px 0;
    }

    .footer-link ul {
        column-gap: 26px;
    }

    .footer-link ul li {
        margin: 0 0 14px;
    }

    .footer-link ul li a {
        font-size: 18px;
    }

    .footer-bottom {
        padding: 22px 0;
        margin: 34px 0 0;
    }

    .footer-link-wrapper {
        width: calc(100% + 32px);
        margin: 0 -16px;
    }

    .footer-address .btn:before {
        color: #ffcb05;
        opacity: 0.3;
    }
}

@media (min-width: 1200px) {
    .footer-address {
        margin-top: 0;
        width: auto;
        padding: 0;
    }

    .footer-link {
        width: auto;
        margin: 0;
    }

    .footer-link-wrapper {
        width: 441px;
        margin: 0;
    }

    .footer-bottom-wrapper {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .back-to-top {
        margin: 0;
    }

    .footer-bottom {
        padding: 21px 0;
        margin: 34px 0 0;
    }

    .footer-bottom-wrapper ul {
        gap: 0 76px;
    }

    .back-to-top a {
        padding-right: 24px;
    }

    .footer-address p {
        margin: 0 0 9px;
    }

    .footer-address p .btn {
        margin: -7px 0 0 0;
    }

    .footer-social ul {
        justify-content: center;
    }

    .footer-logo a {
        max-width: 250px;
        margin: 0 0 25px;
    }

    .footer-logo a:hover {
        text-decoration: none;
    }

    .footer-address p .btn:hover,
    .footer-address p .btn:hover:after,
    .footer-address a:hover,
    .footer-link ul li a:hover,
    .back-to-top a:hover,
    .footer-bottom-wrapper ul li a:hover {
        color: #ffcb05;
    }

    .footer-social ul li a:hover {
        color: #fff;
    }

    .sidebar-social ul li a:hover {
        color: #0c2340;
    }

    .newsletter-form {
        padding-top: 50px;
    }

    .footer-newsletter {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0 32px;
        padding: 0 0 35px;
    }

    .footer-newsletter-content {
        width: 400px;
        text-align: left;
    }

    .footer-newsletter-input {
        width: calc(100% - 400px);
    }

    .footer-newsletter-content h2 {
        font-size: 39px;
    }

    .footer-newsletter-content p {
        margin: 0;
    }

    .page-footer {
        padding: 50px 0 0;
    }
}

/* Newsletter Flyout */

.footer-newsletter-flyout {
    position: fixed;
    bottom: 86px;
    left: -345px;
    width: 500px;
    height: auto;
    transition: all 0.6s ease-in-out;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}

.footer-newsletter-flyout-image {
    width: 100px;
    height: auto;
    display: block;
}

.footer-newsletter-flyout-inner {
    background-color: #fff;
    border-radius: 0 15px 15px 0;
    padding: 35px 35px 25px;
    box-shadow: 0px 5px 25px rgba(12, 35, 64, 0.1);
    position: relative;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .footer-newsletter-flyout {
        width: 100%;
        top: 0;
        left: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 20px;
    }

    .footer-newsletter-flyout-inner {
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.footer-newsletter-flyout:not(.is-hidden) {
    left: 0;
    opacity: 1;
    visibility: visible;
}

.footer-newsletter-flyout-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    color: #9194a1;
    font-size: 15px;
    line-height: 100%;
    text-decoration: none;
    padding: 10px;
}

.footer-newsletter-flyout-close:hover {
    color: #734477;
    background: none;
}

.footer-newsletter-flyout-wrapper {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
    width: calc(100% - 100px);
    padding-left: 20px;
}

@media (max-width: 767px) {
    .footer-newsletter-flyout-wrapper {
        width: 100%;
        margin-top: 20px;
        padding-left: 0;
    }
}

.footer-newsletter-flyout-wrapper p {
    font-size: 20px;
    line-height: 100%;
    text-align: center;
    color: #211b12;
    margin: 0 0 5px;
}

.footer-newsletter-flyout-wrapper form {
    width: 100%;
}

.footer-newsletter-flyout-wrapper form label {
    font-size: 20px;
    line-height: 100%;
    top: 15px;
    left: 18px;
    color: #211b12;
}

.footer-newsletter-flyout-wrapper form input {
    width: 100%;
    height: 52px;
    border-radius: 50px;
    border: none;
    padding: 13px 18px 13px 80px;
    font-size: 20px;
    color: #211b12;
    background: #f0f2fa;
    box-shadow: none;
    margin: 0 0 15px;
}

.footer-newsletter-flyout-wrapper form input::placeholder {
    color: #5a5d69;
}

.footer-newsletter-flyout-wrapper form .wpcf7-submit {
    display: block;
    margin: 0 auto;
}

.footer-newsletter-flyout-wrapper form .wpcf7-form-control-wrap:has(.wpcf7-not-valid-tip) input {
    background-color: rgb(255, 235, 235);
    box-shadow: 0 2px 0 0 rgb(255, 0, 0);
}

.footer-newsletter-flyout-wrapper form .wpcf7-not-valid-tip {
    color: #ff0000;
    font-size: 14px;
    font-weight: 400;
    display: block;
    margin: -10px 0 10px;
    text-align: center;
}

.footer-newsletter-flyout-wrapper form .wpcf7-spinner,
.footer-newsletter-flyout-wrapper form .wpcf7-response-output {
    display: none;
}


@media (max-width: 767px) {
    .footer-logo {
        max-width: 140px;
    }

    .footer-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .footer-address {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        flex-direction: column;

        > *:not(:last-child) {
            margin-bottom: 15px;
        }

        p,
        a {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            text-align: center;
            align-items: center;
            padding-left: 0;

            i {
                position: relative;
                top: 0;
                left: 0;
                margin-bottom: 5px;
                display: block;
            }
        }

        /* a:not(.footer-emergency) {
            width: 50%;
        } */

        a i.icon-warning {
            top: 0;
        }
    }
}

.page-footer--newsletter {
    padding: 30px 0;

    .footer-logo {
        width: 100%;
        text-align: center;

        a {
            margin: 0 auto;
            max-width: 120px;
        }
    }
}