/* ==========================================
   GLOBAL STYLES
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:linear-gradient(135deg,#eef5ff,#f9fbff);
    color:#222;
    overflow-x:hidden;
}

/* ==========================================
   FLOATING BACKGROUND
========================================== */

.bg1,
.bg2{
    position:fixed;
    border-radius:50%;
    filter:blur(70px);
    z-index:-1;
    animation:float 8s ease-in-out infinite;
}

.bg1{
    width:320px;
    height:320px;
    background:#4f8dfd;
    top:-80px;
    left:-80px;
    opacity:.25;
}

.bg2{
    width:350px;
    height:350px;
    background:#00d4ff;
    bottom:-120px;
    right:-100px;
    opacity:.22;
}

@keyframes float{
    0%{transform:translateY(0);}
    50%{transform:translateY(-20px);}
    100%{transform:translateY(0);}
}

/* ==========================================
   MAIN LAYOUT
========================================== */

.container{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
    display:grid;
    grid-template-columns:1fr 430px;
    gap:45px;
    align-items:start;
}

/* ==========================================
   LEFT PANEL
========================================== */

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:25px;
}

.logo i{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#387ed1;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
}

.logo h1{
    color:#387ed1;
    font-size:34px;
    font-weight:700;
}

.left h2{
    font-size:42px;
    line-height:1.3;
    margin-bottom:15px;
    font-weight:700;
}

.left h2 span{
    color:#387ed1;
}

.subtitle{
    font-size:20px;
    color:#666;
    margin-bottom:30px;
}

/* ==========================================
   FEATURES
========================================== */

.feature{
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    padding:15px 18px;
    border-radius:14px;
    margin-bottom:16px;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.feature:hover{
    transform:translateX(8px);
}

.feature i{
    color:#20b15a;
    font-size:20px;
}

/* ==========================================
   BANNERS
========================================== */

.banner{
    margin-top:22px;
    display:flex;
    gap:18px;
    align-items:center;
    padding:20px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.banner:hover{
    transform:translateY(-6px);
}

.icon{
    width:60px;
    height:60px;
    border-radius:15px;
    background:linear-gradient(135deg,#387ed1,#5d9eff);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
}

.banner h3{
    font-size:18px;
    margin-bottom:4px;
}

.banner p{
    color:#777;
    font-size:14px;
}

/* ==========================================
   RIGHT CARD
========================================== */

.card{
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(15px);
    border-radius:25px;
    padding:35px;
    box-shadow:0 20px 50px rgba(0,0,0,.10);
    position:sticky;
    top:25px;
}

.card h2{
    text-align:center;
    margin-bottom:30px;
    color:#222;
}

/* ==========================================
   FORM
========================================== */

form{
    display:flex;
    flex-direction:column;
}

form input{
    width:100%;
    padding:16px;
    margin-bottom:18px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
    transition:.3s;
    outline:none;
}

form input:focus{
    border-color:#387ed1;
    box-shadow:0 0 0 4px rgba(56,126,209,.15);
}

button{
    border:none;
    cursor:pointer;
    font-family:'Poppins',sans-serif;
}

form button{
    width:100%;
    padding:16px;
    background:linear-gradient(135deg,#387ed1,#5b9dff);
    color:#fff;
    font-size:17px;
    border-radius:12px;
    font-weight:600;
    transition:.3s;
}

form button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(56,126,209,.35);
}

/* ==========================================
   LOADER
========================================== */

#loader{
    display:none;
    text-align:center;
    padding:30px 0;
}

.circle{
    width:140px;
    height:140px;
    border-radius:50%;
    border:10px solid #e8eef9;
    border-top:10px solid #387ed1;
    margin:auto;
    animation:spin 1s linear infinite;
    display:flex;
    justify-content:center;
    align-items:center;
}

#percent{
    font-size:28px;
    font-weight:700;
    color:#387ed1;
}

#status{
    margin-top:18px;
    color:#555;
    font-weight:500;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* ==========================================
   SUCCESS CARD
========================================== */

#success{
    display:none;
    text-align:center;
    animation:fadeUp .6s ease;
}

.tick{
    font-size:65px;
    color:#27ae60;
    margin:20px 0;
}

#loanAmount{
    font-size:42px;
    color:#27ae60;
    font-weight:700;
    margin:20px 0;
}

#applyBtn{
    width:100%;
    padding:15px;
    border-radius:12px;
    color:#fff;
    font-size:17px;
    background:linear-gradient(135deg,#20b15a,#3dd67d);
    animation:pulse 2s infinite;
}

@keyframes pulse{
    0%{
        box-shadow:0 0 0 0 rgba(32,177,90,.45);
    }
    70%{
        box-shadow:0 0 0 18px rgba(32,177,90,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(32,177,90,0);
    }
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ==========================================
   EMI POPUP
========================================== */

.popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    display:none;
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:9999;
    animation:fadePopup .3s ease;
}

.popup-content{
    width:100%;
    max-width:450px;
    background:#fff;
    border-radius:22px;
    padding:30px;
    position:relative;
    animation:popupScale .35s ease;
    box-shadow:0 25px 60px rgba(0,0,0,.25);
}

#close{
    position:absolute;
    top:15px;
    right:20px;
    font-size:32px;
    cursor:pointer;
    color:#888;
    transition:.3s;
}

#close:hover{
    color:#000;
}

.popup-content h2{
    text-align:center;
    margin-bottom:25px;
    color:#387ed1;
}

.popup-content table{
    width:100%;
    border-collapse:collapse;
}

.popup-content td{
    padding:14px 0;
    border-bottom:1px solid #eee;
    font-size:15px;
}

.popup-content td:last-child{
    text-align:right;
    font-weight:600;
}

.proceed{
    width:100%;
    margin-top:25px;
    padding:15px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#387ed1,#5d9eff);
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.proceed:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 25px rgba(56,126,209,.35);
}

@keyframes fadePopup{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes popupScale{
    from{
        transform:scale(.85);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* ==========================================
   TRUST SECTION
========================================== */

.trust{
    max-width:1200px;
    margin:50px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.trust div{
    background:#fff;
    padding:25px;
    text-align:center;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    font-weight:600;
}

.trust div:hover{
    transform:translateY(-6px);
}

.trust i{
    display:block;
    font-size:32px;
    color:#387ed1;
    margin-bottom:12px;
}

/* ==========================================
   FAQ
========================================== */

.faq{
    max-width:900px;
    margin:70px auto;
    padding:0 20px;
}

.faq h2{
    text-align:center;
    margin-bottom:30px;
    font-size:32px;
}

.accordion{
    width:100%;
    background:#fff;
    border:none;
    padding:20px;
    text-align:left;
    font-size:17px;
    font-weight:600;
    border-radius:12px;
    cursor:pointer;
    margin-top:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.accordion:hover{
    background:#387ed1;
    color:#fff;
}

.panel{
    background:#fff;
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
    border-radius:0 0 12px 12px;
}

.panel p{
    padding:18px;
    color:#666;
    line-height:1.7;
}

/* ==========================================
   FOOTER
========================================== */

footer{
    margin-top:70px;
    background:#0f172a;
    color:#fff;
    text-align:center;
    padding:30px 20px;
    font-size:15px;
}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#387ed1;
    border-radius:20px;
}

::-webkit-scrollbar-track{
    background:#eee;
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media(max-width:991px){

.container{
    grid-template-columns:1fr;
}

.card{
    position:relative;
    top:0;
}

.left h2{
    font-size:34px;
}

.logo h1{
    font-size:30px;
}

.trust{
    grid-template-columns:1fr;
}

}

@media(max-width:768px){

.container{
    padding:25px 15px;
}

.left h2{
    font-size:28px;
}

.subtitle{
    font-size:17px;
}

.banner{
    flex-direction:column;
    text-align:center;
}

.card{
    padding:25px;
}

#loanAmount{
    font-size:34px;
}

.popup-content{
    padding:22px;
}

.faq h2{
    font-size:26px;
}

}

@media(max-width:480px){

.logo{
    justify-content:center;
}

.left{
    text-align:center;
}

.feature{
    justify-content:center;
}

form input{
    padding:14px;
}

form button{
    padding:15px;
}

.popup-content h2{
    font-size:22px;
}

.popup-content td{
    font-size:14px;
}

.proceed{
    font-size:15px;
}

}

/* ==========================================
   DARK MODE SUPPORT
========================================== */

@media(prefers-color-scheme:dark){

body{
    background:#111827;
    color:#fff;
}

.card,
.banner,
.feature,
.trust div,
.accordion,
.panel,
.popup-content{
    background:#1f2937;
    color:#fff;
}

.panel p{
    color:#d1d5db;
}

form input{
    background:#111827;
    color:#fff;
    border:1px solid #374151;
}

form input::placeholder{
    color:#9ca3af;
}

footer{
    background:#030712;
}

}