/* PopUp Newsletter - estilos (mesmo visual do PopUp Retenção; cores nas variáveis abaixo) */
.mpn-overlay {
    --mpn-primary: #003a70;
    --mpn-accent: #ffb800;
    --mpn-accent-hover: #e6a600;

    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: mpnFade .25s ease-out;
}
.mpn-overlay.mpn-show { display: flex; }

@keyframes mpnFade { from { opacity: 0 } to { opacity: 1 } }

.mpn-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: mpnUp .3s ease-out;
}
@keyframes mpnUp { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }

.mpn-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    z-index: 2;
}
.mpn-close:hover { color: #000; }

.mpn-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    min-height: 420px;
}
.mpn-grid.mpn-sem-banner { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.mpn-banner {
    background-size: cover;
    background-position: center;
    background-color: var(--mpn-primary);
    border-radius: 12px 0 0 12px;
}
.mpn-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mpn-titulo {
    margin: 0 0 6px;
    font-size: 26px;
    color: var(--mpn-primary);
    font-weight: 800;
    line-height: 1.2;
}
.mpn-subtitulo {
    margin: 0 0 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.4;
}

.mpn-form .mpn-row { margin-bottom: 10px; }
.mpn-form .mpn-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mpn-form .mpn-row-end { grid-template-columns: 1fr 1.3fr; }

.mpn-form input[type=text],
.mpn-form input[type=email],
.mpn-form input[type=tel],
.mpn-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #222;
    transition: border-color .15s, box-shadow .15s;
}
.mpn-form input:focus,
.mpn-form select:focus {
    outline: 0;
    border-color: var(--mpn-accent);
    box-shadow: 0 0 0 3px rgba(255,184,0,.2);
}
.mpn-form .mpn-invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* Campo-isca anti-robô: fora da tela */
.mpn-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mpn-lgpd {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #555;
    margin: 12px 0 14px;
    line-height: 1.4;
    cursor: pointer;
}
.mpn-lgpd input { margin-top: 2px; }
.mpn-lgpd a { color: var(--mpn-primary); text-decoration: underline; }

.mpn-submit {
    width: 100%;
    padding: 13px;
    background: var(--mpn-accent);
    color: #1a1a1a;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, transform .05s;
}
.mpn-submit:hover { background: var(--mpn-accent-hover); }
.mpn-submit:active { transform: translateY(1px); }
.mpn-submit:disabled { opacity: .6; cursor: not-allowed; }

.mpn-feedback {
    margin-top: 12px;
    font-size: 14px;
    min-height: 1.2em;
}
.mpn-feedback.is-error { color: #c62828; }

/* Tela de sucesso */
.mpn-success {
    text-align: center;
    padding: 30px 20px;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .35s ease-out, transform .35s ease-out;
}
.mpn-success.mpn-success-show { opacity: 1; transform: none; }
.mpn-check { display: inline-block; margin-bottom: 16px; }
.mpn-check-circle {
    stroke-dasharray: 145;
    stroke-dashoffset: 145;
    animation: mpnDraw .6s ease-out .1s forwards;
}
.mpn-check-mark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: mpnDraw .35s ease-out .55s forwards;
}
@keyframes mpnDraw { to { stroke-dashoffset: 0; } }
.mpn-success-title { margin: 0 0 8px; color: #2e7d32; font-size: 24px; font-weight: 700; }
.mpn-success-msg { margin: 0; color: #444; font-size: 15px; line-height: 1.4; }

/* Botão do shortcode [popup_newsletter_botao] */
.mpn-botao {
    display: inline-block;
    padding: 12px 22px;
    background: #ffb800;
    color: #1a1a1a;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.mpn-botao:hover { background: #e6a600; color: #1a1a1a; }

/* Mobile */
@media (max-width: 720px) {
    .mpn-grid { grid-template-columns: 1fr; }
    .mpn-banner { min-height: 130px; border-radius: 12px 12px 0 0; }
    .mpn-content { padding: 22px 18px; }
    .mpn-titulo { font-size: 21px; }
    .mpn-form .mpn-row-2,
    .mpn-form .mpn-row-end { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .mpn-overlay, .mpn-modal, .mpn-success { animation: none; transition: none; }
}
