/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f1f1f1;
    color: #000;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Bar */
.top-bar {
    background-color: #e34d4e;
    color: #fff;
    padding: 4px 0;
    text-align: center;
    width: 100%;
    max-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 900;
}

/* Main Container */
.main-container {
    background-color: #fff;
    padding: 20px 0 45px; /* Further reduced bottom padding from 60px to 45px */
    width: 100%;
    min-height: 105%; /* Further reduced min-height from 110% to 105% */
}

.content-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.left-content {
    width: 55%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-content {
    width: 45%;
    position: relative;
}

/* Main Title */
.main-title {
    font-family: 'Times New Roman', TimesNewRoman, Times, Baskerville, Georgia, serif;
    font-size: 35px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* Eligibility Section */
.eligibility-section {
    margin-top: 5%;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10%;
}

.eligibility-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.check-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-image: url('https://convertri.imgix.net/8017bc0b-a96f-11ed-922e-06cea9523c95%2F0f9f181d2e544080977b14ced6094f3d42e0005c%2Fcheckmark-xxl.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: sepia(1) saturate(5) hue-rotate(80deg);
    flex-shrink: 0;
}

.eligibility-item p {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    line-height: 1.2;
    margin: 2px 0;
}

/* Alert Section */
.alert-section {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 0;
}

.alert-box {
    display: flex;
    align-items: center;
    width: 100%;
}

.alert-icon {
    width: 55px;
    height: 38px;
    margin-right: 5px;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
}

.alert-text p {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    text-align: left;
}

/* CTA Section */
.cta-section {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button {
    display: block;
    background-color: #4064e9;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #3050d0;
}

.cta-subtext {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-align: center;
    margin-top: 5px;
}

/* Rating Section */
.rating-section {
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.trustpilot-wrapper {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.reviews-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 2px;
}

.rating-text {
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-top: 0;
    line-height: 1.2;
}

/* Media Section */
.media-section {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.media-logos {
    background-color: #000;
    border-radius: 0;
    padding: 10px;
    text-align: center;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.media-logos-img {
    max-width: 100%;
    max-height: 110px;
    transform: scale(1.296);
    transform-origin: center;
}

/* House Image */
.house-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-image: url('images/house-image.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Footer */
.footer {
    background-color: #e9e9e9;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    display: inline-block;
}

.divider {
    color: #333;
    display: inline-block;
    margin: 0 5px;
}

.copyright {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Simple reset for html and body */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Basic body styles with sticky footer setup */
body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f1f1f1;
    position: relative;
}

/* Main content wrapper to push footer down */
.main-container {
    flex: 1 0 auto; /* This makes the container take up all available space */
}

/* Standard footer styles */
.footer {
    width: 100%;
    flex-shrink: 0; /* Prevent footer from shrinking */
    /* Removed position: sticky and bottom: 0 to make it a standard footer */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .house-image {
        min-height: 450px;
    }
}

@media (max-width: 994px) {
    .house-image {
        display: none;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .left-content, .right-content {
        width: 100%;
        padding-right: 0;
    }
    
    .right-content {
        margin-top: 20px;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .cta-button {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        background-color: #ff3a46;
        padding: 8px 0;
    }
    
    .top-bar .container {
        width: 100%;
        margin: 0 auto;
    }
    
    .top-bar-title {
        font-size: clamp(12px, 4vw, 24px);
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .eligibility-item p {
        font-size: 18px;
    }
    
    .alert-section {
        flex-direction: column;
        align-items: center;
    }
    
    .alert-box {
        width: auto;
        max-width: 90%;
        transform: scale(0.935);
        transform-origin: center center;
        justify-content: center;
    }
    
    .alert-text p {
        font-size: 14.85px !important; /* 10% larger than previous 13.5px */
        text-align: left !important;
    }
    
    .alert-icon {
        width: 45.38px !important; /* 10% larger than previous 41.25px */
        height: 31.35px !important; /* 10% larger than previous 28.5px */
    }
    
    .cta-button {
        font-size: 27.6px; /* 15% bigger than original 24px */
        padding: 12px 24px;
    }
    
    .house-image {
        display: none;
    }
    
    .reviews-img {
        max-width: 100%;
        transform: scale(1.1); /* 10% bigger */
        transform-origin: center;
    }
    
    .rating-text {
        max-width: 100%;
        font-size: 15.4px; /* 10% bigger than original 14px */
    }
    
    .media-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .media-logos {
        height: 100px;
        width: 100%;
        border-radius: 0;
        overflow: hidden;
    }
    
    .media-logos-img {
        max-height: 69px; /* 15% bigger than original 60px */
        transform: scale(2.0);
        transform-origin: center;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 25px;
    }
    
    .eligibility-item p, .alert-text p {
        font-size: 16px;
    }
    
    .cta-button {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .reviews-img {
        max-width: 90%;
    }
    
    .rating-text {
        max-width: 90%;
        font-size: 12px;
    }
    
    .media-logos {
        height: 80px;
        padding: 5px;
        overflow: hidden;
    }
    
    .media-logos-img {
        max-height: 45px;
        transform: scale(1.9);
        transform-origin: center;
    }
}
