Relative radio group (or tab) with secondary inputs

I have a radio group and each value has secondary entries, for example:

enter the description of the image here

The user chooses "Cat" and gets secondary entries related to the cat, there can be any number of secondary entries.

But the problem with this design is that "Horse" in the closest to the secondary inputs, so the user can assume that the secondary entries are related to "Horse" and not to "Cat".

So I change the classic radio buttons to the horizontal bar:

enter the description of the image here

BUT they are worried that the text on the buttons may be quite long, which creates multi-line radio buttons, which do not look good.

Any ideas on what kind of control to use in this case?

I choose animals as an example, in fact everything is a little more complicated.