/* Master Stylesheet - FinoraWise India Exact Reference Design */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Primary Brand: Royal Cobalt / Electric Sapphire */
    --primary-blue: #1e40af;
    --primary-blue-hover: #1d4ed8;
    --primary-accent: #2563eb;
    --primary-accent-light: #eff6ff;

    /* Primary Accent Mapped to Royal Blue */
    --primary-orange: #2563eb;
    --primary-orange-hover: #1d4ed8;

    /* Secondary Accent: Rich Amber Gold (VIP Cards, Badges, Highlights) */
    --gold-accent: #d97706;
    --gold-accent-hover: #b45309;
    --gold-light: #fffbeb;
    --gold-border: #fde68a;

    /* Deep Corporate Navy */
    --navy-dark: #0a192f;
    --navy-card: #0f172a;
    --navy-subtle: #1e293b;

    /* Canvas & Surface Colors */
    --bg-light: #f8fafc;
    --bg-warm: #f0f6ff;
    --card-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Top Bar */
.topbar {
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.topbar a {
    color: #0f172a;
    text-decoration: none;
}

.topbar a:hover {
    color: var(--primary-orange);
}

@media (max-width: 991.98px) {
    .topbar {
        display: none !important;
    }
}

/* Navbar */
.navbar-lending {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #e2e8f0;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--navy-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 72px;
    max-height: 82px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.brand-logo-img-footer {
    height: 80px;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
    transition: transform 0.2s ease;
}

.brand-logo-img-footer:hover {
    transform: scale(1.02);
}

.brand-logo .logo-icon-box {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-orange) 100%);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.brand-logo span span {
    color: var(--primary-orange);
}

.nav-link-custom {
    font-weight: 700;
    font-size: 13px;
    color: var(--navy-dark);
    padding: 8px 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary-orange) !important;
}

/* Hero Section (Matching Reference Image Exact) */
.hero-light-exact {
    background: radial-gradient(circle at 90% 10%, #dbeafe 0%, #f8fafc 55%, #ffffff 100%);
    padding: 60px 0 70px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hero-light-exact h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.hero-light-exact p {
    font-size: 16px;
    color: #475569;
    font-weight: 500;
}

.btn-hero-orange,
.btn-hero-blue {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-hero-orange:hover,
.btn-hero-blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.4);
}

.btn-hero-navy {
    background: linear-gradient(135deg, #0a192f 0%, #0b1a3a 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(11, 26, 58, 0.15);
}

.btn-hero-navy:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 26, 58, 0.25);
}

.btn-hero-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.btn-hero-gold:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: white;
    transform: translateY(-2px);
}

.badge-dot-live {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-stats-ribbon {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-top: 45px;
}

.hero-stat-item {
    text-align: center;
    padding: 8px 12px;
}

.hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0b1a3a;
    line-height: 1.1;
    margin-bottom: 3px;
}

.hero-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Sanction Badge */
.floating-sanction-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0a192f 0%, #1e40af 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(11, 26, 58, 0.25);
    z-index: 10;
}

.floating-sanction-badge .avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.floating-sanction-badge .badge-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: #e0f2fe;
}

.floating-sanction-badge .badge-sub {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

/* Section 1: Consultation Cards */
.card-consultation {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

.card-consultation:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(30, 64, 175, 0.08);
    border-color: #bfdbfe;
}

.card-consultation img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-consultation .card-body {
    padding: 24px;
}

/* Section 2: Why FinoraWise India */
.why-checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.why-checklist li {
    font-weight: 700;
    font-size: 15px;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-checklist li i {
    color: #2563eb;
    font-size: 16px;
}

/* Section 3: Membership Cards (Exact Reference Design) */
.card-visual-navy {
    background: linear-gradient(135deg, #07132b 0%, #1e293b 100%);
    color: white;
    border-radius: 14px;
    padding: 24px;
    position: relative;
    box-shadow: 0 12px 30px rgba(7, 19, 43, 0.25);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-visual-orange {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    color: white;
    border-radius: 14px;
    padding: 24px;
    position: relative;
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-chip {
    width: 32px;
    height: 24px;
    background: #f1c40f;
    border-radius: 4px;
    display: inline-block;
}

/* Section 4: NBFC Partners */
.nbfc-logo-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-weight: 800;
    font-size: 20px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, border-color 0.2s;
}

.nbfc-logo-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
}

/* Section 5: Happy Customers */
.customer-card-exact {
    background: #f0f7ff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #bfdbfe;
    position: relative;
    height: 100%;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.05);
}

.customer-quote-icon {
    font-size: 32px;
    color: #2563eb;
    opacity: 0.85;
    line-height: 1;
}

.customer-avatar-box {
    width: 80px;
    height: 90px;
    border-radius: 10px;
    border: 3px solid #2563eb;
    overflow: hidden;
    margin: 0 auto 12px auto;
}

.customer-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section 6: Grand CTA Banner */
.cta-banner-exact {
    background: linear-gradient(135deg, #07132b 0%, #1e40af 100%);
    color: white;
    padding: 55px 0;
    text-align: center;
    border-top: 1px solid #1e3a8a;
}

.btn-cta-white {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b1a3a;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
}

.btn-cta-white:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.45);
}

/* Footer Section */
.footer-exact {
    background: #f8fafc;
    color: #475569;
    padding: 60px 0 30px 0;
    border-top: 1px solid #e2e8f0;
}

.footer-exact a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-exact a:hover {
    color: var(--primary-orange);
}

.social-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.social-circle-btn:hover {
    opacity: 0.85;
}

.sub-footer-black {
    background: #07132b;
    color: #94a3b8;
    padding: 16px 0;
    font-size: 13px;
}

@media (max-width: 576px) {
    .brand-logo-img {
        height: 52px;
        max-height: 55px;
    }
}

/* Multi-Step Application Flow (Matching Screenshots) */
.bg-warm-yellow {
    background-color: #feeed6;
    color: #0b1a3a;
}

.profile-tab-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab-btn.active {
    background: var(--primary-accent);
    color: #ffffff;
    border-color: var(--primary-accent);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.emi-card-box {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.emi-card-box:hover {
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.emi-card-box.active {
    border-color: var(--primary-accent);
    background: #eff6ff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.emi-card-box .radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.emi-card-box.active .radio-indicator {
    border-color: var(--primary-accent);
    background: var(--primary-accent);
}

.emi-card-box.active .radio-indicator::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -2px;
    left: 4px;
}

.nbfc-offer-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.feature-badge-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Step 0 - Screenshot 2 Specific Custom Styles */
.step0-hero-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nbfc-partner-logo {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.nbfc-badge-cashe {
    color: #d97706;
    font-family: 'Outfit', sans-serif;
}

.nbfc-badge-moneytap {
    color: #1e3a8a;
    font-family: 'Outfit', sans-serif;
}

.nbfc-badge-wekize {
    color: #ea580c;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

.nbfc-badge-investkraft {
    color: #b91c1c;
    font-family: 'Outfit', sans-serif;
}

.loan-range-slider {
    accent-color: #0d9488;
    height: 6px;
    border-radius: 3px;
}

.instant-loan-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.otp-box-input {
    width: 55px !important;
    max-width: 55px !important;
    height: 60px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: all 0.2s ease-in-out !important;
    flex: 0 0 55px !important;
    padding: 0 !important;
    margin: 0 4px !important;
}

.otp-box-input:focus {
    border-color: var(--primary-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
    outline: none !important;
}

/* Testimonial & Payment Logo Enhancements */
.testimonial-card-wrapper {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
}

.testimonial-card-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15) !important;
}

.testimonial-img-fit {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
    border-radius: 12px;
    background: #f0f7ff;
    display: block;
    margin: 0 auto;
}

.hover-zoom-img {
    transition: transform 0.3s ease;
}

.hover-zoom-img:hover {
    transform: scale(1.02);
}

@media (max-width: 767.98px) {
    .testimonial-card-wrapper {
        padding: 6px !important;
        border-radius: 12px !important;
        margin-bottom: 12px;
    }

    .testimonial-img-fit {
        max-height: 320px !important;
        border-radius: 10px !important;
    }

    #testimonialCarousel {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Footer & Logo Responsiveness Fixes */
.brand-logo-img-footer {
    height: 76px !important;
    max-height: 85px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.footer-exact {
    background: #ffffff;
    color: #475569;
    padding: 45px 0 20px 0;
    border-top: 1px solid #e2e8f0;
}

.footer-exact a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-exact a:hover {
    color: var(--primary-accent, #2563eb);
}

.sub-footer-black {
    background: #0b1a3a;
    color: #94a3b8;
    font-size: 12px;
}

/* =========================================================
   Dhanjyoti-Inspired Mobile-Optimized Stepper & Form View
   ========================================================= */
.dhanjyoti-stepper-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

.dhanjyoti-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 0 0 76px;
    transition: all 0.3s ease;
}

.stepper-step .step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-step .step-circle .step-check {
    display: none;
    font-size: 15px;
}

.stepper-step .step-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-top: 6px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
    text-align: center;
}

/* Active Step: vibrant emerald green matching Dhanjyoti */
.stepper-step.active .step-circle {
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22), 0 4px 12px rgba(22, 163, 74, 0.35) !important;
    transform: scale(1.06);
}

.stepper-step.active .step-label {
    color: #16a34a !important;
    font-weight: 800;
}

/* Completed Step: green with white checkmark */
.stepper-step.completed .step-circle {
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.25) !important;
}

.stepper-step.completed .step-circle .step-num {
    display: none;
}

.stepper-step.completed .step-circle .step-check {
    display: inline-block;
}

.stepper-step.completed .step-label {
    color: #16a34a;
}

/* Connecting Horizontal Progress Lines */
.stepper-line {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    margin: 0 6px 20px 6px;
    border-radius: 2px;
    transition: background 0.4s ease;
}

.stepper-line.active {
    background: #16a34a;
}

/* Mobile Specific Optimizations */
@media (max-width: 767.98px) {
    .bg-warm-yellow {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    
    .bg-warm-yellow h1 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    .bg-warm-yellow p {
        font-size: 0.82rem !important;
    }

    .container.py-5 {
        padding-top: 0.75rem !important;
        padding-bottom: 1.5rem !important;
    }

    .step-card-view .bg-white {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }

    .step-card-view h4 {
        font-size: 1.25rem !important;
    }

    .stepper-step {
        flex: 0 0 62px;
    }

    .stepper-step .step-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .stepper-step .step-label {
        font-size: 9.5px;
    }

    .stepper-line {
        margin-bottom: 18px;
    }
}