/**
 * Vivere Waitlist Frontend Styles
 *
 * @package Vivere_Waitlist
 */

/* Waitlist Wrapper */
.vivere-waitlist-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vivere-waitlist-form-container {
    max-width: 500px;
}

/* Title */
.vivere-waitlist-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

/* Description */
.vivere-waitlist-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Form Fields */
.vivere-waitlist-form-fields {
    margin-bottom: 15px;
}

.vivere-waitlist-field {
    margin-bottom: 12px;
}

.vivere-waitlist-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vivere-waitlist-field label .required {
    color: #e74c3c;
}

.vivere-waitlist-field input[type="text"],
.vivere-waitlist-field input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.vivere-waitlist-field input[type="text"]:focus,
.vivere-waitlist-field input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.vivere-waitlist-field input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Button */
.vivere-waitlist-button {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vivere-waitlist-button:hover {
    background-color: #005a87;
    color: #fff;
}

.vivere-waitlist-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading State */
.vivere-waitlist-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-top: 10px;
}

.vivere-waitlist-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: vivere-waitlist-spin 1s linear infinite;
}

@keyframes vivere-waitlist-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.vivere-waitlist-message-container {
    margin: 15px 0;
}

.vivere-waitlist-message {
    padding: 12px;
    border-radius: 3px;
    font-size: 14px;
}

.vivere-waitlist-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.vivere-waitlist-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.vivere-waitlist-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Already Registered Message */
.vivere-waitlist-already-registered {
    margin: 20px 0;
    padding: 15px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
}

.vivere-waitlist-already-registered p {
    margin: 0;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .vivere-waitlist-wrapper {
        padding: 15px;
    }

    .vivere-waitlist-form-container {
        max-width: 100%;
    }

    .vivere-waitlist-button {
        width: 100%;
    }
}
