/* Email Signup Form Messages */

.form-message-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: center;
    animation: slideIn 0.3s ease;
    margin: 0 auto;
    max-width: 600px;
    pointer-events: auto;
}

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

.form-message-success {
    background: linear-gradient(135deg, rgba(0, 184, 255, 0.1) 0%, rgba(0, 255, 200, 0.1) 100%);
    border: 2px solid #00B8FF;
    color: #00FFB8;
}

.form-message-error {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.1) 0%, rgba(255, 134, 134, 0.1) 100%);
    border: 2px solid #FF5757;
    color: #FF8686;
}

/* Disable state for form elements */
.signup-input:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hero section fixes */
.hero-cta {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    position: relative;
    padding-bottom: 100px !important; /* Space for success message */
}

.email-signup {
    display: flex !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* Position messages at bottom of containers */
.hero-cta .form-message-container {
    bottom: 0;
}

.early-access-box {
    position: relative;
    padding-bottom: 100px !important;
}

.early-access-box .form-message-container {
    bottom: 20px;
}

/* Loading spinner on button */
.btn:disabled::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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