/* Estilos generales del contenedor del formulario de prueba */
.clubpro-prueba-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clubpro-prueba-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

/* Estilos para los grupos de formulario (label + input) */
.clubpro-form-group {
    margin-bottom: 15px;
}

.clubpro-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.clubpro-form-group input[type="text"],
.clubpro-form-group input[type="number"] {
    width: calc(100% - 20px); /* 100% menos padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Estilos para el botón de envío */
.clubpro-submit-button {
    background-color: #0073aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.clubpro-submit-button:hover {
    background-color: #005f88;
}

.clubpro-submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* --- ESTILOS CRÍTICOS DEL MODAL --- */
.clubpro-modal {
    display: none; /* ¡Este es el estado inicial clave: oculto! */
    position: fixed; /* Posición fija en la pantalla */
    z-index: 1000; /* Siempre encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%; /* Ancho completo */
    height: 100%; /* Alto completo */
    overflow: auto; /* Habilitar scroll si es necesario */
    background-color: rgba(0,0,0,0.5); /* Fondo semitransparente */
    
    /* Usar flexbox para centrar el contenido del modal */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
}

.clubpro-modal-content {
    background-color: #fff;
    margin: auto; /* 'margin: auto' ayuda en el centrado si no se usa flex */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Ancho del contenido del modal */
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative; /* Necesario para que z-index funcione correctamente si hay otros elementos flotantes */
    z-index: 1001; /* Asegura que el contenido esté sobre el fondo semi-transparente */
}

.clubpro-modal-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

/* Estilos para mensajes de éxito/error en el modal */
.clubpro-modal-message.success {
    color: #28a745; /* Verde para éxito */
}

.clubpro-modal-message.error {
    color: #dc3545; /* Rojo para error */
}

.clubpro-modal-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.clubpro-modal-button:hover {
    background-color: #005f88;
}


#clubpro-modal-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#clubpro-modal-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#clubpro-modal-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
