If the real valued function \( f(x) = \begin{cases} \frac{\cos 3x - \cos x}{x \sin x}, & \text{if } x < 0 \\ p, & \text{if } x = 0 \\ \frac{\log(1 + q \sin x)}{x}, & \text{if } x > 0 \end{cases} \) is continuous at \( x = 0 \), then \( p + q = \)