/* Newsletter CTA styles */
.newsletter-cta-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.newsletter-cta-form:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 0, 0, 0.7), transparent);
}

.newsletter-cta-form input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(193, 0, 0, 0.3);
    color: white;
    padding: 14px 18px;
    flex-grow: 1;
    border-radius: 4px 0 0 4px;
    font-family: "Montserrat", sans-serif;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 8px rgba(193, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsletter-cta-form input:focus {
    outline: none;
    border-color: rgba(193, 0, 0, 0.8);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 12px rgba(193, 0, 0, 0.3);
}

.newsletter-cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.newsletter-cta-form button {
    background: linear-gradient(135deg, #c10000 0%, #ff4d4d 100%);
    color: white;
    font-weight: 700;
    padding: 0 25px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(193, 0, 0, 0.3);
}

.newsletter-cta-form button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.newsletter-cta-form button:hover {
    background: linear-gradient(135deg, #a50000 0%, #e63e3e 100%);
    box-shadow: 0 6px 20px rgba(193, 0, 0, 0.4);
    transform: translateY(-2px);
}

.newsletter-cta-form button:hover:before {
    left: 100%;
}

/* Benefits newsletter CTA */
.benefits-newsletter-cta {
    text-align: center;
    margin: 25px auto 40px;
    padding: 30px;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.benefits-newsletter-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c10000, #ff4d4d, #c10000);
}

.benefits-newsletter-cta h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.benefits-newsletter-cta h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 30%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c10000, transparent);
}

/* Sticky newsletter bar */
#sticky-newsletter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.95) 0%, rgba(34, 34, 34, 0.95) 100%);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4), 0 -1px 0 rgba(193, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideUp 1s ease 1s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#sticky-newsletter-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(193, 0, 0, 0.7), transparent);
}

#sticky-newsletter-bar .newsletter-cta-form {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    width: 100%;
    justify-content: center;
    margin: 0;
}

#sticky-newsletter-bar .newsletter-cta-form:after {
    display: none;
}

#sticky-newsletter-bar .newsletter-label {
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(193, 0, 0, 0.3);
}

#sticky-newsletter-bar .close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#sticky-newsletter-bar .close-button:hover {
    color: #fff;
    background-color: rgba(193, 0, 0, 0.3);
    transform: rotate(90deg);
}

/* Hero newsletter specific styles */
.hero-newsletter-cta {
    margin-top: 35px;
    position: relative;
}

/* Add pulsing effect to hero newsletter */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(193, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(193, 0, 0, 0);
    }
}

.hero-newsletter-cta input {
    animation: pulse 2s infinite;
}

/* Success and error messages */
.newsletter-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #2ecc71;
}

.newsletter-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

/* Responsive styles */
@media (max-width: 768px) {
    #sticky-newsletter-bar {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    #sticky-newsletter-bar .newsletter-label {
        margin-bottom: 12px;
        margin-right: 0;
    }
    
    .newsletter-cta-form {
        width: 100%;
    }
    
    .newsletter-cta-form button {
        padding: 0 15px;
        font-size: 0.8rem;
    }
    
    .benefits-newsletter-cta {
        margin: 20px 15px 30px;
        padding: 20px 15px;
    }
}
