Estimates for binary quadratic forms and Apollonian circle packings