/* --- BAR-QUIZ-STYLE.CSS (Versión Final Unificada) --- */

/* Estilos generales para el contenedor del quiz */
#bar-quiz-container,
#bqh-contact-gate,
#bqh-results {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    font-family: Arial, sans-serif;
    /* CORRECCIÓN: Fuerza el color de texto general a negro */
    color: #000000 !important; 
}

/* Estilos de la pregunta */
.bqh-question h3 {
    font-size: 1.4em;
    /* CORRECCIÓN: Asegura que el color del encabezado de la pregunta sea negro */
    color: #000000 !important;
    margin-bottom: 20px;
}

/* Estilos de las opciones de respuesta */
.bqh-options label {
    display: block;
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    border: 1px solid #eee;
    /* CORRECCIÓN: Asegura que el color del texto de la opción sea negro */
    color: #000000; 
}

.bqh-options label:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.bqh-options input[type="radio"] {
    margin-right: 10px;
}

/* Estilos para el botón de navegación */
.bqh-navigation {
    margin-top: 25px;
    text-align: right;
}

#bqh-next-btn {
    background-color: #0073aa; /* Color primario de WordPress o azul fuerte */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#bqh-next-btn:hover:not(:disabled) {
    background-color: #005f8a;
}

#bqh-next-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilos para el Muro de Contacto y Resultados */
#bqh-contact-gate h2,
#bqh-results h3 {
    color: #28a745 !important; /* Verde para destacar el logro. Usamos !important por si acaso. */
}

#bqh-contact-form input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#bqh-submit-btn {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

#bqh-submit-btn:hover {
    background-color: #1e7e34;
}

.bqh-loading {
    text-align: center;
    padding: 40px 0;
    color: #000000; /* Aseguramos que el texto de carga sea negro */
}

/* Progreso */
#bqh-progress-bar-container {
    /* Contenedor del progreso, asegurando el color de texto */
    color: #000000 !important; 
}
.bqh-progress-text {
    margin-top: 5px;
    font-size: 0.9em;
    color: #000000 !important; /* Texto del progreso a negro */
}

#bqh-progress-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

#bqh-progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #0073aa;
    transition: width 0.4s ease-in-out;
}