/* Test Page Specific Styles */
.test-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.test-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.test-meta {
    display: inline-flex;
    gap: 2rem;
    margin-top: 1rem;
}

.test-meta span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Instructions Section */
.test-instructions {
    padding: 3rem 0;
}

.instructions-box {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.instructions-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instructions-box ul {
    margin: 1rem 0 1rem 2rem;
}

.instructions-box li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.start-test {
    margin-top: 1.5rem;
}

/* Test Container */
.test-container {
    padding: 3rem 0;
    background-color: var(--bg-light);
    min-height: 600px;
}

/* Progress Bar */
.test-progress {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    width: 5%;
}

.test-stats {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: var(--text-dark);
}

/* Question Container */
.question-container {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.question-container h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Address Comparison */
.address-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.address-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.address-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-text {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

/* Answer Options */
.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.answer-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.answer-btn:hover {
    background-color: #e3f2fd;
    border-color: var(--secondary-color);
}

.answer-btn.selected {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Test Results */
.test-results {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.results-box {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.results-box h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.score-display {
    margin-bottom: 2rem;
}

.score {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.correct-answers,
.time-taken {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.results-feedback {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.results-feedback p {
    color: var(--text-dark);
    line-height: 1.6;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Timer Warning */
.timer-warning {
    color: var(--accent-color);
    font-weight: bold;
}

/* Forms Completion Specific */
.form-image-container {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.form-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-question {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* Coding Test Specific */
.coding-guide {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.coding-guide h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.coding-table {
    width: 100%;
    border-collapse: collapse;
}

.coding-table th,
.coding-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.coding-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.coding-table tr:hover {
    background-color: #f5f5f5;
}

/* Memory Test Specific */
.memory-study-phase {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.memory-study-phase h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.study-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 1rem 0;
}

.memory-reminder {
    color: var(--accent-color);
    font-style: italic;
    margin: 1rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .address-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
    }
    
    .test-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .results-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .results-actions .btn,
    .results-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}