/* Quiz Inlead - Estilos Frontend */

.quiz-inlead-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.2;
}

.quiz-description {
    font-size: 1.1em;
    color: #718096;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.question-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.3;
}

.question-description {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.quiz-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea20, #764ba220);
}

.option-text {
    font-weight: 500;
    color: #2d3748;
    flex: 1;
}

.quiz-text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.quiz-text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lead-capture-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.lead-capture-section input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    color: #718096;
    line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: auto;
}

.rating-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-option:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-number {
    font-weight: 600;
    font-size: 1.1em;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.quiz-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.quiz-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.quiz-prev:hover {
    background: #cbd5e0;
}

.quiz-next, .quiz-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-next:hover, .quiz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quiz-results {
    text-align: center;
    padding: 40px 20px;
}

.quiz-results h3 {
    font-size: 1.8em;
    color: #2d3748;
    margin-bottom: 20px;
}

.quiz-results p {
    font-size: 1.1em;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 30px;
}

.result-cta {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.result-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .quiz-inlead-container {
        margin: 10px;
        padding: 15px;
    }
    
    .quiz-title {
        font-size: 1.8em;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-btn {
        width: 100%;
    }
    
    .rating-container {
        gap: 8px;
    }
    
    .rating-option {
        width: 40px;
        height: 40px;
    }
}

/* Tema escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .quiz-inlead-container {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .quiz-question {
        background: #2d3748;
        border-left-color: #667eea;
    }
    
    .question-title {
        color: #e2e8f0;
    }
    
    .quiz-option {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .quiz-option:hover {
        border-color: #667eea;
    }
}
