/* Full-screen overlay for the popup */

body {
    font-family: "Karla", Arial, Helvetica, sans-serif;
}

.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    z-index: 9999;
    display: none;
    /* Initially hidden */
    justify-content: center;
    align-items: center;
}

.newsletter-popup-content h2 {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-top: 25px;
}

.newsletter-popup-content .description {
    color: #000;
    font-size: 14px;
    padding: 5px 12px;
    text-transform: capitalize;
    font-family: "Karla", Arial, Helvetica, sans-serif;
    text-align: center;
    margin-top: 30px;
}

.newsletter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    z-index: 9989;
    /* Lower than content */
}

.newsletter-popup-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 350px;
    width: 60%;
    max-width: 750px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 9990;
    /* Higher than overlay */
}

.newsletter-popup.open {
    display: flex;
    /* Show the popup */
}

.popup-left {
    width: 70%;
    padding: 25px;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.popup-right {
    width: 65%;
    overflow: hidden;
}

.popup-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.newsletter-popup-close {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.newsletter-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
}

.input-wrapper input[type="email"] {
    padding: 12px 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 100%;
}
