/* Variáveis da nova paleta de cores */
:root {
    --bg-principal: #f0ece4;      /* fundo principal */
    --bg-secundario: #c7bca9;     /* fundo secundário */
    --cta-botoes: #ed3237;        /* botões e call-to-action */
    --fontes: #1e1d1c;           /* cor das fontes */
    
    /* Estados e alertas */
    --success-bg: #e8f5e8;
    --warning-bg: #fff8e1;
    --error-bg: #ffebee;
}

/* Newsletter Styles */
#newsletter-message {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    clear: both;
    order: 3; /* Garante que a mensagem fique abaixo em flexbox */
    flex-basis: 100%; /* Ocupa toda a largura disponível */
}

#newsletter-message .success {
    color: var(--fontes);
    font-weight: bold;
    background: var(--success-bg);
    padding: 5px;
    border-radius: 3px;
}

#newsletter-message .error {
    color: var(--fontes);
    font-weight: bold;
    background: var(--error-bg);
    padding: 5px;
    border-radius: 3px;
}

#newsletter-message .info {
    color: var(--fontes);
    font-weight: bold;
    background: var(--warning-bg);
    padding: 5px;
    border-radius: 3px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}

.newsletter-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Permite que os elementos quebrem em telas menores */
    justify-content: center;
}

.newsletter-inputs input {
    flex: 1;
    min-width: 150px;
}

/* Ajuste de posicionamento para dispositivos móveis */
@media (max-width: 768px) {
    .footer-newsletter {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .footer-newsletter p {
        width: 100% !important;
        text-align: center !important;
    }
    
    #newsletter-message {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .newsletter-inputs {
        flex-direction: column;
    }
    
    .newsletter-inputs input,
    .newsletter-inputs button {
        width: 100%;
    }
}