/* ===========================================
   NEWSLETTER FORM STYLING - NATIVE FORM
   Direct form submission to Newsletter plugin
   Works in both static HTML and WordPress
   =========================================== */

/* Newsletter form wrapper */
.mailing-list-form,
.newsletter-minimal {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Email input field */
.mailing-list-form input[type="email"],
.newsletter-minimal input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--deep-blue-dark);
    color: white !important;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 4px 15px rgba(0,0,0,0.8),
        0 0 15px rgba(26,77,143,0.1);
}

.mailing-list-form input[type="email"]::placeholder,
.newsletter-minimal input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.mailing-list-form input[type="email"]:focus,
.newsletter-minimal input[type="email"]:focus {
    outline: none;
    border-color: var(--deep-blue);
    background: rgba(0,0,0,0.9);
    box-shadow: 
        inset 0 4px 15px rgba(0,0,0,0.9),
        0 0 30px rgba(26,77,143,0.4);
    transform: translateY(-2px);
}

/* Submit button - brutal theme */
.mailing-list-form button[type="submit"],
.mailing-list-form .btn-primary,
.newsletter-minimal button[type="submit"] {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--deep-blue-dark) 100%) !important;
    color: white !important;
    border: 3px solid var(--deep-blue-dark) !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(26,77,143,0.4),
        0 8px 20px rgba(0,0,0,0.8),
        inset 0 -3px 0 rgba(0,0,0,0.5);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Button hover effect */
.mailing-list-form button[type="submit"]:hover,
.newsletter-minimal button[type="submit"]:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 50px var(--steel-blue),
        0 12px 30px rgba(0,0,0,0.9),
        inset 0 -3px 0 rgba(0,0,0,0.7);
    animation: btn-shake 0.4s ease-in-out infinite;
}

@keyframes btn-shake {
    0%, 100% { transform: translateY(-5px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-5px) scale(1.05) rotate(-2deg); }
    75% { transform: translateY(-5px) scale(1.05) rotate(2deg); }
}

/* Shine effect on button */
.mailing-list-form button[type="submit"]::before,
.newsletter-minimal button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.mailing-list-form button[type="submit"]:hover::before,
.newsletter-minimal button[type="submit"]:hover::before {
    left: 100%;
}

/* Hide the hidden input */
.mailing-list-form input[type="hidden"],
.newsletter-minimal input[type="hidden"] {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mailing-list-form,
    .newsletter-minimal {
        flex-direction: column;
    }
    
    .mailing-list-form input[type="email"],
    .newsletter-minimal input[type="email"] {
        width: 100%;
        min-width: 100%;
    }
    
    .mailing-list-form button[type="submit"],
    .newsletter-minimal button[type="submit"] {
        width: 100%;
    }
}

/* ===========================================
   NEWSLETTER PLUGIN SUCCESS/ERROR PAGES
   Style the confirmation/error pages
   =========================================== */

/* Success message from Newsletter plugin */
.tnp-message,
.tnp-subscription-result {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26,77,143,0.3), rgba(5,26,46,0.5));
    border: 2px solid var(--deep-blue);
    border-left: 6px solid var(--steel-blue);
    color: var(--steel-blue);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 
        0 0 30px rgba(26,77,143,0.4),
        inset 0 0 20px rgba(26,77,143,0.1);
    text-shadow: 0 0 10px rgba(26,77,143,0.3);
    animation: statusSlideIn 0.3s ease-out;
}

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

/* Error message */
.tnp-error {
    background: linear-gradient(135deg, rgba(139,69,19,0.3), rgba(69,34,9,0.5));
    border-color: var(--rust);
    border-left-color: var(--rust);
    color: #ff6b6b;
    box-shadow: 
        0 0 30px rgba(139,69,19,0.4),
        inset 0 0 20px rgba(139,69,19,0.1);
    text-shadow: 0 0 10px rgba(139,69,19,0.3);
}

/* Loading state */
.mailing-list-form.loading button[type="submit"],
.newsletter-minimal.loading button[type="submit"] {
    opacity: 0.6;
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.4; }
}
