A convex quadrilateral $ABCD$ is given where $\angle DAB = \angle ABC = 45^\circ$, $DA = 3$, $AB = 7\sqrt{2}$, and $BC = 4$. Calculate the length of side $CD$.

Let's think step by step and output the final answer within \boxed{}.
user