/*
 * Newsletter Capture Styling - DeixaV5
 */

/* In-line Post Form */
#newsletter-vip-professional-container.newsletter-inline-box {
    background: linear-gradient(135deg, #090a39 0%, #1a1c5c 100%);
    border-radius: 20px;
    padding: 50px 40px;
    margin: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-inline-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-inline-box h3 {
    color: #fff !important;
    font-size: 24px !important;
    margin-bottom: 10px !important;
    font-weight: 800 !important;
}

.newsletter-inline-box p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    margin-bottom: 25px !important;
    max-width: 500px;
}

.newsletter-form {
    width: 100%;
    max-width: 450px;
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.newsletter-form input[type="email"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 25px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.newsletter-form button {
    background: #fff;
    color: #090a39;
    border: none;
    border-radius: 50px;
    padding: 0 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form button:active {
    transform: translateY(0);
}

/* Exit Intent Popup */
#newsletter-exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

#newsletter-exit-popup.active {
    display: flex;
    opacity: 1;
}

.newsletter-popup-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#newsletter-exit-popup.active .newsletter-popup-content {
    transform: scale(1);
}

.popup-header-img {
    height: 200px;
    background: #090a39;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.popup-header-img i {
    font-size: 80px;
    opacity: 0.1;
    position: absolute;
}

.popup-header-img .text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.popup-header-img h2 {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    margin: 0 !important;
    letter-spacing: -1px;
}

.popup-body {
    padding: 40px;
    text-align: center;
}

.popup-body h3 {
    font-size: 24px !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    font-weight: 800 !important;
}

.popup-body p {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 30px !important;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-response {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

.newsletter-response.success { color: #2ecc71; }
.newsletter-response.error { color: #e74c3c; }

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        padding: 15px;
    }
    .newsletter-inline-box {
        padding: 30px 20px;
    }
}
