/* Estilos para el formulario de lista de reservas */
.waitlist-form-container {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.waitlist-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.waitlist-form-header h3 {
    color: #d63384;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.waitlist-form-header p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form-group {
    margin-bottom: 15px;
}

.waitlist-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.waitlist-form-group input[type="text"],
.waitlist-form-group input[type="email"],
.waitlist-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.waitlist-form-group input[type="text"]:focus,
.waitlist-form-group input[type="email"]:focus,
.waitlist-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.waitlist-form-group input.invalid {
    border-color: #d63384;
    box-shadow: 0 0 5px rgba(214,51,132,0.3);
}

.error-message {
    color: #d63384;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.waitlist-attribute {
    margin-bottom: 10px;
}

.waitlist-attribute label {
    font-weight: normal;
    margin-bottom: 3px;
}

.waitlist-submit-btn {
    width: 100%;
    background: #007cba;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.waitlist-submit-btn:hover:not(:disabled) {
    background: #005a87;
}

.waitlist-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.waitlist-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

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

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

.waitlist-message p {
    margin: 0;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .waitlist-form-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .waitlist-form-header h3 {
        font-size: 20px;
    }
    
    .waitlist-form-header p {
        font-size: 14px;
    }
    
    .waitlist-form-group input[type="text"],
    .waitlist-form-group input[type="email"],
    .waitlist-form-group select {
        padding: 8px;
        font-size: 13px;
    }
    
    .waitlist-submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.waitlist-form-container {
    animation: fadeIn 0.5s ease-out;
}

.waitlist-message {
    animation: fadeIn 0.3s ease-out;
}

/* Estilos para el área de administración */
.attribute-tag {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

/* Estilos para integración con Elementor */
.elementor-widget-container .waitlist-form-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.elementor-widget-container .waitlist-form-header h3 {
    font-size: inherit;
    color: inherit;
}

.elementor-widget-container .waitlist-form-header p {
    color: inherit;
}

/* Variaciones de colores para diferentes temas */
.waitlist-theme-minimal .waitlist-form-container {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.waitlist-theme-dark .waitlist-form-container {
    background: #2c2c2c;
    border-color: #555;
    color: white;
}

.waitlist-theme-dark .waitlist-form-group label {
    color: white;
}

.waitlist-theme-dark .waitlist-form-group input,
.waitlist-theme-dark .waitlist-form-group select {
    background: #444;
    border-color: #666;
    color: white;
}

.waitlist-theme-dark .waitlist-form-group input:focus,
.waitlist-theme-dark .waitlist-form-group select:focus {
    border-color: #007cba;
}

/* Estilos para productos con múltiples variaciones */
#waitlist-attributes {
    background: #fafafa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.waitlist-attribute {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.waitlist-attribute:last-child {
    margin-bottom: 0;
}

.waitlist-attribute label {
    width: 120px;
    margin-bottom: 0;
    margin-right: 10px;
    flex-shrink: 0;
}

.waitlist-attribute select {
    flex: 1;
}

@media (max-width: 480px) {
    .waitlist-attribute {
        flex-direction: column;
        align-items: stretch;
    }
    
    .waitlist-attribute label {
        width: auto;
        margin-bottom: 5px;
        margin-right: 0;
    }
}

/* Loading spinner */
.waitlist-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Estilos para notificaciones toast */
.waitlist-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.waitlist-toast.error {
    background: #dc3545;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Estilos para el contador de usuarios */
.waitlist-counter {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.waitlist-counter strong {
    color: #007cba;
    font-size: 16px;
}