     const value = input.value.trim();
                        if (param.required && !value) {
                            alert(`${param.name} is required`);
                            input.focus();
                            return;
                        }
                        if (value) {
                            params[param.name] = value;
                        }
                    }
                }
            }

            // Show loading state
            testBtn.disabled = true;
   