/* Filters styling */
.tests-section .filters .input {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tests-section .filters .input:focus {
    outline: none;
    border-color: rgba(18, 122, 224, 0.55);
    box-shadow: 0 0 0 4px rgba(18, 122, 224, 0.15);
}

.tests-section .filters label {
    font-weight: 600;
}

/* Modal styles aligned with class/test.html */
.test-type-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2400;
}

.test-type-modal.hidden {
    display: none !important;
}

.test-type-content {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.test-type-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.test-type-close:hover {
    background: rgba(15, 23, 42, 0.12);
}

.test-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-type-option {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid rgba(148, 163, 184, 0.45);
    /* gray default like @test.html */
    border-radius: 12px;
    background: #f6f8fa;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    color: inherit;
    font: inherit;
    min-height: 60px;
}

.test-type-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(18, 122, 224, 0.4);
}

.test-type-option:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(18, 122, 224, 0.2);
}

.test-type-option.selected {
    background: rgba(18, 122, 224, 0.12);
    border: 2px solid #127ae0;
    box-shadow: 0 20px 48px rgba(18, 122, 224, 0.25);
}

.test-type-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(18, 122, 224, 0.12);
    color: #127ae0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.test-type-option-icon--accent {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.test-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(18, 122, 224, 0.15);
    color: #127ae0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    width: fit-content;
}

.badge-accent {
    background: rgba(236, 72, 153, 0.16);
    color: #db2777;
}

.test-type-option.beta-hidden {
    display: none;
}

@media (max-width: 640px) {
    .test-type-content {
        padding: 24px;
    }

    .test-type-option {
        align-items: flex-start;
    }
}