
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.quiz-header h1 {
    color: white;
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.quiz-header h2 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.quiz-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3em;
    margin: 10px 0;
    font-weight: 300;
}

.quiz-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-1px);
}

.quiz-question {
    text-align: center;
    padding: 20px 0;
}

.quiz-question h3 {
    margin-bottom: 35px;
    font-size: 1.4em;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
    padding: 0 20px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    background: rgba(102, 126, 234, 0.02);
}

.answer-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 16px;
}

.answer-option.selected .option-number {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

.option-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    gap: 15px;
}

.quiz-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quiz-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.quiz-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.quiz-button.primary {
    font-size: 18px;
    padding: 20px 40px;
    width: 100%;
    margin-top: 25px;
}

.quiz-button.prev-question {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.quiz-button.prev-question:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.results-content {
    text-align: center;
}

.scores-summary {
    margin: 30px 0;
    text-align: left;
}

.scores-summary h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.score-item {
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    border-left: 5px solid #667eea;
    transition: transform 0.2s ease;
}

.score-item:hover {
    transform: translateX(5px);
}

.score-item strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.score-bar {
    background: #e1e5e9;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.score-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
}

#results-chart {
    margin: 25px auto;
    display: block;
}

.restart-quiz {
    margin-top: 35px;
}

/* Proteção contra impressão e cópia */
.quiz-results {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
    -webkit-user-modify: read-only;
    pointer-events: auto;
}

.quiz-results * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.quiz-results img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Desabilitar menu de contexto nos resultados */
.quiz-results {
    -webkit-context-menu: none;
    -moz-context-menu: none;
    context-menu: none;
}

/* Bloquear impressão */
@media print {
    .quiz-results {
        display: none !important;
    }
    
    body {
        display: none !important;
    }
}

/* Botão fazer novamente */
.quiz-restart-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.quiz-restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }
    
    .quiz-header {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .quiz-header h1 {
        font-size: 2.2em;
    }
    
    .quiz-header h2 {
        font-size: 1.8em;
    }
    
    .quiz-header p {
        font-size: 1.1em;
    }
    
    .quiz-form {
        padding: 25px 20px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 18px;
    }
    
    .answer-option {
        padding: 15px 20px;
    }
    
    .option-number {
        width: 30px;
        height: 30px;
        margin-right: 12px;
        font-size: 14px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .quiz-button {
        width: 100%;
        padding: 14px 28px;
    }
    
    .quiz-question h3 {
        font-size: 1.2em;
        padding: 0 10px;
    }
}

/* Animações suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-form {
    animation: fadeIn 0.6s ease-out;
}

.answer-option {
    animation: fadeIn 0.4s ease-out;
}

.answer-option:nth-child(1) { animation-delay: 0.1s; }
.answer-option:nth-child(2) { animation-delay: 0.2s; }
.answer-option:nth-child(3) { animation-delay: 0.3s; }
.answer-option:nth-child(4) { animation-delay: 0.4s; }
.answer-option:nth-child(5) { animation-delay: 0.5s; }
