/* GLOBAL */

body{
background:#eef2f6;
font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;
color:#2d2d2d;
}

.apply-container{
max-width:1100px;
margin-bottom:80px;
}



/* PAGE HEADER */

.loan-title{
font-size:40px;
font-weight:700;
color:#1791db;
}

.loan-subtitle{
color:#6c757d;
margin-top:8px;
}

.secure-badge{
background:#f3f6f9;
padding:7px 16px;
border-radius:30px;
display:inline-block;
margin-top:10px;
font-size:14px;
box-shadow:0 2px 5px rgba(0,0,0,0.08);
}



/* PROGRESS CARD */

.progress-card{
background:#fff;
padding:30px;
border-radius:14px;
margin-top:30px;
box-shadow:0 6px 25px rgba(0,0,0,.08);
}

.progress-title{
text-align:center;
font-weight:600;
color:#6c757d;
margin-bottom:18px;
}

.steps-row{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:15px;
}

.step{
text-align:center;
flex:1;
}

.step-label{
font-size:14px;
margin-top:6px;
color:#8b8b8b;
}

.step.active .step-label{
color:#1e73f0;
font-weight:600;
}

.step-circle{
width:45px;
height:45px;
border-radius:50%;
background:#cfd3d8;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
font-weight:700;
margin:auto;
}

.step.active .step-circle{
background:linear-gradient(135deg,#1e73f0,#7b2cff);
}



/* PROGRESS BAR */

.progress{
height:7px;
background:#e6e8ec;
border-radius:20px;
overflow:hidden;
}

.progress-bar{
height:100%;
background:linear-gradient(90deg,#1e73f0,#7b2cff);
width:33%;
transition:.4s;
}



/* FORM CARD */

.form-card{
background:#fff;
border-radius:16px;
box-shadow:0 6px 30px rgba(0,0,0,.08);
margin-top:25px;
overflow:hidden;
}



/* CARD HEADER */

.card-header-custom{
background:linear-gradient(90deg,#1e73f0,#7b2cff);
color:white;
padding:22px;
display:flex;
align-items:center;
gap:18px;
}

.card-header-custom h4{
margin:0;
font-weight:700;
}

.card-header-custom p{
margin:0;
font-size:14px;
opacity:.9;
}

.header-icon{
width:50px;
height:50px;
border-radius:10px;
background:rgba(255,255,255,0.15);
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
}



/* FORM BODY */

.form-body{
padding:32px;
}

.form-body label{
font-weight:600;
margin-bottom:6px;
font-size:14px;
}

.form-control,
.form-select{
border-radius:8px;
padding:12px;
border:1px solid #dcdfe6;
margin-bottom:15px;
}

.form-control:focus,
.form-select:focus{
border-color:#1e73f0;
box-shadow:0 0 0 3px rgba(30,115,240,0.15);
}



/* SECTION TITLES */

.section-title{
margin-top:20px;
font-weight:700;
font-size:16px;
color:#1791db;
}



/* REQUIRED STAR */

.required{
color:#ff3b30;
margin-left:3px;
}



/* FORM NAVIGATION */

.form-navigation{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:25px;
}



/* NEXT BUTTON */

.next-btn{
background:linear-gradient(135deg,#1e73f0,#7b2cff);
color:white;
border:none;
padding:12px 30px;
border-radius:8px;
font-weight:600;
box-shadow:0 5px 18px rgba(0,0,0,0.15);
transition:.25s;
}

.next-btn:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

.next-btn:disabled{
background:#cfd3da;
cursor:not-allowed;
box-shadow:none;
}



/* PREVIOUS BUTTON */

.prev-btn{
background:#eef1f5;
color:#444;
border:none;
padding:11px 26px;
border-radius:8px;
font-weight:600;
}

.prev-btn:hover{
background:#e2e6ea;
}



/* BANK GRID */

.bank-desc{
color:#6c757d;
margin-bottom:20px;
}

.bank-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:22px;
margin-top:10px;
}

.bank-tile{
background:white;
padding:28px;
border-radius:12px;
box-shadow:0 6px 20px rgba(0,0,0,.08);
text-align:center;
font-weight:600;
cursor:pointer;
transition:.25s;
}

.bank-tile:hover{
transform:translateY(-4px);
box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.other-bank{
grid-column:span 4;
width:260px;
margin:auto;
background:#f4f7fb;
}



/* SUCCESS SCREEN */

.success-icon{
font-size:70px;
color:#3bb273;
margin-bottom:20px;
}

/* SUCCESS SCREEN */

.success-screen{
display:none;
padding:80px 20px;
}

.success-container{
max-width:900px;
margin:auto;
text-align:center;
background:#fff;
padding:40px;
border-radius:18px;
box-shadow:0 10px 40px rgba(0,0,0,0.1);
}

.success-check{
width:90px;
height:90px;
background:#47b97c;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-size:40px;
color:white;
margin-bottom:20px;
}

.success-title{
color:#47b97c;
font-weight:700;
margin-bottom:20px;
}

.success-message-box{
background:#dff0e6;
padding:25px;
border-radius:14px;
margin-bottom:25px;
}

.success-message-box h5{
font-weight:600;
margin-bottom:10px;
}

.processing-note{
font-weight:500;
}

.next-steps{
text-align:left;
margin-top:20px;
}

.steps-title{
color:#1791db;
font-weight:600;
margin-bottom:12px;
}

.next-steps p{
margin-bottom:10px;
}

.support-box{
background:#e9e2f7;
padding:20px;
border-radius:12px;
margin-top:25px;
}

.success-buttons{
margin-top:25px;
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}

.btn-home{
background:linear-gradient(90deg,#1e73f0,#1791db);
color:white;
padding:12px 28px;
border-radius:30px;
text-decoration:none;
font-weight:600;
}

.btn-privacy{
color:#9aa2ad;
text-decoration:none;
padding:12px 20px;
}


/* STEP VISIBILITY */

.form-step{
display:none;
}

.form-step.active{
display:block;
}



/* MODAL BACKDROP */

.bank-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.65);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
padding:30px;
}



/* MODAL CONTAINER */

.bank-modal-container{

width:760px;
max-width:95%;

background:#fff;

border-radius:12px;

box-shadow:0 30px 90px rgba(0,0,0,.35);

display:flex;
flex-direction:column;

max-height:90vh;

overflow:hidden;

}



/* MODAL HEADER */

.bank-modal-header{

background:linear-gradient(90deg,#1aa0d6,#2b78d4);

color:white;

padding:16px 22px;

display:flex;
align-items:center;
justify-content:space-between;

font-weight:600;

}

.bank-modal-title{
display:flex;
gap:10px;
align-items:center;
}

.bank-close{
border:none;
background:none;
color:white;
font-size:20px;
cursor:pointer;
}



/* SCROLLABLE BODY */

.bank-modal-content{
padding:26px;
overflow-y:auto;
flex:1;
}



/* PURPLE BOX */

.verification-box{
background:#e3d8f6;
padding:18px;
border-radius:12px;
margin-bottom:18px;
font-size:14px;
}

.verification-title{
font-weight:600;
display:flex;
align-items:center;
gap:8px;
margin-bottom:6px;
}

.verification-bold{
font-weight:600;
}



/* GREY BOX */

.consent-box{
background:#eef2f6;
padding:12px;
border-radius:8px;
font-size:13px;
margin-bottom:20px;
}



/* FORM INSIDE MODAL */

.bank-modal-content label{
font-weight:600;
font-size:14px;
margin-bottom:6px;
}

.req{
color:#ff3b30;
}

.bank-modal-content .form-control{
border-radius:8px;
padding:11px;
border:1px solid #d6d9de;
}



/* CONSENT SECTION */

.agreement-area{
margin-top:18px;
}

.agreement-check{
display:flex;
gap:10px;
align-items:flex-start;
}

.agreement-text{
font-size:13px;
color:#6c757d;
margin-top:8px;
}

.agreement-warning{
font-size:12px;
color:#ff4b4b;
}



/* MODAL FOOTER */

.bank-modal-footer{

border-top:1px solid #eee;

padding:18px 22px;

display:flex;

justify-content:flex-end;

gap:14px;

background:#fafafa;

}



/* BUTTONS */

.btn-cancel{
background:#e5e7eb;
border:none;
padding:10px 22px;
border-radius:20px;
}

.btn-auth{
background:#36b37e;
color:white;
border:none;
padding:10px 24px;
border-radius:24px;
font-weight:600;
transition:all .25s ease;
display:inline-flex;
align-items:center;
gap:8px;
}

.btn-auth:hover{
background:#2fa06f;
transform:translateY(-1px);
box-shadow:0 6px 16px rgba(0,0,0,0.15);
}

.btn-auth:disabled{
opacity:0.7;
cursor:not-allowed;
transform:none;
box-shadow:none;
}

.processing-spinner{
width:16px;
height:16px;
border:2px solid rgba(255,255,255,0.4);
border-top:2px solid #ffffff;
border-radius:50%;
animation:spin 0.8s linear infinite;
}

@keyframes spin{
0%{transform:rotate(0deg);}
100%{transform:rotate(360deg);}
}

/* RESPONSIVE */

@media(max-width:992px){

.bank-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:600px){

.bank-grid{
grid-template-columns:repeat(2,1fr);
gap:14px;
}

.bank-tile{
padding:20px;
font-size:14px;
}

.other-bank{
grid-column:span 2;
width:100%;
}

.loan-title{
font-size:30px;
}

.bank-modal-container{
width:100%;
max-height:95vh;
}

.bank-modal-footer{
flex-direction:column;
}

.btn-auth,
.btn-cancel{
width:100%;
}

}

/* FOOTER */

.site-footer{
background:#141c34;
padding:14px 20px;
}

.footer-container{
max-width:1200px;
margin:auto;
text-align:center;
}

.site-footer p{
color:#ffffff;
font-size:14px;
margin:0;
}

.site-footer a{
color:#ffffff;
text-decoration:none;
font-weight:500;
}

.site-footer a:hover{
text-decoration:underline;
}

.footer-separator{
margin:0 8px;
color:#ffffff;
}


/* MOBILE */

@media (max-width:768px){

.site-footer p{
font-size:13px;
line-height:1.6;
}

}

/* FIX BANK GRID MOBILE VIEW */

@media(max-width:600px){

.form-body{
padding:20px; /* reduce padding so grid fits */
}

.bank-grid{
grid-template-columns:repeat(2,1fr);
gap:12px;
}

.bank-tile{
padding:18px 10px;
font-size:14px;
word-break:break-word;
}

.other-bank{
grid-column:span 2;
width:100%;
}

}