/* ===================================
   Vyra Newsletter Section
   Modern Hisense-Inspired Design
   =================================== */

.vyra-newsletter-section {
    background: linear-gradient(135deg, #112bbf 0%, #0d1f8f 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.vyra-newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: pulseBackground 4s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Newsletter Content Container */
.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Newsletter Header */
.newsletter-header {
    margin-bottom: 50px;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 15px 0;
    opacity: 0.95;
    line-height: 1.4;
}

.newsletter-brand {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Newsletter Form */
.newsletter-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.modern-newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 60px;
    padding: 8px 8px 8px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Email Input */
.newsletter-email-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 20px;
    font-size: 16px;
    color: #333;
    background: transparent;
    font-weight: 400;
}

.newsletter-email-input::placeholder {
    color: #999;
    opacity: 1;
}

.newsletter-email-input:focus::placeholder {
    opacity: 0.6;
}

/* Submit Button */
.newsletter-submit-btn {
    background: linear-gradient(135deg, #112bbf 0%, #0d1f8f 100%);
    color: #ffffff;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(17, 43, 191, 0.3);
}

.newsletter-submit-btn:hover {
    background: linear-gradient(135deg, #0d1f8f 0%, #112bbf 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(17, 43, 191, 0.4);
}

.newsletter-submit-btn:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 991px) {
    .vyra-newsletter-section {
        padding: 80px 0;
    }

    .newsletter-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .newsletter-brand {
        font-size: 52px;
    }

    .newsletter-input-group {
        padding: 6px 6px 6px 25px;
    }

    .newsletter-email-input {
        padding: 16px 15px;
        font-size: 15px;
    }

    .newsletter-submit-btn {
        padding: 16px 40px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .vyra-newsletter-section {
        padding: 60px 20px;
    }

    .newsletter-header {
        margin-bottom: 40px;
    }

    .newsletter-title {
        font-size: 20px;
        letter-spacing: 1.5px;
        line-height: 1.5;
    }

    .newsletter-brand {
        font-size: 42px;
        letter-spacing: 1px;
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: 30px;
        padding: 15px;
        gap: 12px;
    }

    .newsletter-email-input {
        width: 100%;
        padding: 15px 20px;
        text-align: center;
    }

    .newsletter-submit-btn {
        width: 100%;
        padding: 15px 30px;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .vyra-newsletter-section {
        padding: 50px 15px;
    }

    .newsletter-title {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .newsletter-brand {
        font-size: 36px;
    }

    .newsletter-email-input {
        font-size: 14px;
        padding: 12px 15px;
    }

    .newsletter-submit-btn {
        font-size: 14px;
        padding: 12px 25px;
    }
}

/* Animation for Content */
.newsletter-content[data-animate="animate__fadeIn"] {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Message Styles */
.newsletter-message {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.newsletter-message.success {
    background: rgba(40, 167, 69, 0.9);
    color: #ffffff;
}

.newsletter-message.error {
    background: rgba(220, 53, 69, 0.9);
    color: #ffffff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.newsletter-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.newsletter-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
