var data = { company_alias: document.getElementById("companyAlias").value.trim(), email: document.getElementById("email").value.trim(), phone: normalize(document.getElementById("phone").value), city: document.getElementById("city").value.trim(), registration_number: document.getElementById("registrationNumber").value.trim(), knowledge_field: document.getElementById("knowledgeField").value.trim() || null, specialization: document.getElementById("specialization").value.trim() || null, employee_count: parseInt(document.getElementById("employeeCount").value) || 0, rnd_staff_count: parseInt(document.getElementById("rndStaffCount").value) || 0, collaboration_type: Array.from(document.querySelectorAll('input[name="collab"]:checked')).map(c => c.value), expertise_needed: document.getElementById("expertiseNeeded").value.trim().split(/[,،\n]+/).filter(Boolean), description: document.getElementById("description").value.trim() || null }; fetch(API + "/knowledge/apply", ...)