/**
 * Shared Waitlist Form Component Styles
 *
 * Usage: <link rel="stylesheet" href="../../../sites/shared-components/waitlist/waitlist-form.css">
 */

/* Waitlist Form Container */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

/* Email Input */
.waitlist-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: white;
    color: #1e293b;
}

.waitlist-input::placeholder {
    color: #94a3b8;
}

.waitlist-input:focus {
    outline: 2px solid #0077C8;
    outline-offset: 2px;
}

/* Submit Button */
.waitlist-button {
    background: #1e293b;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.waitlist-button:hover:not(:disabled) {
    background: #0f172a;
    transform: translateY(-1px);
}

.waitlist-button:active:not(:disabled) {
    transform: translateY(0);
}

.waitlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Inline Message (Success/Error feedback) */
.waitlist-message {
    max-width: 500px;
    margin: 20px auto 0;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.3s ease;
    display: none;
}

.waitlist-message.success {
    background: rgba(255, 255, 255, 0.95);
    color: #059669;
    border: 2px solid rgba(5, 150, 105, 0.3);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.waitlist-message.error {
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* Banner Section Styling (optional - for context) */
.waitlist-section {
    padding: 60px 20px;
    text-align: center;
}

.waitlist-section h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white; /* Explicit white for banner sections */
}

.waitlist-section p {
    font-size: 20px;
    margin-bottom: 30px;
    color: white; /* Explicit white for description */
    opacity: 0.95;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .waitlist-form {
        flex-direction: column;
        max-width: 100%;
    }

    .waitlist-input {
        min-width: 100%;
    }

    .waitlist-button {
        width: 100%;
    }

    .waitlist-section h2 {
        font-size: 32px;
    }

    .waitlist-section p {
        font-size: 18px;
    }
}
