/* ============================================ */
/* NEWSLETTER PRO STYLES */
/* ============================================ */

/* Wrapper & Glow */
.newsletter-wrapper-pro {
    position: relative;
    width: 100%;
}

.newsletter-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 49, 146, 0.3) 0%, transparent 70%);
    z-index: 0;
    animation: rotate-glow 20s infinite linear;
    pointer-events: none;
}

@keyframes rotate-glow {
    to { transform: rotate(360deg); }
}

.newsletter-icon-anim {
    font-size: 2.8rem;
    color: var(--accent);
    animation: heart-beat 1.5s infinite;
    display: inline-block;
}

@keyframes heart-beat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Form Container */
.newsletter-form-modern {
    position: relative;
    width: 100%;
}

/* Input Group */
.modern-input-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.08); /* Default for dark bg */
    padding: 5px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: 0.4s;
    z-index: 10;
    overflow: hidden;
}

/* Light Mode Variant (for Sidebar/White BG) */
.newsletter-light .modern-input-group {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.modern-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.2);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 6;
}

.newsletter-light .input-icon {
    color: #999;
}

.modern-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px 15px 15px 50px;
    font-weight: 600;
    box-shadow: none !important;
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 5;
    outline: none;
}

.newsletter-light .modern-input-group input {
    color: #333;
}

.modern-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-light .modern-input-group input::placeholder {
    color: #aaa;
}

/* Button */
.btn-subscribe-ultra {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-subscribe-ultra:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.4);
    background: #fff;
    color: var(--accent);
}

.btn-subscribe-ultra[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Box */
.newsletter-success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slide-up 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 15px;
}

.newsletter-light .newsletter-success-box {
    background: #d1fae5;
    border-color: #10b981;
}

.success-icon-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.success-text h4 {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
}

.newsletter-light .success-text h4 {
    color: #065f46;
}

.success-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.newsletter-light .success-text small {
    color: #047857;
}

/* Error Box */
.newsletter-error-box {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slide-up 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 15px;
}

.error-icon-wrap {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.newsletter-error-box h5 {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.newsletter-light .newsletter-error-box h5 {
    color: #7f1d1d;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .modern-input-group {
        flex-direction: column;
        background: transparent !important;
        border: none !important;
        padding: 0;
        gap: 10px;
    }
    
    .modern-input-group input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        text-align: center;
        padding-left: 15px;
    }

    .newsletter-light .modern-input-group input {
        background: #fff;
        border-color: #ddd;
    }

    .input-icon { display: none; }
    
    .btn-subscribe-ultra {
        width: 100%;
        padding: 15px;
    }
}
