/* Newsletter Page Styles */

/* Neuron Animation Container */
.neuron-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.neuron {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    animation: neuronPulse 3s ease-in-out infinite;
}

.neuron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), transparent);
    transform-origin: left center;
    animation: neuronRotate 8s linear infinite;
}

@keyframes neuronPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

@keyframes neuronRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fade-in Animation */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Form Input Focus States */
input:focus {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

/* Button Hover Effects */
button[type="submit"] {
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Message Box Animations */
.bg-green-500\/20,
.bg-red-500\/20 {
    animation: messageAppear 0.4s ease-out;
}

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

/* Card Hover Effect */
.bg-darkgray\/50 {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bg-darkgray\/50:hover {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.1);
}

/* Link Hover Effects */
a {
    transition: color 0.2s ease;
}

/* Turnstile Widget Styling */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .neuron::before {
        width: 40px;
    }

    h1 {
        font-size: 2rem !important;
    }
}

/* Email Input Validation States */
input[type="email"].border-green-500 {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

input[type="email"].border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
