/*
=======================================================================
 Desktop Styles
=======================================================================
*/

* {
    box-sizing: border-box;
}

hr {
    margin: 0;
}

body {
    width: 100%;
    height: auto;
    font-family: Georgia, sans-serif;
    font-size: 15px;
    color: #000;
    margin: 0;
    padding: 0;
    text-align: center;
    background: #FFF;
}

.content_container {
    width: 88%;
    max-width: 1280px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.fadein {
    animation: fadeinanim 1s linear forwards;
    -webkit-animation: fadeinanim 1s linear forwards;
    opacity: 0;
}

.fadeout {
    animation: fadeoutanim 1s linear forwards;
    -webkit-animation: fadeoutanim 1s linear forwards;
    opacity: 1;
}

@keyframes fadeinanim {
    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeinanim {
    to {
        opacity: 1;
    }
}

@keyframes fadeoutanim {
    to {
        opacity: 0;
    }
}

@-webkit-keyframes fadeoutanim {
    to {
        opacity: 0;
    }
}

/*
=======================================================================
 Website Header
=======================================================================
*/

#topheader {
    width: 100%;
    color: #FFF;
    background: #FFF;
    padding: 1rem 0;
}

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

.logo img {
    max-height: 45px;
    height: 90%;

}

.lock {
    height: 20px;
}

#lock {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 3rem;
    color: black;
}

.our-lenders {
    width: 100%;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.our-lenders p {
    padding-top: 0.5rem;
    margin: 0;
    text-align: center;
    font-style: italic;
    font-weight: bold;
}

.lender-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* .lender-logos img {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
} */

/* Individual scaling with clamp() */
img.as {
    width: clamp(100px, 22vw, 225px);
}

img.rm {
    width: clamp(100px, 20vw, 200px);
}

img.ld {
    width: clamp(100px, 20vw, 200px);
}

img.gr {
    width: clamp(100px, 18vw, 130px);
}

img.sg {
    width: clamp(100px, 18vw, 160px);
}

@media screen and (max-width: 750px) {
    img.as {
        width: 160px;
    }

    img.rm {
        width: 130px;
    }

    img.ld {
        width: 130px;
    }

    img.gr {
        width: 90px;
    }

    img.sg {
        width: 110px;
    }
}

@media (max-width: 600px) {
    .lender-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
        column-gap: 1rem;
        max-width: 400px;
    }

    .lender-logos img {
        justify-self: center;
    }
}

@media screen and (max-width: 500px) {
    .lender-logos {
        max-width: 350px;
    }

    img.rm {
        width: 90px;
    }

    img.gr {
        width: 70px;
    }

    img.sg {
        width: 90px;
    }
}

@media screen and (max-width: 400px) {
    .lender-logos {
        grid-template-columns: 1fr;
    }
}

/*
=======================================================================
 Main Content
=======================================================================
*/

.safelock {
    margin-top: 5px;
}

#messagebox {
    width: 275px;
    height: auto;
    line-height: 30px;
    background: #D53839;
    font-size: 13px;
    color: #FFF;
    text-align: center;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    border-radius: 3px;
    display: none;
}

#maintext {
    width: 100%;
    height: auto;
    font-size: 15px;
    text-align: center;
    margin-top: 40px;
}

#maintext p {
    margin: 0;
    padding-left: 15%;
    padding-right: 15%;
}

#landing {
    width: 100%;
    height: auto;
    margin-top: 40px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

#steps {
    width: 100%;
    height: auto;
    margin-top: 40px;
    margin-bottom: 60px;
}

[id^="step_"] {
    width: 100%;
    height: auto;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    display: none;
}

#steps p {
    font-weight: normal;
}

/* Phone Step */
.match-images {
    max-width: 100px;
    max-height: 30px;
}

.your-matches {
    margin-top: 20px;
    margin-bottom: 20px;
}

.verify-options {
    /* width: 20%; */
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}

input[type="radio"] {
    margin-bottom: 10px;
}

.verify-code-cont {
    font-size: 20px;
    margin-top: 30px;
}

#try-again {
    display: none;
}

.resend-code {
    margin-top: 15px;
    font-size: 15px;
}

/* End phone step */


#thankyou {
    width: 100%;
    height: auto;
    text-align: center;
    font-size: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: none;
}

#thankyou p {
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 20px;
    padding-left: 15%;
    padding-right: 15%;
}

.step-copy,
#step_8_title,
#step_9_title {
    font-weight: 50;
    font-size: 38px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.step-sub-copy {
    font-size: 15px;
    margin-top: 15px;
    color: #5072A7;
    font-weight: normal;
}

/*
=======================================================================
 Footer Section
=======================================================================
*/

#phone a {
    display: block;
    width: 100%;
    height: auto;
    background: #ECEDEE;
    font-size: 23px;
    font-weight: bold;
    color: #2274CB;
    text-align: center;
    text-decoration: none;
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: 35px;
}

#refinancesavings {
    width: 100%;
    height: auto;
    font-size: 15px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    color: darkblue;
}

#tcpa {
    width: 100%;
    height: auto;
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    display: none;
}

#tcpa a {
    color: #2274CB;
    text-decoration: none;
}

#bottomfooter {
    width: 100%;
    height: auto;
    font-size: 15px;
    color: #666;
    text-align: center;
}

#bottomfooter a {
    color: #2274CB;
    text-decoration: none;
}

.badges {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.badges img {
    max-width: 100%;
    max-height: 50px;
}

.copyright {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/*
=======================================================================
 Form Styles
=======================================================================
*/

input[type=text] {
    width: 100%;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    border: 1px solid #5072A7;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
}

input[type=text]::placeholder {
    color: #999;
    font-size: 18px;
}

.inputarrow {
    width: 40%;
    height: auto;
    color: #ECEDEE;
    font-size: 40px;
    line-height: 24px;
    margin-top: 20px;
    margin-left: 30%;
    margin-right: 30%;
}

.inputbox {
    width: 360px;
    height: auto;
    color: #000;
    margin: 30px auto;
}

select {
    width: 100%;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    border: 1px solid #CCC;
    box-shadow: none;
    background: #FFF;
    font-size: 20px;
    -webkit-appearance: none;
}

.bluebutton a {
    display: block;
    width: 365px;
    height: 60px;
    line-height: 68px;
    background: linear-gradient(to left, #2274CB, #4dc3f2);
    border-radius: 4px;
    font-size: 26px;
    color: #FFF;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    transition: all 0.3s ease 0s;
}

.btn-icon {
    height: 70px;
    width: 70px;
}

.forty-forty {
    height: 40px !important;
    width: 40px !important;
}

.formbuttons {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 0;
}

.squarebutton a {
    display: block;
    width: 220px;
    min-height: 185px;
    height: auto;
    padding-top: 30px;
    font-size: 80px;
    color: #2274CB;
    transition: transform .5s ease;
    background: #FFF;
    border: 1px solid #5072A7;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    text-decoration: none;
    margin: 0 auto;
}

@media screen and (max-width: 540px) {
    .squarebutton a {
        width: 180px;
        min-height: 150px;
        padding-top: 15px;
    }
}

@media screen and (max-width: 415px) {
    .squarebutton a {
        width: 150px;
        min-height: 120px;
        padding-top: 10px;
        font-size: 60px;
    }

    .btn-icon {
        height: 50px;
        width: 50px;
    }
}

.squarebutton a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}

.buttontitle {
    font-size: 17px;
    font-weight: normal;
    color: #000;
}

input[type="range"] {
    -webkit-appearance: none !important;
    width: 50%;
    height: 12px;
    /* background:#009900; */
    background: linear-gradient(to left, #2274CB, #4dc3f2);
    border: none;
    border-radius: 10px;
    outline: none;
    margin-bottom: 60px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 35px;
    height: 35px;
    background: #FFF;
    /* border:2px solid #009900; */
    border: 2px solid #2274CB;
    border-radius: 50%;
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    -webkit-appearance: none !important;
    width: 35px;
    height: 35px;
    background: #FFF;
    border: 2px solid #4dc3f2;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #FFF;
}

#mobilespacerone,
#mobilespacertwo {
    display: none;
}

#dwellfulcashback {
    margin-top: 20px;
}

/*
=======================================================================
 Partner Match Table
=======================================================================
*/

#typ-offer {
    display: none;
}

#boberdoopartners {
    width: 100%;
    height: auto;
    font-size: 16px;
}

#boberdoopartners a {
    color: #000;
    text-decoration: none;
}

.partnermatch {
    width: 100%;
    height: auto;
    padding: 15px;
    border: 2px solid #ECEDEE;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.partnerlogo {
    float: left;
    width: 25%;
    height: auto;
    line-height: 30px;
}

.partnerlogo img {
    max-width: 100%;
}

.partnerdescription {
    float: left;
    width: 40%;
    height: auto;
    margin-left: 5%;
    margin-right: 5%;
    text-align: left;
}

.partnercontact {
    float: left;
    width: 25%;
    height: auto;
    text-align: left;
}

/*
=======================================================================
 Desktop 1024-1280
=======================================================================
*/

@media screen and (max-width:1279px) {
    #thankyou {
        font-size: 28px;
    }

    #thankyou p {
        padding-left: 5%;
        padding-right: 5%;
    }

    #step_1,
    #step_2,
    #step_3,
    #step_4,
    #step_5,
    #step_6,
    #step_7,
    #step_8,
    #step_9,
    #step_10,
    #step_11,
    #step_12,
    #step_13,
    #step_14,
    #step_15,
    #step_16 {
        font-size: 26px;
    }
}

/*
=======================================================================
 Tablets 768-1024
=======================================================================
*/

@media screen and (max-width:1023px) {
    .content_container {
        width: 90%;
    }

    #maintext p {
        padding-left: 5%;
        padding-right: 5%;
    }

    #thankyou {
        font-size: 24px;
    }

    #thankyou p {
        padding-left: 5%;
        padding-right: 5%;
    }

    #step_1,
    #step_2,
    #step_3,
    #step_4,
    #step_5,
    #step_6,
    #step_7,
    #step_8,
    #step_9,
    #step_10,
    #step_11,
    #step_12,
    #step_13,
    #step_14,
    #step_15,
    #step_16 {
        font-size: 22px;
    }

    #bottomfooter {
        font-size: 13px;
    }

    #tcpa {
        font-size: 13px;
    }
}

/*
=======================================================================
 Mobile & Small Tablets
=======================================================================
*/

@media screen and (max-width:767px) {
    body {
        font-size: 14px;
    }

    #topheader .content_container {
        width: 100%;
    }

    #topheader {
        padding: 10px 0px;
    }

    .content_container {
        width: 96%;
    }

    #progress {
        width: 120px;
        height: 20px;
    }

    .progresspercent {
        right: 55px;
    }

    .progresspercent {
        top: 10px;
        right: 60px;
        width: 40px;
        height: 40px;
        font-size: 12px;
        border: 2px solid #2274CB;
        line-height: 40px;
    }

    .step-copy,
    #step_8_title,
    #step_9_title {
        font-size: 27px;
        margin-bottom: 25px;
    }

    #maintext {
        font-size: 11px;
    }

    #maintext p {
        padding-left: 2%;
        padding-right: 2%;
    }

    #refinancesavings {
        margin-top: 0;
        font-size: 11px;
    }

    #steps {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    #step_1,
    #step_2,
    #step_3,
    #step_4,
    #step_5,
    #step_6,
    #step_7,
    #step_8,
    #step_9,
    #step_10,
    #step_11,
    #step_12,
    #step_13,
    #step_14,
    #step_15,
    #step_16 {
        font-size: 16px;
    }

    input[type="range"] {
        width: 80%;
    }

    .mobilespacer {
        margin-left: 25%;
    }

    #thankyou {
        font-size: 18px;
    }

    #thankyou p {
        font-size: 15px;
        padding-left: 2%;
        padding-right: 2%;
    }

    #boberdoopartners {
        font-size: 13px;
    }

    .partnerlogo,
    .partnerdescription,
    .partnercontact {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .partnerlogo {
        margin-bottom: 20px;
        line-height: 20px;
    }

    .partnerdescription {
        margin-bottom: 20px;
    }

    #phone a {
        font-size: 20px;
        line-height: 30px;
    }

    #bottomfooter {
        font-size: 11px;
    }

    #tcpa {
        font-size: 12px;
    }

    .copyright {
        margin-top: 20px;
    }

    .logo {
        margin-left: 25px;
        height: 35px;
    }

    #lock {
        margin-right: 25px;
        width: 120px;
        margin-top: 5px;
    }
}

@media screen and (max-width: 400px) {
    .inputbox {
        width: 90%;
    }

    .bluebutton a {
        width: 90%;
    }
}

/*
=======================================================================
Popup Styles
=======================================================================
*/

.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 95%;
    max-width: 1000px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.59);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.show {
    visibility: visible;
    opacity: 1;
}

.card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 3rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.card img {
    width: 200px;
    height: auto;
}

.card-content {
    flex-grow: 1;
    text-align: left;
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 16px;
    color: #555;
}

.view-btn {
    background: #007bff;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    border: none;
}

.blue-check {
    color: #007bff;
}

@media (max-width: 900px) {
    .card {
        flex-direction: column;
        padding: 1.25rem;
    }

    .card-content p {
        font-size: 14px;
        color: #555;
    }

    .view-btn {
        font-size: 15px;
    }

    .popup {
        gap: 8px;
    }

    .card img {
        width: 150px;
    }
}