#header {
    min-height: 0 !important;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
        "Helvetica Neue", sans-serif;
}

#logo-bar {
    max-width: 1280px;
    height: 112px;
    margin: 0 auto;
    background-color: #fff;
    display: flex;
    /* Enables Flexbox */
    justify-content: center;
    /* Centers the divs horizontally */
    align-items: center;
    /* Centers the divs vertically */
}

.logo-bar-logo-col {
    width: 50%;
    padding-left: 2.5rem;
}

.logo-bar-search-col {
    width: 25%;
    padding-right: 2.5rem;
}

.logo-bar-newsletter-col {
    width: 25%;
    padding-left:2rem;
}

#nav-bar {
    max-width: 1280px;
    margin: 0 auto;
    background-color: #4F145B;
    z-index: 1000;
}

.mega-menu-wrap {
    margin: 0 auto !important;
}

.sticker {
    position: relative;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}


#wiggle-bar-link {
    max-width: 1280px;
    display: block;
    /* Makes the link fill the width of its container */
    text-align: center;
    /* Centers the text */
    line-height: 32px;
    background-color: #D80080;
    /* Sets the background color */
    text-decoration: none;
    /* Removes underline from the link */
    color: #FFF;
    /* Sets the text color */
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    /*box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;*/
    z-index: 998;
}

.join-btn {
    background-color: #fff;
    color: #D80080;
    padding: 3px 12px 4px;
    margin: 0 8px 0;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    position: relative;
    top: -1px;
    /*line-height: 1.3rem !important;*/
    min-height: 32px;
}

/* Adjust the display and alignment of the <picture> element and its child <img> */
a picture,
a picture img {
    display: block;
    /* Removes extra space by changing the display type */

    /* Aligns the image to the bottom, removing the gap */
}

/* Optional: Ensure the <source> elements do not affect layout */
a picture source {
    display: none;
}

#header-newsletter {
    display: flex;
    width: 260px;
    height: 91px;
    background-color: #D80080;
    color: #FFF;
    position: absolute;
    top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.header-newsletter-col1 {
    width: 51px;
    margin: 23px 12px 0 12px;
}

.header-newsletter-col2 {
    width: 193px;
    font-size: 13px;
    margin: 13px 24px 0 0;
}

.header-newsletter-main-text {
    font-weight: 700;
    font-size: 14px;
}

@media screen and (max-width: 1280px) {


    .logo-bar-logo-col {
        padding-left: 24px;
        width: 50%;
    }

    .logo-bar-search-col {
        padding-right: 90px;
        width: 50%;
    }

    #header-newsletter {
        display: none;
    }

    .logo-bar-newsletter-col {
        width: 0%;
    }
}

@media screen and (max-width: 1080px) {



    .logo-bar-logo-col {
        padding-left: 24px;
        width: 60%;
    }

    .logo-bar-search-col {
        padding-right: 90px;
        width: 40%;
    }

    #header-newsletter {
        display: none;
    }

    .logo-bar-newsletter-col {
        width: 0%;
    }
}

@media screen and (max-width: 800px) {
    #logo-bar {
        max-width: 800px;
        height: 75px;
        margin: 0 auto;
        background-color: #fff;
        display: flex;
        /* Enables Flexbox */
        justify-content: center;
        /* Centers the divs horizontally */
        align-items: center;
        /* Centers the divs vertically */
    }

    .logo-bar-logo-col {
        padding-left: 16px;
        width: 80%;
    }

    .logo-bar-search-col {
        padding-right: 70px;
        width: 20%;
    }
}

.search-bar-container {
    float: right;
}

.search-bar {
    position: relative;
    width: 100%;
    /* Adjust as needed */
    margin: 0 auto;
    /* Center the search bar */
    float: right;
}

/* More specific selector using the form ID */
#customSearchForm input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    box-shadow: rgb(0 0 0 / 0.1) 0 4px 6px -1px, rgb(0 0 0 / 0.06) 0 2px 4px -1px;
    display: block; /* Override the inline display */
    line-height: normal; /* Reset line-height */
    min-height: initial; /* Reset min-height */
}

#customSearchForm input[type="hidden"] {
    display: none !important; /* Ensure hidden inputs are not displayed */
}

.search-bar input[type="text"]:focus {
    border-color: #D80080;
    /* Change this to your desired color */
    outline: none;
    /* Optional: Removes the default focus outline */
    background-color: #FFFFFF;
    /* Set your desired background color */

    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    ;
}

.search-bar input[type="text"]:-webkit-autofill,
.search-bar input[type="text"]:-webkit-autofill:hover,
.search-bar input[type="text"]:-webkit-autofill:focus,
.search-bar input[type="text"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
}

.search-bar button {
    position: absolute;
    right: 8px;
    top: 55%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}

.search-bar button img {
    width: 21px;
    /* Adjust as needed */
    height: 21px;
    /* Adjust to match the width for a square aspect ratio */
}

.search-bar button#clearButton {
    position: absolute;
    right: 40px;
    /* Adjust based on the size of your search icon and padding */
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 21px;
    /* Adjust the size of the cross */
    font-weight: 600;
    color: #999;
    /* Color of the cross */
}

@media (max-width: 768px) {
    .search-bar-container .search-bar {
        display: none;
        width: 85%;
        float: left;
    }

    #mobileSearchIcon {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 30px;
        float: right;
        margin-top: 5px;
    }
}

@media (min-width: 769px) {
    #mobileSearchIcon {
        display: none;
    }

    .search-bar-container .search-bar {
        display: block;
    }
}




footer {
    margin-block-start: 0;
}

#footer {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    background-color: #4F145B;
    padding: 1rem 1rem 2px 1rem;
    text-align: center;
    color: #FFF;
    font-family: "Montserrat", "Open Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#footer a {
    color: #FFF;
}

#footer a:hover {
    color: #a789ad;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1120px;
    margin: 0 auto;
    gap: 16px 26px;
    background-image: url("../images/footer-houses.svg");
    background-repeat: no-repeat;
    background-size: 10%;
    background-position: 87.5% 84.5%;
}

.footer-item {
    text-align: left;
    margin-top: 8px;
}

.footer-crisis {
    margin-top: -10px;
    text-align: left;
}

.footer-span-2 {
    grid-column: span 2;
}

.footer-span-3 {
    grid-column: span 3;
}

.footer-span-4 {
    grid-column: span 4;
}

.footer-span-5 {
    grid-column: span 5;
}

.footer-container .divider {
    height: 1px;
    background-color: #a789ad;
}

.footer-item ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-item li {
    font-weight: 600;
}

.footer-item .menu>li.menu-item-has-children>a {
    font-weight: bold;
    display: inline-block;
    width: 100%;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-item .sub-menu {
    padding-top: 1rem;
    border-top: 1px solid #A789AD;
}

.footer-item .sub-menu li {
    font-size: 0.8rem;
    font-weight: 400;
    padding: 6px 0;
    border: none;
}

.footer-links-container {
    display: flex;
    flex-wrap: wrap;
}

.footer-links-item {
    line-height: 20px;
}

.footer-links-container a {
    border-left: solid 1px #a789ad;
    padding-left: 12px;
    margin-left: 12px;
}

.footer-social {
    float: right;
}

.footer-social a img {
    filter: brightness(0) invert(1); /* Makes the SVG icons white */
}

.footer-social a:hover img {
    filter: brightness(0) invert(0.75) sepia(0.12) saturate(5000%) hue-rotate(290deg) brightness(100%) contrast(100%);
    /* Changes the SVG icons to the desired color #F7ECF3 on hover */
}





.newsletter-text-container {
    padding-bottom: 0;
}

@media (min-width: 769px) and (max-width: 1080px) {

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        background-image: none;
    }
    .footer-span-2,
    .footer-span-3,
    .footer-span-4,
    .footer-span-5 {
        grid-column: span 3;
    }

    .footer-social {
        float: none;
    }
}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 12px;
        background-image: none;
    }
    .footer-crisis {
        text-align: left;
    }
    .footer-span-2,
    .footer-span-3,
    .footer-span-4,
    .footer-span-5 {
        grid-column: auto;
    }

    .footer-container .divider {
        display: none;
    }

    .footer-item {
        margin-top: 0;
    }

    .footer-item ul {
        padding-top: 0;
    }

    .footer-item .sub-menu {
        padding-top: 0;
    }

    .footer-item .sub-menu li {
        display: none;
    }

    .footer-links-item {
        margin: 8px 0;
    }

    .footer-social {
        float: none;
    }
    .newsletter-text-container {
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 900px) {
    .footer-links-item {
        margin-right: 24px;
    }

    .footer-links-container a {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }


}


.newsletter-container {
    display: flex;
    padding-top: 12px;
    flex-direction: column;
    text-align: left;
    /* Center text for mobile */
}

.newsletter-form-container {
    display: flex;
    align-items: center;
    /* Center align items vertically */
    gap: 0.5rem;
    /* Add gap between email input and button */
    width: 100%;
    position: relative;
}

.newsletter-maintext {
    font-size: 1rem;
}

.newsletter-subtext {
    font-size: 11px;
}

#mce-error-response {

    font-size: 12px;
}

/* Apply styles for desktop */
@media (min-width: 768px) {
    .newsletter-container {
        flex-direction: row;
        /* Arrange children in a row */
        justify-content: space-between;
        /* Space between the text and form */
        align-items: center;
        /* Align items vertically in the center */
        text-align: left;
        /* Align text to the left on desktop */
    }

    .newsletter-text-container {
        flex: 1;
        /* Take up remaining space */
    }

    .newsletter-maintext {
        font-size: 1.08rem;
    }

    .newsletter-subtext {

        font-size: 11px;
    }

    .newsletter-form-container {
        width: 300px;
        /* Specific width for the form container */
        margin-left: 0.5rem;
        /* Add some space between the text and the form */
        text-align: right;
    }
}




input[type="email"] {
    flex: 1;
    /* Allow the email input to take up remaining space */
    color: #464646;
    border-radius: 3px;
    border: 0;
    line-height: 12px;
    padding: 11px;
    margin: 0;
    left: 0;
    top: 0;
    box-sizing: border-box;
}

#mce-responses {
    margin-top: 0.5rem;
}


.mortgage-rates-table {
    width:100%;
    border-collapse: collapse;
}

.mortgage-rates-table th, .mortgage-rates-table td {
    border: 1px solid #fff;
    padding: 4px;
    background-color: #E8E0EB;
    font-size: .85rem;
    color: #4F145B;
    font-weight: 500;
    text-align: center;
}

.mortgage-rates-table th {
    width:33.33%;
    background-color: #fff;
    text-align: center;
    font-size: 0.95rem;
}




