.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
    /* Esconde o modal por padrão */
}

/* Conteúdo central do modal */
.modal-content {
    background: url(/images/Base_PopUp_Newsletter.png) center / contain no-repeat;
    border-radius: 8px;
    max-width: 485px;
    max-height: 345px;
    position: relative;
    overflow: hidden;
    padding: 35px;
    gap: 30px;
    align-content: flex-start;
}

.modal-content h2 {
    color: var(--cor2);
    font-size: 1.3rem;
    font-weight: bold;
    width: 58%;
    line-height: 1.4rem;
}

.modal-content p {
    color: var(--cor2);
    font-size: 1rem;
    width: 50%;
}

/* Botão de fechar */
.close-btn {
    position: relative;
    top: -155px;
    font-size: 50px;
    cursor: pointer;
    color: white;
}

/* Estilos do formulário */
.newsletter-form-modal {
    display: flex;
    gap: 10px;
    width: 100%;
}

#newsletter-email {
    flex: 2;
    padding: 10px;
    background-color: var(--cor3);
    border-radius: 4px;
    border: none;
}

.newsletter-form-modal button {
    flex: 1;
    background-color: var(--cor4);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Classe para mostrar o modal */
.modal-container.show {
    display: flex;
}

@media (max-width: 768px) {
    .modal-content {
        background: url(/images/Base_PopUp_Newsletter.png) 45% center / cover no-repeat;
        max-width: 90%;
        max-height: fit-content;
        padding: 25px;
        gap: 15px;
        align-content: flex-start;
        position: fixed;
    }

    .newsletter-form-modal {
        flex-direction: column;
    }

    .modal-content h2 {
        font-size: 1rem;
        width: 85%;
    }

    .modal-content p {
        color: var(--cor2);
        font-size: 0.8rem;
        width: 65%;
    }

    .close-btn {
        position: fixed;
        top: calc(50% - 240px);
        right: 20px;
        font-size: 50px;
        cursor: pointer;
        color: white;
    }
}