---
config:
layout: elk
theme: base
themeVariables:
fontSize: 14px
fontFamily: "Inter, system-ui, sans-serif"
primaryColor: "#1e3a8a"
primaryTextColor: "#1e3a8a"
primaryBorderColor: "#1e40af"
lineColor: "#475569"
secondaryColor: "#f8fafc"
tertiaryColor: "#e2e8f0"
background: "white"
mainBkg: "white"
clusterBkg: "#f8fafc"
edgeLabelBackground: "white"
flowchart:
curve: basis
padding: 28
nodeSpacing: 80
rankSpacing: 100
diagramPadding: 40
---
flowchart TB
Declaration{"Above details pertain to me?"} -- No --> EnterAadhaar["Enter 12-digit Aadhaar Number"]
EnterAadhaar --> SendOTP["Send OTP"]
Declaration -- Yes --> SendOTP["Send OTP"]
SendOTP --> EnterOTP["Enter OTP sent to Aadhaar mobile"]
EnterOTP --> OTPValid{"OTP valid?"}
OTPValid -- No --> InvalidOTP["Display Invalid OTP"]
InvalidOTP --> EnterOTP
OTPValid -- Yes --> ChangeMobile{"Change Gruha Jyothi linked mobile number?"}
ChangeMobile -- Yes --> NewMobile["Enter new mobile number"]
NewMobile --> NewOTP["Enter OTP"]
ChangeMobile -- No --> Phase2End(["Proceed to Relationship Details"])
NewOTP --> Phase2End
classDef processNode stroke:#818cf8,fill:#eef2ff,stroke-width:2px,color:#1e3a8a
classDef decisionNode stroke:#fb923c,fill:#fff7ed,stroke-width:2px,color:#9a3412
classDef actionNode stroke:#2dd4bf,fill:#f0fdfa,stroke-width:2px,color:#0f766e
classDef endNode stroke:#f87171,fill:#fef2f2,stroke-width:2px,color:#b91c1c
class EnterAadhaar,SendOTP,EnterOTP,NewMobile,NewOTP processNode
class Declaration,OTPValid,ChangeMobile decisionNode
class InvalidOTP actionNode
class Phase2End endNode