/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overlay.show {
    display: block;
    opacity: 1;
}

.overlay.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Popup container */
.newsletter-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 600px;
    max-width: 90%; /* Responsive for mobile */
    background-color: #F0213A;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding-top: 10px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-family: 'Libre Franklin', sans-serif;
}

.newsletter-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.newsletter-popup.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Popup header with title and close button */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    font-family: 'Libre Franklin', sans-serif;
    color: white;
}

.popup-header .title-icon {
    margin-right: 10px;
    height: 20px;
}

.popup-content p {
    margin: 5px 0 20px 0 imo !important;
    padding-left: 5px; /* Aligns the description with the title */
    font-family: 'Libre Franklin', sans-serif;
    color: white;
    font-size: 14px;
}

.popup-header .close-btn {
    font-size: 40px;
    cursor: pointer;
    color: white;
}

/* Media Queries for Mobile View */
@media (max-width: 768px) {
    .newsletter-popup {
        width: 90%;
        top: 50%;
        bottom: auto;
        transform: translateX(-50%) translateY(-50%);
    }

    .popup-header .close-btn {
        top: -10px; /* Adjust close button position */
        right: -10px; /* Adjust close button position */
    }
}
