/* ===== LAB TEST PAGE ===== */
.lab-test-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: var(--spacing-xl) 0;
}

.lab-test-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lab-blue);
    text-decoration: none;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--lab-green);
    transform: translateX(-5px);
}

.lab-test-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--lab-green) 0%, var(--lab-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lab-warning-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.lab-warning-banner .warning-icon {
    font-size: 2rem;
}

.lab-warning-banner p {
    margin: 0;
    color: var(--text-secondary);
}

/* ===== LAB GRID LAYOUT ===== */
.lab-test-content {
    padding: var(--spacing-2xl) 0;
}

.lab-test-form-container {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

/* ===== TEST FORM ===== */
.lab-test-form {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
}

.lab-test-form h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--lab-blue);
    box-shadow: 0 0 0 3px var(--lab-glow-blue);
}

.field-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.btn-submit,
.btn-reset {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, var(--lab-green) 0%, var(--lab-blue) 100%);
    color: #0f172a;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--lab-glow-blue);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-result {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.form-result.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* ===== CHECKLIST ===== */
.lab-test-checklist {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: sticky;
    top: var(--spacing-lg);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.lab-test-checklist h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.checklist-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.checklist-section {
    margin-bottom: var(--spacing-xl);
}

.checklist-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

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

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.checklist li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checklist input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checklist label {
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checklist-stats {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.checklist-stats strong {
    color: var(--lab-green);
}

/* ===== TIPS ===== */
.lab-tips {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.lab-tips h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.tip-card {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    border-color: var(--lab-purple);
    box-shadow: 0 10px 30px var(--lab-glow-purple);
}

.tip-card h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--lab-green);
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.tip-card code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--lab-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .lab-grid-layout {
        grid-template-columns: 1fr;
    }

    .lab-test-checklist {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .lab-test-title {
        font-size: 1.75rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
    }
}