/* Newsletter subscription form styles */
#newsletter-form {
    margin-top: 2rem;
    padding: 0 0 1.3rem 0;
}

#newsletter-subscription {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: nowrap;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#newsletter-subscription:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

#newsletter-email {
    flex: 1;
    min-width: 250px;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: "Raleway", sans-serif;
    background-color: transparent;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

#newsletter-email:focus {
    background-color: rgba(255, 255, 255, 0.05);
}

#newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

#newsletter-subscription button {

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: "Raleway", sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#newsletter-subscription button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#newsletter-subscription button:hover:before {
    left: 100%;
}

#newsletter-subscription button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#newsletter-subscription button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#newsletter-subscription button:disabled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

#newsletter-subscription button:disabled:hover {
    transform: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

#newsletter-message {
    margin-top: 2rem;
    padding: 16px 24px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    font-family: "Raleway", sans-serif;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes buttonPulse {
    0% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
}

.newsletter-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
    color: white;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.newsletter-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9));
    color: white;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
}

/* Enhanced CTA section heading */
#cta h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Responsive design */
@media (max-width: 768px) {
    #newsletter-subscription {
        flex-direction: column;
        max-width: 100%;
        border-radius: 25px;
        padding: 12px;
    }
    
    #newsletter-email {
        min-width: auto;
        margin-bottom: 8px;
        border-radius: 25px;
    }
    
    #newsletter-subscription button {
        min-width: auto;
        border-radius: 25px;
    }
    
    #newsletter-form {
        padding: 0 1rem 1rem 1rem;
    }
    
    #cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    #newsletter-subscription {
        padding: 8px;
    }
    
    #newsletter-email {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    #newsletter-subscription button {
        font-size: 15px;
    }
    
    #cta h2 {
        font-size: 1.5rem;
    }
}

/* Footer Newsletter Form Styles */
#footer .content.newsletter-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

#footer .newsletter {
    width: 100%;
    text-align: center;
}

#footer .newsletter h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

#footer .newsletter p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#footer-newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

#footer-newsletter-subscription {
    display: flex;
    flex-direction: row;
    gap: 0;
    background-color: rgba(255, 255, 255, 0.075);
    border-radius: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#footer-newsletter-subscription:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

#footer-newsletter-email {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: "Raleway", sans-serif;
    background-color: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-right: 6px;
}

#footer-newsletter-email:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.05);
}

#footer-newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#footer-newsletter-subscription button {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 140px;
    white-space: nowrap;
}

#footer-newsletter-subscription button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ce1b28;
    color: #ce1b28;
    transform: translateY(-1px);
}

#footer-newsletter-subscription button:active {
    background-color: rgba(206, 27, 40, 0.25);
    transform: translateY(0);
}

#footer-newsletter-subscription button:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

#footer-newsletter-message {
    margin-top: 1.5rem;
    padding: 12px 18px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-family: "Raleway", sans-serif;
    animation: slideIn 0.3s ease;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#footer-newsletter-message.newsletter-success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #ffffff;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

#footer-newsletter-message.newsletter-error {
    background-color: rgba(244, 67, 54, 0.15);
    color: #ffffff;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

/* Responsive adjustments for footer newsletter */
@media screen and (max-width: 980px) {
    #footer .newsletter h4 {
        font-size: 1.1rem;
    }
    
    #footer .newsletter p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    #footer-newsletter-form {
        max-width: 400px;
    }
    
    #footer-newsletter-subscription {
        padding: 5px;
    }
    
    #footer-newsletter-email {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    #footer-newsletter-subscription button {
        font-size: 15px;
        min-width: 120px;
    }
}

@media screen and (max-width: 600px) {
    #footer .newsletter h4 {
        font-size: 1rem;
    }
    
    #footer .newsletter p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    #footer-newsletter-form {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    #footer-newsletter-subscription {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    
    #footer-newsletter-email {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    #footer-newsletter-subscription button {
        min-width: auto;
    }
}