A variational approach for the ground-state profile of a trapped spinor-BEC: a detailed study of phase transition in spin-1 condensate at zero magnetic field