/* ==========================================================================
   Masterpeacewall Newsletter Popup - Stylesheet
   Loaded only on public pages when the popup is enabled.
   ========================================================================== */

/* --- Overlay --- */
.mpnl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mpnl-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Popup container --- */
.mpnl-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.92);
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: transform 0.42s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.42s ease,
                visibility 0.42s ease;
}
.mpnl-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* --- Close button --- */
.mpnl-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}
.mpnl-close:hover {
    background: #1a1a1a;
    color: #fff;
}

/* --- Inner layout (image | content) --- */
.mpnl-inner {
    display: flex;
    flex-wrap: wrap;
    min-height: 450px;
}
.mpnl-image {
    flex: 1 1 340px;
    background-size: cover;
    background-position: center;
    min-height: 240px;
}
.mpnl-content {
    flex: 1 1 340px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* --- Text --- */
.mpnl-title {
    font-family: 'Bebas Neue', var(--font-heading, serif), sans-serif;
    font-size: 36px;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0 0 6px;
}
.mpnl-subtitle {
    font-family: var(--font-subheading, 'Montserrat'), sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent, #e5a93b);
    text-transform: uppercase;
    margin: 0 0 18px;
}
.mpnl-desc {
    font-family: var(--font-body, 'Inter'), sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 28px;
}

/* --- Form --- */
.mpnl-input-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 14px;
}
.mpnl-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.mpnl-input:focus {
    border-color: #1a1a1a;
}
.mpnl-submit {
    width: 100%;
    height: 48px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-subheading, 'Montserrat'), sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease;
}
.mpnl-submit:hover {
    background: var(--accent, #e5a93b);
}
.mpnl-privacy {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    line-height: 1.4;
    margin: 8px 0 0;
}

/* --- Success state --- */
.mpnl-success {
    text-align: center;
    padding: 18px 0;
}
.mpnl-success i {
    font-size: 42px;
    color: #2ec4b6;
    display: block;
    margin-bottom: 14px;
}
.mpnl-success p {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .mpnl-inner      { flex-direction: column; }
    .mpnl-image      { min-height: 180px; }
    .mpnl-content    { padding: 28px 22px; }
    .mpnl-title      { font-size: 28px; }
    .mpnl-subtitle   { font-size: 15px; margin-bottom: 14px; }
}
