graph TB
    Start([Dealer Inquiry Received]) --> CaptureForm[Capture 'Become a Dealer' Form]
    CaptureForm --> StoreData[Store in Database & Show Listing]
    StoreData --> CheckLocation{Location Has Vacancy?}
    
    CheckLocation -->|No| RejectEmail[Send Non-Opportunity Email]
    CheckLocation -->|Yes| AckEmail[Send Acknowledgement Email]
    
    AckEmail --> SendQuestionnaire[Send Opportunity Email with Questionnaire Link]
    SendQuestionnaire --> WaitResponse{Response Received?}
    
    WaitResponse -->|No - D+2| Reminder1[Send Reminder Email]
    Reminder1 --> WaitResponse2{Response Received?}
    WaitResponse2 -->|No - D+5| Reminder2[Send Final Reminder]
    Reminder2 --> WaitResponse3{Response Received?}
    WaitResponse3 -->|No - D+20| ExpireLink[Close Questionnaire - Expired]
    
    WaitResponse -->|Yes| ProcessResponse[Calculate Weighted Rank]
    WaitResponse2 -->|Yes| ProcessResponse
    WaitResponse3 -->|Yes| ProcessResponse
    
    ProcessResponse --> DDShortlist[DD Team Reviews & Shortlists Top 10]
    DDShortlist --> AssignZM[Assign to Zonal Manager ZM-DD]
    
    AssignZM --> ZMEval{ZM-DD KT Evaluation}
    ZMEval -->|Rejected| ZMReject[Store Rejection Reason]
    ZMEval -->|Shortlisted| AssignRBM[Auto-Assign to RBM]
    
    AssignRBM --> RBMEval{RBM Evaluation}
    RBMEval -->|Rejected| RBMReject[Store Rejection Reason]
    RBMEval -->|Approved| AssignDDL[Auto-Assign to DDL Team]
    
    AssignDDL --> FDD[Send OTP-Protected Link for Financial Due Diligence]
    FDD --> UploadFDD[External Agency Uploads FDD Report L1/L2]
    UploadFDD --> SubmitNBH[DD Team Submits to NBH]
    
    SubmitNBH --> NBHApproval{NBH Approval}
    NBHApproval -->|Rejected| NBHReject[Store Rejection & Notify]
    NBHApproval -->|Approved| IssueLOI[Generate & Send LOI]
    
    IssueLOI --> UploadLOI[Upload LOI to System]
    UploadLOI --> IssueLOA[Generate & Send LOA]
    IssueLOA --> UploadLOA[Upload LOA to System]
    
    UploadLOA --> ScheduleEOR[Regional DD Schedules EOR Audit]
    ScheduleEOR --> UploadEOR[Upload EOR Audit Report]
    UploadEOR --> EORApproval{NBH EOR Approval}
    
    EORApproval -->|Rejected| EORReject[Store Rejection & Notify]
    EORApproval -->|Approved| UpdateDealer[Update Dealer Info: Inauguration Date, Codes]
    
    UpdateDealer --> ActiveDealer[Active Dealer]
    ActiveDealer --> End[Onboarding Complete]
    
    style Start fill:#90EE90
    style End fill:#FFB6C1
    style ActiveDealer fill:#87CEEB
    style NBHApproval fill:#FFD700
    style EORApproval fill:#FFD700
