/* Stili per lo shortcode [esercitazione] */

.qubblu-quiz-selezione,
.qubblu-quiz-domande,
.qubblu-quiz-risultati {
    max-width: 720px;
    margin: 0 auto;
}

.qubblu-quiz-campo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.qubblu-quiz-campo[hidden] {
    display: none;
}

.qubblu-quiz-campo label {
    font-weight: 600;
}

.qubblu-quiz-campo select,
.qubblu-quiz-campo input[type="number"] {
    height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.qubblu-quiz-btn {
    display: inline-block;
    background: #ff9c00;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.qubblu-quiz-btn:hover {
    background: #e08a00;
    color: #fff;
}
.qubblu-quiz-btn[hidden] {
    display: none;
}

.qubblu-quiz-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.qubblu-quiz-btn-secondario {
    background: #fff;
    color: #ff9c00;
    border: 1px solid #ff9c00;
}
.qubblu-quiz-btn-secondario:hover {
    background: rgba(255, 156, 0, 0.08);
    color: #ff9c00;
}
.qubblu-quiz-btn-secondario:disabled {
    background: #fff;
    color: #ccc;
    border-color: #ddd;
}

/* Scelta modalità (per concorso / per materia) come badge selezionabili */
.qubblu-quiz-modalita {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.qubblu-quiz-badge-radio {
    position: relative;
    cursor: pointer;
}

.qubblu-quiz-badge-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.qubblu-quiz-badge-radio span {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid #ccc;
    font-weight: 600;
    font-size: 14px;
    color: #4a4356;
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.qubblu-quiz-badge-radio input:checked + span {
    background: #ff9c00;
    border-color: #ff9c00;
    color: #fff;
}

.qubblu-quiz-badge-radio input:focus-visible + span {
    outline: 2px solid #ff9c00;
    outline-offset: 2px;
}

.qubblu-quiz-navigazione {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.qubblu-quiz-intestazione {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.qubblu-quiz-timer {
    color: #c0392b;
}

.qubblu-quiz-domanda {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.qubblu-quiz-domanda legend {
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0;
}

.qubblu-quiz-opzione {
    display: block;
    padding: 8px 0;
    cursor: pointer;
}

.qubblu-quiz-riepilogo-domanda {
    border-left: 4px solid #ccc;
    padding: 10px 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: #fafafa;
}

.qubblu-quiz-riepilogo-corretta {
    border-left-color: #2e9e5b;
    background: rgba(46, 158, 91, 0.06);
}

.qubblu-quiz-riepilogo-errata {
    border-left-color: #c0392b;
    background: rgba(192, 57, 43, 0.06);
}

.qubblu-quiz-riepilogo-vuota {
    border-left-color: #7a7285;
}
