Make the Bean Layer: In a medium bowl, mix together the refried beans, ranch seasoning, and taco seasoning until combined. Spread evenly into the bottom of a 9x13-inch casserole dish.
Spread the guacamole or diced avocado evenly over the bean layer. If desired, squeeze fresh lime juice over the top to help prevent browning.
Spread the salsa or pico de gallo evenly over the guacamole layer.
Sprinkle the drained fire-roasted corn evenly across the salsa layer.
Top with a layer of shredded lettuce.
Sprinkle the shredded cheddar cheese evenly over the lettuce.
Create the Flag Design: Arrange sliced black olives (or crushed blue tortilla chips) in the upper left corner to create the blue section of the American flag. For an extra festive touch, cut small stars from white cheese slices and place them on top of the olive section.
Transfer sour cream to a zip-top bag and snip off one corner. Pipe white stripes across the dip.
Use sliced grape tomatoes or diced tomatoes to create the red stripes between the sour cream stripes.
Serve immediately with blue corn tortilla chips.