Flat spins may take longer to recognize than those in which the nose points straight down.
With 4000ft they probably did two full turns. Immediate action is required. Point the nose down, ailerons centered, and opposite rudder. Once the spin stops, pull out gently and quickly to avoid VNE.
If you've never had spin training, go do so at your nearest gliderport. Well worth your time.