section.long-quote-banner {
    padding: 150px 0px 150px 0px;
    background: #fff;
    backdrop-filter: blur(2px);
}

.long-quote-headline h2 {
    color: #142F57;
    text-align: center;
    font-family: "Plus Jakarta Sans";
    font-size: 54px;
    font-style: normal;
    font-weight: 700;
    line-height: 119%;
    max-width: 74%;
    margin: auto;
}

section.paddingTop {
    padding-top: 50px;
}

.get-started-flex {
    display: flex;
    align-items: flex-start;
}

.get-started-image {
    width: 48%;
    aspect-ratio: 4 / 3;
    /* Optional: keeps images proportional */
    overflow: hidden;
    /* Hides any overflow caused by object-fit */
    border-radius: 12px;
}

.get-started-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures consistent fill */
    display: block;
    border-radius: 12px;
}

.get-started-content h3 {
    padding-bottom: 20px;
}

section.long-latest-reviews {
    padding: 80px 0px 80px 0px;
    background: #fff;
    backdrop-filter: blur(2px);
}

section.long-latest-reviews h2 {
    color: #142F57;
    text-align: center;
    font-family: "Plus Jakarta Sans";
    font-size: 36px;
    font-style: italic;
    font-weight: 700;
    line-height: 119%;
    max-width: 74%;
    margin: auto;
}

section.long-latest-reviews h3 {
    color: #142F57;
    text-align: center;
    font-family: "Plus Jakarta Sans";
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 119%;
    max-width: 74%;
    margin: auto;
}

.cards-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin: 45px 0px;
}

.review-card {
    background-color: #F6F6F6;
    padding: 24px;
    border-radius: 8px;
    color: #7E8492;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* Let height adjust to content */
    display: flex;
    flex-direction: column;
}

.cards-flex .review-img-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-img-flex h5 {
    color: var(--grey-scale-212529, #212529);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Plus Jakarta Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
}

.review-img-flex span {
    color: var(--grey-scale-6-c-757-d, #6C757D);
    font-family: "Plus Jakarta Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.cards-flex .review-content {
    color: #7E8492;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 174%;
}

section.long-quote-cta {
    padding: 90px 0px 90px 0px;
    background: #2E5EB1;
    backdrop-filter: blur(2px);
}

section.long-quote-cta .long-quote-headline-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

section.long-quote-cta h4 {
    color: #FFF;
    font-family: "Plus Jakarta Sans";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: none;
}

section.long-quote-cta p {
    color: #FFF;
    font-family: "Plus Jakarta Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: none;
    margin-bottom: 50px;

}

section.long-quote-cta .cta-scrollup {
    color: #2E5EB1;
    font-family: "Plus Jakarta Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 22.682px;
    text-transform: none;
    border-radius: 7.561px;
    background: #FFF;
    padding: 16.382px 39.064px;
    border: 2px solid #fff;
}

section.long-quote-cta .cta-scrollup:hover {
    color: #fff;
    background: transparent;
}



/* Counseling page CSS Starts*/

section.counseling-requested .get-started-flex {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 13px;
}

section.counseling-requested .get-started-flex .get-started-content h4 {
    color: #fff;
    padding-bottom: 35px;
    font-size: 22px;
}

section.counseling-requested .get-started-flex .get-started-image img {
    object-fit: contain;
}

.counseling-requested-page .mortgage-loan-content h1 {
    padding-top: 60px;
}

.counseling-requested-page .mortgage-loan-content p {
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 170%;
    letter-spacing: 0.18px;
    max-width: 720px;
    margin: auto;
    padding-bottom: 45px;
}

.counseling-requested-page .long-quote-headline h2 {
    color: #142F57;
    text-align: center;
    font-family: "Plus Jakarta Sans";
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 119%;
    max-width: 74%;
    margin: auto;
}

.long-quote-headline p {
    color: #52565f;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    line-height: 170%;
    letter-spacing: 0.18px;
    padding: 25px;
}

.next-steps-after-submit {
    padding: 24px;
    border-radius: 8px;
    max-width: 74%;
    margin-left: 14%;
}

.next-steps-after-submit strong {
    font-size: 22px;
    margin-bottom: 0px;
    display: block;
    font-weight: 500;
}

.next-steps-after-submit p {
    text-align: left;
    line-height: 150%;
    padding: 2px 0 40px 18px;
}

.counseling-requested-page .underlined svg {
    display: none;
}

.counseling-requested-page .survey-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
}

.counseling-requested-page .survey-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.survey-step.slide-in-left {
  transform: translateX(-30px);
}

.survey-step.slide-out-left {
  opacity: 0;
  transform: translateX(-30px);
}

.survey-step.slide-in-right {
  transform: translateX(30px);
}

.survey-step.slide-out-right {
  opacity: 0;
  transform: translateX(30px);
}

.counseling-requested-page .survey-container {
    margin: 30px auto;
    transition: height 0.3s ease;
}

.counseling-requested-page .survey-step select,
.survey-step input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    outline: none;
    border-radius: 7.64px;
    border: 1.273px solid #fff;
    background: rgba(196, 203, 215, 0.10);
    display: block;
    height: 56.027px;
    width: 100%;
    color: #fff;
}

.counseling-requested-page .survey-step select option {
    color: #1F2D69;
    background-color: #ffffff;
}

/* Windows fix: ensure dropdown text is visible when opened */
.counseling-requested-page .survey-step select:focus,
.counseling-requested-page .survey-step select:active,
.counseling-requested-page .survey-step select:hover {
    color: #1F2D69 !important;
    background-color: #ffffff !important;
}

.counseling-requested-page .survey-step label {
    display: block;
    font-size: 28px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: none;
}

.counseling-requested-page .survey-step p {
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 135%;
    letter-spacing: 0.18px;
    max-width: 593px;
    margin: auto;
    padding-bottom: 25px;
}

.counseling-requested-page .border-box{
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}

.counseling-requested-page .survey-step p.decorativeMessage{
    border: 1px solid #fff;
    padding: 4px;
    font-size: 15px;
    margin-bottom: 10px;
    border-radius: 20px;
}

.counseling-requested-page .survey-step a {
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
    letter-spacing: 0.18px;
    max-width: 593px;
    margin: auto;
    display: flex;
    padding-bottom: 25px;
    flex-direction: column;
    align-items: center;
    text-decoration: underline;
}

.counseling-requested-page .survey-message {
    font-size: 1.1em;
    margin: 20px 0;
}

.counseling-requested-page .block-flex{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    margin-bottom: 20px;
    padding: 12px;
    gap: 80px;
}

/* Image modal CSS*/

.thumbnail-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: transform 0.3s ease;
}
.thumbnail-img:hover {
  transform: scale(1.05);
}

/* Modal styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.image-modal .modal-content {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border-radius: 10px;
}
.close-modal {
  position: absolute;
  top: 30px;
  right: 35px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}
.close-modal:hover {
  color: #bbb;
}
/* Image modal CSS*/


.counseling-requested-page .btn-transition-back {
    padding: 0px;
    left: 0;
    min-width: 0;
    width: auto;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    border-radius: 6px;
    height: 47px;
}

/* Counseling page CSS Ends*/




/* Mobile View*/
@media (max-width: 767px) {
    .counseling-requested-page .mortgage-loan-content h1{
        font-size: 32px;
        padding-top: 20px;
    }
    .counseling-requested-page .mortgage-loan-content p{
        line-height: 138%;
        font-size: 17px;
        padding-bottom: 16px;
    }
    .counseling-requested-page .survey-step label{
        font-size: 20px;
        margin-bottom: 10px;
    }
    .counseling-requested-page .survey-step p{
        font-size: 17px;
        line-height: 138%;
        padding-bottom: 5px;
    }
    .counseling-requested-page .border-box{
        padding: 10px;
    }
    #progress {
        display: none;
    }
    .counseling-requested-page .survey-step select{
        height: auto;
    }
    .counseling-requested-page .survey-step p.decorativeMessage{
        padding: 4px;
        font-size: 15px;
        margin-bottom: 10px;
    }


    section.long-quote-banner {
        padding: 120px 0px 120px 0px;
    }

    .long-quote-headline h2 {
        font-size: 36px;
        max-width: 100%;
    }

    .get-started-image {
        width: 100%;
    }

    .second-section .get-started-flex {
        flex-direction: column-reverse;
    }

    section.long-latest-reviews {
        padding: 60px 0px 60px 0px;
    }

    section.long-latest-reviews h2 {
        font-size: 22px;
        max-width: 100%;
    }

    section.long-latest-reviews h3 {
        font-size: 30px;
        max-width: 100%;
        padding-top: 10px;
    }

    .cards-flex {
        display: flex;
        flex-direction: column;
    }

    section.long-quote-cta {
        padding: 60px 0px 60px 0px;
    }

    section.long-quote-cta h4 {
        font-size: 30px;
        text-align: center;
    }

    section.long-quote-cta p {
        font-size: 18px;
        text-align: center;
    }

    section.long-quote-cta .cta-scrollup {
        font-size: 16px;
        padding: 12.382px 20.064px;
    }

    /*Counseling page*/
    .counseling-requested-page .underlined svg {
        max-width: 110px;
        top: 80%;
        display: none;
    }

    .counseling-requested-page .survey-container {
        margin: 0px auto;
        padding: 10px;
        margin-bottom: 20px;
    }

    .counseling-requested-page .block-flex {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        padding: 12px;
        gap: 10px;
    }
    .counseling-requested-page .long-quote-headline h2{ max-width: 100%; font-size: 30px; margin-bottom: 20px;}
    .next-steps-after-submit{max-width: 100%; margin-left: 0; padding: 0px;}
    .next-steps-after-submit p{line-height: 150%; padding:0 0 0 12px; font-size: 15px;}
    .next-steps-after-submit strong{margin-bottom: 0px; font-size: 17px; font-weight: 700;}
    .long-quote-headline p{padding: 0 0 20px 0; font-size: 17px;}


    /*Counseling page*/

}


/* Tablet View*/
@media (max-width: 1023px) {
    .get-started-image {
        width: 100%;
    }

    .cards-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    section.long-quote-cta h4 {
        text-align: center;
    }

    section.long-quote-cta p {
        text-align: center;
    }

    .counseling-requested-page .mortgage-loan-content h1{
        font-size: 30px;
    }

    .counseling-requested-page .mortgage-loan-content p{
        font-size: 16px;
        padding-bottom: 15px;
    }

    .counseling-requested-page .survey-container{
        padding: 0px;
    }

    .counseling-requested-page .survey-step label{
        font-size: 20px;
    }

    .counseling-requested-page .survey-step p{
        font-size: 16px;
    }

    .next-steps-after-submit{
        max-width: 100%;
        margin-left: 0%;
        padding: 8px;
    }

    .counseling-requested-page .long-quote-headline h2{
        max-width: 100%;
    }

}

/* For cards related only*/
@media (min-width: 768px) and (max-width: 1023px) {
    .review-card {
        max-width: 48%;
        /* 2 cards per row */
    }
}

/* Desktops (1024px and up) */
@media (min-width: 1024px) {
    .review-card {
        max-width: 31%;
        /* 3 cards per row */
    }
}

/* Phones (up to 767px) */
@media (max-width: 767px) {
    .review-card {
        padding: 12px;
    }
}
/* Force Call Us button to always show without changing styling */
header .header-call,
header .header-call a {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}