单项选择题

Only after I had reached the airport______ that I had forgotten to take my ticket with me.

A) I realized
B) have I realized
C) did I realize
D) I had realized