D is the best option, and A is also correct. I certainly would not say "had you been surprised," but it might actually be correct as well, although one would use it only in a very formal context. Let's wait and see what a teacher has to say.
Not a teacher.
Student or Learner