/* =========================================
   USER APP DOWNLOAD SECTION (Top)
   ========================================= */
.downloadForBottomContainer {
    display: flex;
    width: 100%;
}


.downloadForBottomContainer > div {
    flex: 1;
}
.downloadForBottomContainer img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.bottomContainer {

    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(231, 244, 237, 1);
    z-index: 10;
    
}

.bottomContainer div:first-child {
    margin-bottom: 24px;
}

.bottomContainer div:first-child p:first-child {
    font-size: 36px;
    font-weight: 700;
    color: #1A1919;
    text-align: left;
    margin-bottom: 12px;
    line-height: 1.2;
}

.bottomContainer div:first-child p:nth-child(2) {
    font-size: 18px;
    font-weight: 400;
    color: #4B4F4E;
    text-align: left;
}

.imageContainer {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 0;
}

.imageContainer img {
    width: 140px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.imageContainer img:hover {
    transform: translateY(-2px);
}

/* =========================================
   PARTNER APP DOWNLOAD SECTION (Bottom)
   ========================================= */

.downloadForPartner {
    background-image: linear-gradient(to right,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.85) 20%,
            rgba(0, 0, 0, 0.6) 35%,
            rgba(0, 0, 0, 0) 45%), url("../svg/driverQR.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: auto;
}

.downloadForPartnerContainer {
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction: column;
    color: white;
    padding: 70px 100px;
}

.downloadForPartnerText h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 15px;
}

.downloadForPartnerText p {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 40px;
}

.downloadForPartnerImageContainer {
    display: flex;
    width: 35%;
    justify-content: space-between;
}

.downloadForPartnerImageContainerText p:first-child {
    font-size: 18px;
    font-weight: 600;
}

.downloadForPartnerImageContainerTextLine {
    width: 40%;
    height: 6px;
    background-color: rgba(5, 213, 133, 1);
    border-radius: 10px;
    margin: 16px 0;
    border: 0;
}



/* START OF NEW MEDIA QUERIES */

/* Tablet and Small Laptop Specific Styles (768px to 1280px) */



@media (max-width: 1280px) {
    .downloadForBottomContainer {
        height: 367px;
        /* Reduced height as requested by user */
        background-position: left bottom;
        /* Ensure it stays grounded */
        background-size: contain, cover;
        /* Keep contain to scale image down with height */
    }

    .bottomContainer {
        padding: 0 40px;
        /* Slightly reduced padding */
    }

    .bottomContainer div:first-child p:first-child {
        font-size: 28px;
        /* Slightly smaller text to fit better */
    }
}

/* Responsive Styles (Mobile only) */
@media (max-width: 767px) {
    .downloadForBottomContainer {
        flex-direction: column;
        /* Ensure stacked layout specifically for mobile */
        justify-content: flex-start;

        /* Control image height explicitly */
        background-position: top center, center;
        background-size: 100% 240px, cover;
        /* Adjusted to 240px per latest mobile tweak */
        background-repeat: no-repeat;

        height: auto;
        /* Space for image */
    }

    .bottomContainer {
        width: 100%;
        padding: 0px 20px 24px;
        margin-top: 0;
        align-items: center;
        text-align: center;
        height: auto;
        background-color: rgba(231, 244, 237, 1);
    }

    .bottomContainer div:first-child p:first-child {
        font-size: 24px;
        text-align: center;
    }

    .bottomContainer div:first-child p:nth-child(2) {
        font-size: 16px;
        text-align: center;
    }

    .imageContainer {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .imageContainer img {
        width: 120px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .downloadForBottomContainer {
        height: 282px;
        /* Reduced height as requested by user */
        background-position: left bottom;
        /* Ensure it stays grounded */
        background-size: contain, cover;
        /* Keep contain to scale image down with height */
    }
}