Amazing how a simple question from an authority figure can normalize something that, for many people, seems taboo. I can see how that one interaction would have helped you see the possibilities of your future in a whole new and brighter light.
Good on the teacher. After all, that question could have backfired. She must have intuited that you would be open and receptive to such a query. And the way she asked the question told you that she wasn’t judgmental, regardless of your answer.