/* ========================================
   TSOL Website - Assessment Page CSS
   Styling for Bài Test Tự Đánh Giá
   ======================================== */

/* Assessment Container */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.assessment-hero {
    text-align: center;
    margin-bottom: 48px;
}

.assessment-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.assessment-hero p {
    font-size: 18px;
    color: var(--gray);
}

/* Progress Bar */
.progress-container {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray);
}

.progress-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
    width: 0%;
}

/* Question Card */
.question-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    display: none;
}

.question-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.question-number {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 24px;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.option:hover {
    background: rgba(0, 166, 81, 0.1);
    border-color: var(--primary);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.option-text {
    font-size: 16px;
    color: var(--gray-dark);
}

.option input[type="radio"]:checked + .option-text {
    font-weight: 600;
    color: var(--primary);
}

.option.selected {
    background: rgba(0, 166, 81, 0.1);
    border-color: var(--primary);
}

/* Navigation Buttons */
.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-prev {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.btn-prev:hover {
    background: var(--gray);
    color: var(--white);
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-prev:disabled,
.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Section */
.result-section {
    display: none;
    text-align: center;
}

.result-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-score {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 12px;
    padding: 48px 32px;
    margin-bottom: 32px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-level {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-description {
    font-size: 18px;
    opacity: 0.9;
}

/* Level Badge */
.level-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
}

.level-badge.advanced {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.level-badge.intermediate {
    background: rgba(33, 150, 243, 0.2);
    color: var(--info);
}

.level-badge.basic {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.level-badge.beginner {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

/* Recommendations */
.recommendations {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.recommendations h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.recommendation-list {
    list-style: none;
    padding: 0;
}

.recommendation-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--gray-dark);
    border-bottom: 1px solid var(--gray-light);
}

.recommendation-list li:last-child {
    border-bottom: none;
}

.recommendation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

/* Lead Form */
.lead-form {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.lead-form h3 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.lead-form p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-dark);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 16px;
}

/* Success Message */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--success);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: var(--success);
    font-weight: 600;
    display: none;
}

.success-message.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Error Message */
.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--error);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: var(--error);
    font-weight: 600;
    display: none;
}

.error-message.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .assessment-container {
        padding: 24px 16px;
    }
    
    .assessment-hero h1 {
        font-size: 28px;
    }
    
    .question-card {
        padding: 24px 16px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-submit {
        margin-left: 0;
    }
    
    .result-level {
        font-size: 24px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 36px;
    }
    
    .recommendations,
    .lead-form {
        padding: 24px 16px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================== */
