/* ==========================================================================
   Simple Email Capture - Newsletter Signup Form
   Dark theme matching site header/footer styles
   ========================================================================== */

.simple-email-capture-wrapper {
    max-width: 520px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

#simple-email-capture-form {
    display: contents;
}

#user_email {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f0f0f0;
    background-color: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

#user_email:focus {
    border-color: #8ecb00;
    box-shadow: 0 0 0 3px rgba(142, 203, 0, 0.08);
}

#user_email::placeholder {
    color: #666;
    opacity: 1;
}

/* Remove default autofill background */
#user_email:-webkit-autofill,
#user_email:-webkit-autofill:hover,
#user_email:-webkit-autofill:focus {
    background-color: #0d0d0d !important;
    color: #f0f0f0 !important;
    -webkit-text-fill-color: #f0f0f0 !important;
    border: 1px solid #2a2a2a;
    transition: background-color 5000s ease-in-out 0s;
}

.simple-email-capture-wrapper button {
    padding: 11px 24px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #e50914;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-email-capture-wrapper button:hover {
    background-color: #ff1f2b;
}

.simple-email-capture-wrapper button:active {
    transform: scale(0.98);
}

.simple-email-capture-wrapper button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Feedback message area */
#capture-message {
    width: 100%;
    margin-top: 0;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    display: none;
}

#capture-message.visible {
    display: block;
}

/* Success message */
#capture-message.success {
    background-color: rgba(142, 203, 0, 0.12);
    color: #8ecb00;
    border: 1px solid rgba(142, 203, 0, 0.3);
}

/* Error message */
#capture-message.error {
    background-color: rgba(229, 57, 53, 0.12);
    color: #ef5350;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

/* Responsive design */
@media (max-width: 480px) {
    .simple-email-capture-wrapper {
        flex-direction: column;
    }

    #user_email {
        width: 100%;
    }

    .simple-email-capture-wrapper button {
        width: 100%;
        padding: 11px 16px;
    }
}