For two waves to be in phase, the only variables that are of concern are its frequency and wavelength. Two waves can only be in phase if they cross the x axis at the same time. The CGP book states the definition of phase as "a measurement of the position of a certain point along the wave cycle." Think about it in terms of circles. When you are drawing a circle of a larger radius, the angle at each point you draw, relative to the origin, is the same as when you are drawing a circle of a smaller radius. So what matters is, are the waves making the same angle relative to a point AT THE SAME TIME.
The amplitude only refers to the energy transferred by the wave. Therefore it makes no difference on waves being in phase. The only exception to this is where you have a "negative" amplitude, which means the energy is being propagated in the opposite direction. You cannot start two waves at both positive and negative values of the same magnitude and call them in phase. In fact they are completely out of phase. This is because the angles they make, relative to a point, are different. They are 180° different. So as waves and circles both have 360° in total for one cycle, just imagine the circle has been cut and positioned into a wave. The points on the circle (and the angle they make with the origin) are the same as the points on the wave. If two circles have the same origin point, but two different radiuses, they are in phase. By this logic, if two waves have the same origin point, but two different amplitudes, they are in phase also. It would help to visualise this by drawing it if you can!
So basically, two waves don't have to be the exact same to be in phase, but they do have to be travelling at the same rate, with the same wavelength, and must have started at the same point along it's cycle.
Hopefully this helps but if you don't get the circle analogy, I don't blame you - it'd a very visual concept and hard to describe on paper. I'd suggest searching for a few yt videos to help visualise this!