/* Archetype Quiz Styles */
.quiz-container {
    max-width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-wrapper {
    width: 100%;
}

.invitation {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    position: relative;
}

.progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.progress-step.active .progress-icon {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .progress-icon {
    background: #4caf50;
    color: white;
}

.progress-connector {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    z-index: 1;
}

.progress-step.completed .progress-connector {
    background: #4caf50;
}

.progress-step:last-child .progress-connector {
    display: none;
}

.archetype-quiz-form {
    margin-top: 2rem;
}

.step {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.step h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.step label {
    display: block;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step label:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.step label input[type="radio"] {
    margin-right: 12px;
    accent-color: #667eea;
    transform: scale(1.2);
}

.step label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quiz-next-btn,
.quiz-prev-btn,
.quiz-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem 0.5rem 0 0;
    min-width: 100px;
}

.quiz-next-btn:hover,
.quiz-prev-btn:hover,
.quiz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quiz-prev-btn {
    background: #6c757d;
}

.quiz-prev-btn:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.quiz-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.quiz-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Button container */
.step {
    text-align: center;
}

.step label {
    text-align: left;
}

/* Responsive design */
@media (max-width: 768px) {
    .quiz-container {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    .invitation {
        padding: 0.5rem;
    }
    
    .quiz-progress {
        padding: 0;
    }
    
    .progress-connector {
        width: 40px;
    }
    
    .progress-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step {
        padding: 0.5rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step label {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .quiz-next-btn,
    .quiz-prev-btn,
    .quiz-submit-btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}