.modal-discount {
    display: inline-block; 
    border: 5px solid white; 
    border-radius: 10px; 
    font-size: 2.5rem; 
    font-weight: 550; 
    text-transform: uppercase; 
    width: 65%; /* Consistent width across all devices */
    text-align: center; /* Ensures proper alignment of text */
}

.modal-cta {
    font-size: 1.7rem; /* Default font size for tablet/laptop */
    font-weight: bold;
    width: 80%; /* Default width */
    padding: 10px 15px; /* Consistent padding for all screen sizes */
    background-color: red; /* Button color */
    text-align: center;
    border: none;
    border-radius: 5px; /* Slight rounding for better appearance */
    color: white;
    text-decoration: none;
    display: inline-block;
}

.modal-body {
    margin-top: 40%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 2.5rem;
}

/* For devices 480px or smaller (Mobile) */
@media (max-width: 480px) and (min-width: 376px) {
    .modal-cta {
        font-size: 1.5rem; /* Slightly smaller for mobile */
        width: 90%; /* Keeps the same proportion as tablet/laptop */
    }

    .modal-discount {
        font-size: 2rem; /* Smaller font size for 40% OFF */
        width: 70%; /* Adjust width for smaller screens */
        padding: 10px; /* Add padding to prevent text cutoff */
    }

    .modal-body {
        margin-top: 51%; /* Adjust margin for better alignment */
    }

}

/* For devices 480px or smaller (Mobile) */
@media (max-width: 375px) and (min-width: 321px) {
    .modal-cta {
        font-size: 1.2rem; /* Slightly smaller for mobile */
        width: 90%; /* Keeps the same proportion as tablet/laptop */
    }

    .modal-discount {
        font-size: 2rem; /* Smaller font size for 40% OFF */
        width: 80%; /* Adjust width for smaller screens */
        padding: 10px; /* Add padding to prevent text cutoff */
    }

    .modal-body {
        margin-top: 60%; /* Adjust margin for better alignment */
    }
}

@media (max-width: 320px) {
    .modal-cta {
        font-size: 1rem; /* Slightly smaller for mobile */
        width: 100%; /* Keeps the same proportion as tablet/laptop */
    }

    .modal-discount {
        font-size: 2rem; /* Smaller font size for 40% OFF */
        width: auto; /* Adjust width for smaller screens */
        padding: 10px; /* Add padding to prevent text cutoff */
    }

    .modal-body {
        margin-top: 70%; /* Adjust margin for better alignment */
    }
}
