What do I enter for "State of Residence"?

I lived and worked in California (CA) for several years. I temporarily moved to Virginia (VA) in June 2021 and intend to move back to CA in 2023.

 

How do I answer the "Your Info" TT questions:

1. State of Residence: California (?) Is this asking where I was living on 12/31/2021 or is it asking where is my domicile?  I lived and worked in CA Jan - mid June 2021; then lived and worked in VA  starting 6/25/2021 (188 days in 2021) but flew back to CA for 2 weeks in late 2021.

 

2. "Previous state of residence (State where you lived before moving)" - I lived in CA before moving to VA, but TT doesn't let me use CA for both "State of Residence" and "Previous state of residence"

 

3. "Date you became a resident of your new state" 6/25/2021?

 

4. Am I a part year resident of CA and VA for 2021? or a part year CA resident and a VA non-resident?

 

5. For next year's (2022) taxes, I'm working and living in VA the whole year, except maybe 3 weeks returning to CA. So will my "State of Residence" for 2022 taxes be VA? and would I be a CA non-resident and a VA resident for taxes? Thanks.