Iron condor nifty margin

For creating iron condor on nifty for next week expiry on current expiry day, let’s say X margin is required. My queries are:

  1. Will be X amount be debited from my trading account immediately after placing the order legs?
  2. Will there be a scenario when margin will increase from X and I have to add funds to avoid broker square off or once X amount is blocked no matter what happens in market I don’t have to add any fund to maintain margin ?
  3. Let’s say at end of expiry my PnL becomes Y in loss, will this amount be debited from my trading account or from the margin blocked and will I get back X-Y amount ?