Form collapse and conditional logic