The symptoms seem to indicate that it's likely to be a flat foot, which means that the foot's arch may break down and turn inward, causing the difficulty of pain and movement.
Doctor, I think you've got pain in your feet and toes, and your feet are going inwards, and you've got movement problems, and what's the cause?