<form method="post" action="actions.php"><?=csrf_field()?><input type="hidden" name="action" value="save_manual_item"><input type="hidden" name="return_page" value="information"><input type="hidden" name="id" value="<?=e($manualItem['id']??'')?>"><div class="form-grid">
  <div class="form-group full"><label>Título</label><input class="input" name="title" value="<?=e($manualItem['title']??'')?>" required></div>
  <div class="form-group full"><label>Resumo</label><textarea name="description" rows="3"><?=e($manualItem['description']??'')?></textarea></div>
  <div class="form-group full"><label>Instruções</label><textarea name="content" rows="7" placeholder="Explique o passo a passo de forma clara."><?=e($manualItem['content']??'')?></textarea></div>
  <div class="form-group full"><label>Link do vídeo</label><input class="input" type="url" name="video_url" value="<?=e($manualItem['video_url']??'')?>" placeholder="YouTube, Vimeo ou arquivo MP4/WebM"><small>O vídeo será reproduzido dentro da plataforma. Links externos continuam disponíveis como alternativa.</small></div>
  <div class="form-group"><label>Ordem</label><input class="input" type="number" name="sort_order" value="<?=e((string)($manualItem['sort_order']??0))?>"></div>
  <div class="form-group"><label>Status</label><select name="status"><option value="active"<?=selected($manualItem['status']??'active','active')?>>Ativo</option><option value="inactive"<?=selected($manualItem['status']??'active','inactive')?>>Inativo</option></select></div>
</div><div class="form-actions"><button class="btn btn-primary">Salvar manual</button></div></form>
