/* Test Page Styles */

/* Test Header Section */
.test-header-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
    color: #fff;
    padding: 80px 0 50px;
    text-align: center;
}

.test-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.test-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.test-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.test-info-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
}

.test-info-item i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Test Instructions */
.test-instructions {
    padding: 50px 0;
}

.instructions-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.instructions-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.instructions-card h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.instructions-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.instructions-card ul li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
}

/* Test Form Section */
.test-form-section {
    padding: 50px 0 100px;
    background-color: #f9f9f9;
}

/* Progress Bar */
.test-progress-container {
    margin-bottom: 30px;
}

.progress {
    height: 20px;
    border-radius: 100px;
    background-color: #e9ecef;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: flex-end;
    font-size: 0.9rem;
    color: #666;
}

/* Question Card */
.question-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.question-number {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: inline-block;
    background-color: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.5;
}

/* Options */
.options-container {
    margin-bottom: 30px;
}

.option-item {
    margin-bottom: 15px;
}

.option-input {
    display: none;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: #ccc;
    background-color: #f9f9f9;
}

.option-input:checked + .option-label {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.option-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-input:checked + .option-label .option-marker {
    background-color: var(--primary-color);
    color: #fff;
}

.option-text {
    flex-grow: 1;
    line-height: 1.5;
    padding-top: 5px;
}

/* Question Navigation */
.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.question-navigation button {
    padding: 10px 20px;
    font-weight: 500;
}

/* User Info Card */
.user-info-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.user-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.user-info-card p.text-muted {
    margin-bottom: 25px;
    color: #777;
}

/* Mobile Navigation */
.mobile-test-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    z-index: 1000;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .test-title {
        font-size: 2.2rem;
    }
    
    .test-info {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .test-header-section {
        padding: 60px 0 40px;
    }
    
    .test-title {
        font-size: 1.8rem;
    }
    
    .test-description {
        font-size: 1rem;
    }
    
    .test-info {
        gap: 15px;
    }
    
    .instructions-card {
        margin-top: -30px;
        padding: 20px;
    }
    
    .question-card {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .option-label {
        padding: 12px;
    }
    
    .option-marker {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }
    
    .test-form-section {
        padding-bottom: 80px;
    }
    
    .question-navigation {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .test-header-section {
        padding: 50px 0 30px;
    }
    
    .test-title {
        font-size: 1.6rem;
    }
    
    .test-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .instructions-card {
        padding: 15px;
    }
    
    .instructions-card h3 {
        font-size: 1.3rem;
    }
    
    .question-card {
        padding: 15px;
    }
    
    .question-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .option-label {
        padding: 10px;
    }
    
    .option-marker {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
}
