/* questionario.css */
.questionario-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.questionario-header {
    text-align: center;
    margin-bottom: 2rem;
}

.questionario-header h1 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.questionario-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Barra di progresso */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Card della domanda */
.question-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.question-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.question-header h2 {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.question-header p {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

/* Scala di valutazione */
.rating-container {
    margin-bottom: 2.5rem;
}

.rating-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating-scale span {
    font-size: 0.9rem;
    color: #64748b;
}

.rating-options {
    display: flex;
    gap: 0.5rem;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}

.rating-option input[type="radio"]:checked + span {
    background-color: #4361ee;
    border-color: #4361ee;
    color: white;
    transform: scale(1.1);
}

.rating-option:hover span {
    background-color: #f1f5f9;
    border-color: #cbd5e0;
}

/* Pulsanti di navigazione */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.navigation-buttons .btn {
    min-width: 120px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .questionario-container {
        padding: 1rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-header p {
        font-size: 1.2rem;
    }
    
    .rating-option span {
        width: 40px;
        height: 40px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .question-card {
        padding: 1.2rem;
    }
    
    .question-header p {
        font-size: 1.1rem;
    }
    
    .rating-options {
        gap: 0.3rem;
    }
    
    .rating-option span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Stile per la pagina dei risultati */
.risultati-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.risultato-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #4361ee;
    transition: transform 0.2s ease;
}

.risultato-card:hover {
    transform: translateY(-2px);
}

.risultato-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.risultato-titolo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.risultato-punteggio {
    background: #4361ee;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.risultato-descrizione {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.affinita-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.affinita-progress {
    height: 100%;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}