/* Assessment Page Specific Styles */

.assess-hero {
    background: var(--primary-color);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.assess-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.assess-hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.assessment-form {
    padding: 4rem 0;
    min-height: 80vh;
}

.form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.section-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-section .desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Base Score Slider */
.score-input-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
}

.score-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.score-display span {
    color: var(--secondary-color);
    font-size: 2.5rem;
}

input[type=range] {
    width: 100%;
    margin-bottom: 1rem;
    height: 8px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.score-labels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.85rem;
}

/* Scenarios Grid */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.scenario-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s;
}

.scenario-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    background: white;
}

.scenario-card.constraint {
    border-left: 4px solid #ea580c;
    /* Orange for constraint */
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.category-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
}

.constraint-tag {
    color: #ea580c;
    font-weight: 600;
}

.scenario-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.scenario-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    height: 40px;
    /* Fixed height for alignment */
    overflow: hidden;
}

/* Level Selector inside Card */
.level-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.level-val {
    color: var(--secondary-color);
    font-weight: 800;
}

.level-val.level-0 {
    color: #94a3b8;
}

.level-val.level-1 {
    color: #64748b;
}

.level-val.level-2 {
    color: #10b981;
}

/* Pass */
.level-val.level-3 {
    color: #0ea5e9;
}

.level-val.level-4 {
    color: #6366f1;
}

.level-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: -5px;
}

/* Action Button */
.form-actions {
    text-align: center;
    margin-top: 3rem;
}

.btn-lg {
    font-size: 1.25rem;
    padding: 1rem 3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-icon {
    color: #10b981;
}

.fail-icon {
    color: #ef4444;
}

.modal-body ul {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.modal-body li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body .issue-list li {
    color: #ef4444;
}

.suggestion {
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}