Fixes #11659, #12698, and #12349: Always apply position and z-index form controls in input groups for proper borders