/* Full-screen black transparent background */
.offer-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Ensures it stays on top */
}

/* Offer container */
.offer-page {
    position: relative;
    background: white;
    padding: 0%;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    /* Ensures it fits within small screens */
    width: 500px;
    /* Default width */
}

/* Ensure image is centered and resizes responsively */
.offer-page img {
    width: 100%;
    /* Makes it responsive */
    max-width: 600px;
    /* Max width remains 500px */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 10px;
    /* Optional: Slightly rounded corners */
}

/* Close button styling */
.offer-page button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

.offer-page button:hover {
    color: red !important;
}

/* Make it fully responsive for small screens */
@media (max-width: 600px) {

    /* Close button styling */
    .offer-page button {
        position: absolute;
        top: -1%;
        right: -45%;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 18px;
        color: #555;
    }

    .offer-page button:hover {
        color: red !important;
    }

    .offer-page {
        width: 75%;
        /* Adjust width for smaller devices */
        padding: 0%;
        /* Less padding on smaller screens */
    }
}