/* Assessment Quiz - Public Styles */

.aq-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aq-quiz-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.aq-quiz-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #333;
}

.aq-quiz-description {
    color: #666;
    line-height: 1.6;
}

/* Questions */
.aq-question-item {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.aq-question-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Answers */
.aq-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aq-answer-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aq-answer-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.aq-answer-option input[type="radio"] {
    margin: 0 12px 0 0;
    cursor: pointer;
}

.aq-answer-option input[type="radio"]:checked + .aq-answer-text {
    color: #2271b1;
    font-weight: 600;
}

.aq-answer-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.aq-answer-text {
    flex: 1;
    color: #333;
    font-size: 16px;
}

/* User Info */
.aq-user-info {
    margin-top: 30px;
    padding: 25px;
    background: #f0f6fc;
    border-radius: 6px;
}

.aq-user-info h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.aq-form-row {
    margin-bottom: 15px;
}

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

.aq-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.aq-input:focus {
    outline: none;
    border-color: #2271b1;
}

/* Submit Button */
.aq-submit-wrapper {
    margin-top: 30px;
    text-align: center;
}

.aq-submit-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aq-submit-btn:hover {
    background: #135e96;
}

.aq-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.aq-loading {
    text-align: center;
    padding: 40px;
}

.aq-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.aq-results {
    text-align: center;
}

.aq-results-content {
    padding: 40px;
}

.aq-results-title {
    margin: 0 0 30px 0;
    font-size: 32px;
    color: #333;
}

.aq-score-display {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.aq-score-circle {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.aq-percentage {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
}

.aq-score-details {
    font-size: 18px;
    color: #666;
}

.aq-score-value {
    color: #2271b1;
    font-size: 20px;
}

.aq-results-message {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.aq-results-buttons {
    margin-top: 30px;
}

.aq-results-buttons a,
.aq-results-buttons .button {
    display: inline-block;
    margin: 5px;
    padding: 12px 30px;
    text-decoration: none;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.aq-results-buttons a:hover,
.aq-results-buttons .button:hover {
    background: #135e96;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .aq-quiz-container {
        padding: 20px;
    }
    
    .aq-quiz-title {
        font-size: 24px;
    }
    
    .aq-question-item {
        padding: 20px;
    }
    
    .aq-question-title {
        font-size: 16px;
    }
    
    .aq-answer-option {
        padding: 12px;
    }
    
    .aq-user-info {
        padding: 20px;
    }
    
    .aq-submit-btn {
        width: 100%;
        padding: 12px;
    }
    
    .aq-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .aq-percentage {
        font-size: 36px;
    }
}
