/* ==========================================================================
   CashDash Loans - Ultra Modern Bright Fintech Design System
   Stack: Bootstrap 5.3 + Custom Pro Styling
   Theme: Vibrant Royal Blue, Vivid Cyan, Crisp Whites & Slate Accents
   ========================================================================== */

:root {
    /* Brand Colors */
    --cd-primary: #1d4ed8;          /* CashDash Royal Blue */
    --cd-primary-dark: #1e3a8a;     /* Deep Navy Blue */
    --cd-primary-light: #3b82f6;    /* Vibrant Blue */
    --cd-accent: #0284c7;           /* Sky Blue */
    --cd-accent-cyan: #06b6d4;      /* Vivid Cyan */
    --cd-success: #10b981;          /* Emerald Green */
    --cd-warning: #f59e0b;          /* Amber Gold */
    --cd-warning-dark: #d97706;
    --cd-danger: #ef4444;
    
    /* Neutrals & Surfaces */
    --cd-dark: #0f172a;             /* Slate 900 for high-contrast text */
    --cd-slate: #334155;            /* Slate 700 */
    --cd-muted: #64748b;            /* Slate 500 */
    --cd-body-bg: #ffffff;
    --cd-surface-light: #f8fafc;
    --cd-surface-ice: #f0f7ff;
    --cd-border: #e2e8f0;
    --cd-border-focus: #93c5fd;

    /* Typography */
    --cd-font-heading: 'Lexend Deca', sans-serif;
    --cd-font-body: 'Plus Jakarta Sans', sans-serif;

    /* Radii & Transitions */
    --cd-radius-sm: 8px;
    --cd-radius-md: 14px;
    --cd-radius-lg: 20px;
    --cd-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --cd-shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --cd-shadow-hover: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 12px -5px rgba(15, 23, 42, 0.06);
}

body {
    font-family: var(--cd-font-body);
    color: var(--cd-slate);
    background-color: var(--cd-body-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--cd-font-heading);
    color: var(--cd-dark);
    letter-spacing: -0.02em;
}

.x-small {
    font-size: 0.785rem;
}

.tracking-wide {
    letter-spacing: 0.08em;
}

/* ==================== TOP ANNOUNCEMENT BAR ==================== */
.top-announcement-bar {
    background-color: #0b1938;
    color: #e2e8f0;
    font-size: 0.825rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-announcement-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--cd-transition);
}

.top-announcement-bar a:hover {
    color: #38bdf8;
}

/* ==================== MAIN NAVBAR ==================== */
.main-navbar {
    background: #ffffff;
    transition: var(--cd-transition);
    border-bottom: 1px solid var(--cd-border);
    padding: 0.85rem 0;
}

.main-navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--cd-transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--cd-primary);
    background-color: rgba(29, 78, 216, 0.06);
}

/* Mega Dropdown */
.dropdown-mega .mega-menu {
    width: 1180px; max-width: 96vw;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 100%;
    margin-top: 0.5rem;
    background: #ffffff;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid var(--cd-border);
}

@media (max-width: 991.98px) {
    .dropdown-mega .mega-menu {
        width: 100% !important;
        transform: none !important;
        left: 0 !important;
    }
}

.mega-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mega-link-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--cd-dark);
    transition: var(--cd-transition);
}

.mega-link-item:hover {
    background-color: #f0f7ff;
    color: var(--cd-primary);
    transform: translateX(4px);
}

.border-end-lg {
    border-right: 1px solid var(--cd-border);
}

@media (max-width: 991.98px) {
    .border-end-lg {
        border-right: none;
        border-bottom: 1px solid var(--cd-border);
        padding-bottom: 1.5rem;
    }
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--cd-primary) 0%, var(--cd-primary-light) 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
    transition: var(--cd-transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cd-primary-dark) 0%, var(--cd-primary) 100%);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.38);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: var(--cd-transition);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
    color: #0f172a;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg);
    animation: btnShimmer 4s infinite linear;
}

@keyframes btnShimmer {
    0% { transform: translate(-100%, -100%) rotate(30deg); }
    100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* ==================== VIBRANT HERO SECTION (LIGHT & FRESH) ==================== */
.hero-fintech-light {
    position: relative;
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f2fe 55%, #ffffff 100%);
    color: var(--cd-dark);
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero-fintech-light::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-fintech-light::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pristine White Floating Form Card */
.hero-lead-card {
    background: #ffffff;
    border-radius: var(--cd-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
    padding: 2.25rem;
    position: relative;
    z-index: 2;
}

.hero-lead-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.hero-lead-card .form-control,
.hero-lead-card .form-select {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 0.95rem;
    padding: 0.65rem 0.95rem;
    transition: var(--cd-transition);
}

.hero-lead-card .form-control:focus,
.hero-lead-card .form-select:focus {
    background-color: #ffffff;
    border-color: var(--cd-primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
    outline: none;
}

.stat-box-light {
    border-right: 1px solid var(--cd-border);
    padding-right: 1.5rem;
}

.stat-box-light:last-child {
    border-right: none;
    padding-right: 0;
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    background: #ffffff;
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-md);
    transition: var(--cd-transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cd-shadow-hover);
    border-color: rgba(29, 78, 216, 0.35);
}

.product-card .card-thumb-wrap {
    position: relative;
    height: 175px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-card .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-thumb-wrap img {
    transform: scale(1.06);
}

.product-card .badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==================== EMI CALCULATOR ==================== */
.calculator-section {
    background-color: #f8fafc;
    border-top: 1px solid var(--cd-border);
    border-bottom: 1px solid var(--cd-border);
}

.calc-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--cd-shadow-card);
    border: 1px solid var(--cd-border);
    padding: 2.5rem;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cd-primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
    transition: var(--cd-transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-result-card {
    background: linear-gradient(135deg, #0e2a6d 0%, #1e40af 100%);
    border-radius: var(--cd-radius-lg);
    color: #ffffff;
    padding: 2rem;
    box-shadow: 0 15px 30px -5px rgba(14, 42, 109, 0.3);
}

.emi-amount-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.2;
}

.breakdown-bar {
    height: 10px;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
}

.breakdown-bar .bar-principal {
    background-color: #38bdf8;
    transition: width 0.3s ease;
}

.breakdown-bar .bar-interest {
    background-color: #f59e0b;
    transition: width 0.3s ease;
}

/* ==================== STEP CARDS ==================== */
.step-card {
    background: #ffffff;
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-md);
    padding: 2.25rem 1.5rem 1.75rem;
    text-align: center;
    position: relative;
    transition: var(--cd-transition);
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cd-shadow-hover);
    border-color: var(--cd-primary);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cd-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0.5rem auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* ==================== PARTNER BANKS LOGOS ==================== */
.partner-logo-card {
    background: #ffffff;
    border: 1px solid var(--cd-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: var(--cd-transition);
}

.partner-logo-card img {
    max-height: 40px;
    max-width: 120px;
    filter: grayscale(80%);
    opacity: 0.85;
    transition: var(--cd-transition);
}

.partner-logo-card:hover {
    border-color: var(--cd-primary);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.partner-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ==================== INNER PAGE BANNER (VIBRANT ROYAL GRADIENT) ==================== */
.inner-page-banner {
    background: linear-gradient(135deg, #0e2a6d 0%, #1e40af 50%, #0284c7 100%);
    color: #ffffff;
    padding: 60px 0 45px;
    position: relative;
    overflow: hidden;
}

.inner-page-banner::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--cd-transition);
}

.breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #7dd3fc;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #93c5fd;
}

/* ==================== PRODUCT DETAILS STYLING (CORRECTED & POLISHED) ==================== */
.product-details-card {
    border: 1px solid var(--cd-border) !important;
}

.page_main_heading {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--cd-dark);
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.page_main_heading2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cd-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 12px;
    border-left: 4px solid var(--cd-primary);
    line-height: 1.35;
}

.page_main_heading3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cd-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page_main_content {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.cashdash_ui ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.cashdash_ui ul li {
    margin-bottom: 0.75rem;
    color: #334155;
    line-height: 1.7;
}

.cashdash_ui ul li strong {
    color: #0f172a;
    font-weight: 700;
}

/* Tables inside product content */
.product-details-card table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cd-border);
}

.product-details-card table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #cbd5e1;
}

.product-details-card table td {
    padding: 0.75rem 1rem;
    font-size: 0.925rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Product Accordions */
.product-details-card .accordion {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-details-card .accordion-item {
    border: 1px solid var(--cd-border);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #ffffff;
}

.product-details-card .accordion-button {
    font-family: var(--cd-font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--cd-dark);
    padding: 1.1rem 1.25rem;
    background-color: #ffffff;
}

.product-details-card .accordion-button:not(.collapsed) {
    color: var(--cd-primary);
    background-color: #eff6ff;
    box-shadow: none;
}

.product-details-card .accordion-button:focus {
    box-shadow: none;
    border-color: var(--cd-border);
}

.product-details-card .accordion-body {
    padding: 1.25rem;
    color: #475569;
    line-height: 1.75;
    background-color: #ffffff;
}

/* ==================== STICKY SIDEBAR ==================== */
.sticky-sidebar-card {
    position: sticky;
    top: 95px;
    z-index: 10;
    border-radius: var(--cd-radius-lg);
    overflow: hidden;
    box-shadow: var(--cd-shadow-card);
    border: 1px solid var(--cd-border) !important;
}

.sticky-sidebar-card .card-header {
    background: linear-gradient(135deg, var(--cd-primary-dark) 0%, var(--cd-primary) 100%) !important;
}

/* ==================== MODERN MODALS ==================== */
.modern-modal {
    border-radius: 20px;
    overflow: hidden;
}

.modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* ==================== FOOTER ==================== */
.footer-modern {
    background-color: #0b1320;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--cd-transition);
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--cd-transition);
}

.footer-social-btn:hover {
    background: var(--cd-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.35rem;
    }
    .emi-amount-display {
        font-size: 2rem;
    }
    .calc-box {
        padding: 1.5rem;
    }
}
.bg-primary {
        background-color: #1965a2 !important;
}