You can easily get PAN online or through an Agent. It hardly costs around Rs.200, which includes the processing fees and more. You are required to submit your identity proofs, photos, and related documents to get one.
Even if you are not working, you are able to get a PAN Card.
Once you get the PAN Card, you may follow this procedure to get a Demat and Trading account
To open a trading / demat account, follow the following process:
1) Approach a BSE and NSE registered stock broker.
2) Fill up the KYC form provided by the stock broker.
3) Attach the required documents – (i) identity proof and (ii) address proof.
4) Produce the original PAN card during account opening.
5) For Derivatives segment (i.e. futures and options market), 6 months account statement of your existing bank account is required.
6) One cancelled cheque of the bank account you want to link to your trading account.
7) 3 passport size photographs
You can visit brokers website of 5paisa.com, register your name, and an executive will guide you through the entire process.
And once you own a trading account, you can simply start trading.
To know more about the process, visit
https://www.5paisa.com/knowledge-centre/article/detail/how-to-invest-in-stocks