/* =========================================
   ASSESSMENT PAGE STYLES
   Visa Assessment Form and Results
   ========================================= */

/* ========== ASSESSMENT CONTAINER ========== */

.assessment-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
}

.assessment-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.assessment-header h1 {
    margin: 0;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.assessment-header p {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* ========== PROGRESS INDICATOR ========== */

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    min-width: 100px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.1em;
}

/* ========== ASSESSMENT CARD ========== */

.assessment-card-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.assessment-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== QUESTION STYLING ========== */

.question-counter {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.help-text {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 25px;
    padding: 12px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    font-style: italic;
}

.required-indicator {
    color: #e74c3c;
    font-weight: bold;
}

/* ========== OPTIONS CONTAINER ========== */

.options-container {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

/* Select/Dropdown Styles */
.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Option Buttons */
.option-button {
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 1em;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #333;
}

.option-button:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.option-button.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.option-label {
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.option-description {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Slider Styles */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.slider-value-display {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    color: #667eea;
}

/* ========== BUTTON GROUP ========== */

.button-group {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-navigation {
    flex: 1;
    min-width: 120px;
    padding: 14px 28px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-navigation:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.btn-navigation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit {
    flex: 1;
    min-width: 200px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== RESULTS SECTION ========== */

.results-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h2 {
    font-size: 2em;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.score-badge {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3em;
    margin-top: 15px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* ========== ELIGIBILITY STATUS ========== */

.eligibility-status {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eligibility-status.high {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.eligibility-status.medium {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.eligibility-status.low {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* ========== AI SUMMARY ========== */

.ai-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

/* ========== ASSESSMENT CONTENT ========== */

.assessment-content-response {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.assessment-content-response strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    .assessment-container {
        padding: 20px 15px;
    }

    .assessment-card {
        padding: 25px 20px;
    }

    .assessment-header {
        padding: 20px 15px;
    }

    .assessment-header h1 {
        font-size: 1.8em;
    }

    .question-text {
        font-size: 1.2em;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-navigation,
    .btn-submit {
        width: 100%;
        min-width: unset;
    }

    .progress-indicator {
        flex-direction: column;
        gap: 10px;
    }

    .progress-bar {
        min-width: unset;
        width: 100%;
    }

    .results-header h2 {
        flex-direction: column;
    }

    .slider {
        height: 6px;
    }

    .slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .assessment-header h1 {
        font-size: 1.5em;
    }

    .question-text {
        font-size: 1em;
    }

    .assessment-card {
        padding: 20px 15px;
    }

    .score-badge {
        font-size: 1.1em;
        padding: 12px 24px;
    }
}
