/* =====================================================================
   IDFC FIRST-inspired theme overrides for RapidLab frontend
   Loaded AFTER style.css so all rules win without !important spam.
   Scoped to public frontend (.main-wrapper / .header / .footer / sections).
   ===================================================================== */

:root {
    --idfc-primary: #9C1A2E;
    --idfc-primary-600: #82152a;
    --idfc-primary-700: #6c0f23;
    --idfc-accent: #E11D48;
    --idfc-ink: #1A1D29;
    --idfc-ink-2: #2A2F3D;
    --idfc-muted: #5A6478;
    --idfc-line: #ECEEF2;
    --idfc-soft: #F7F7F9;
    --idfc-soft-2: #FAFAFC;
    --idfc-shadow: 0 10px 30px rgba(20, 24, 40, .06);
    --idfc-shadow-lg: 0 18px 50px rgba(20, 24, 40, .10);
    --idfc-radius: 14px;
    --idfc-radius-lg: 20px;
}

/* ----- Typography refresh ----- */
body {
    color: var(--idfc-ink-2);
    background: #ffffff;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.main-wrapper h1,
.main-wrapper h2,
.main-wrapper h3,
.main-wrapper h4,
.main-wrapper h5,
.main-wrapper h6,
.header h1, .header h2, .header h3, .header h4, .header h5, .header h6 {
    color: var(--idfc-ink);
    font-weight: 700;
    letter-spacing: -.01em;
}
.main-wrapper h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.1; font-weight: 800; }
.main-wrapper h2 { font-size: clamp(1.75rem, 2.6vw, 2.6rem); line-height: 1.15; }
.main-wrapper h3 { font-size: 1.5rem; }
.main-wrapper h4 { font-size: 1.15rem; }

.main-wrapper p { color: var(--idfc-muted); }

/* Eyebrow (section subheading) */
.main-wrapper .text--primary.xxl-text,
.main-wrapper .xxl-text.text--primary {
    color: var(--idfc-primary) !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    position: relative;
    padding-left: 38px;
    display: inline-block;
}
.main-wrapper .text--primary.xxl-text::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 2px;
    background: var(--idfc-primary);
    transform: translateY(-50%);
}

.t-short-para {
    color: var(--idfc-muted);
    max-width: 640px;
    line-height: 1.7;
}

/* ----- Section spacing rhythm + alternating bands ----- */
.main-wrapper section,
.main-wrapper .section,
.main-wrapper .section--sm {
    padding-top: 96px;
    padding-bottom: 96px;
    background: #ffffff;
}
.main-wrapper section + section,
.main-wrapper .section + section,
.main-wrapper section + .section,
.main-wrapper .section + .section {
    /* every other = soft */
}
.main-wrapper section:nth-of-type(even),
.main-wrapper > .section:nth-of-type(even) {
    background: var(--idfc-soft);
}
.main-wrapper .section__head { margin-bottom: 48px; }
@media (max-width: 767px) {
    .main-wrapper section,
    .main-wrapper .section,
    .main-wrapper .section--sm { padding-top: 64px; padding-bottom: 64px; }
}

/* ====================================================================
   TOPBAR (.top-header)
   ==================================================================== */
/* ====================================================================
   TOPBAR (.top-header) — sleek sticky strip above the menu
   ==================================================================== */
.top-header {
    background: var(--idfc-primary) !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 12.5px;
    position: relative;          /* NOT sticky \u2014 scrolls away with the page */
    z-index: 1019;
    height: 36px;
    overflow: hidden;
}
body.topbar-hidden .top-header { /* legacy hook \u2014 no-op now, kept harmless */ }
.top-header > .container,
.top-header > .container > .row,
.top-header > .container > .row > .col-lg-12 {
    height: 100%;
}
.top-header .list--row.d-flex {
    height: 36px;
    align-items: center !important;
    margin: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}
.top-header .vf-info-list {
    display: flex; flex-wrap: nowrap; gap: 24px; margin: 0;
    align-items: center;
    list-style: none;
    padding: 0;
}
.top-header .vf-info-list__item { padding: 0; }
.top-header .vf-info-list__item .d-flex {
    align-items: center !important;
    height: 36px;
}
.top-header .vf-info-list__item .flex-shrink-0 { display: none; }   /* hide bulky icon images */
.top-header .vf-info-list__item .ms-3 {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: 0 !important;
    line-height: 1;
}
.top-header .label {
    font-size: 10px !important;
    letter-spacing: .14em;
    color: rgba(255,255,255,.6) !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-weight: 600;
}
.top-header .vf-info-list__text,
.top-header a.vf-info-list__text {
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1 !important;
    margin: 0;
    text-decoration: none;
}
.top-header a.vf-info-list__text:hover { text-decoration: underline; }
.top-header .language-wrapper {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18) !important;
    height: 26px !important;
    border-radius: 999px;
    padding: 2px 12px !important;
    gap: 8px !important;
}
.top-header .language_text_select,
.top-header .collapse-icon { color: #fff; font-size: 11.5px; line-height: 1; }
.top-header .language_flag img { height: 14px !important; width: 14px !important; }

@media (max-width: 991px) {
    .top-header { display: none !important; }   /* clean mobile — hide contact strip */
}

/* ====================================================================
   HEADER (.header)
   ==================================================================== */
.header {
    background: #ffffff !important;
    box-shadow: none;
    border-bottom: 0 !important;
    transition: box-shadow .25s ease, background .25s ease, padding .25s ease;
    padding: 0 !important;
    position: sticky;
    top: 0;                       /* topbar is not sticky; header sticks at viewport top */
    z-index: 1020;
}
@media (max-width: 991px) {
    .header { top: 0; }
}
.header .container { max-width: 1240px; }
.header .navbar {
    min-height: 76px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    box-shadow: none !important;
}
.header.is-stuck,
.header.sticky {
    box-shadow: 0 6px 20px rgba(20,24,40,.06);
}
.header.is-stuck .navbar { min-height: 64px; }

/* Logo */
.header .logo { display: inline-flex; align-items: center; margin-right: 36px; }
.header .logo img { max-height: 46px; transition: max-height .25s ease; }
.header.is-stuck .logo img { max-height: 38px; }

/* Push nav and login to the right side */
.header .navbar-collapse { flex-grow: 1; }
.header .navbar-nav {
    gap: 2px;
    margin-left: auto;        /* right-align the nav */
    align-items: center;
}

/* Nav links \u2014 IDFC slim refined style */
.header .navbar-nav .nav-link {
    color: var(--idfc-ink) !important;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .005em;
    padding: 28px 18px !important;
    position: relative;
    transition: color .2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.header.is-stuck .navbar-nav .nav-link { padding: 22px 18px !important; }

/* Centered thin underline indicator */
.header .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 3px;
    background: var(--idfc-primary);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .28s ease;
    border-radius: 3px 3px 0 0;
}
.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active {
    color: var(--idfc-primary) !important;
}
.header .navbar-nav .nav-link:hover::after,
.header .navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Subtle vertical divider before the login CTA */
.header .account {
    margin-left: 20px;
    padding-left: 24px;
    position: relative;
}
.header .account::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 28px;
    background: var(--idfc-line);
}

/* Login button \u2014 IDFC outlined pill with arrow */
.header .account .btn--base,
.header .btn--base {
   background: var(--idfc-primary) !important;
    border: 1.5px solid var(--idfc-primary);
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px 10px 24px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(156,26,46,.18);
    transition: all .25s ease;
    position: relative;
}
.header .account .btn--base::after {
    content: "\2192";
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    transition: transform .25s ease;
}
.header .account .btn--base:hover {
    background: var(--idfc-primary-600);
    border-color: var(--idfc-primary-600);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(156,26,46,.30);
    color: #fff;
}
.header .account .btn--base:hover::after { transform: translateX(3px); }

/* Mobile hamburger */
.header .header-button {
    color: var(--idfc-primary);
    border: 1px solid var(--idfc-line);
    border-radius: 8px;
    padding: 6px 10px;
    margin-left: auto;
    background: #fff;
}
.header .header-button:focus { box-shadow: 0 0 0 3px rgba(156,26,46,.15); }

/* Mobile collapse panel */
@media (max-width: 991px) {
    .header .navbar { min-height: 62px; flex-wrap: wrap; }
    .header .navbar-collapse {
        background: #fff;
        border-top: 1px solid var(--idfc-line);
        margin: 12px -12px 0;
        padding: 8px 16px 16px;
    }
    .header .navbar-nav { margin-left: 0; align-items: stretch; gap: 0; }
    .header .navbar-nav .nav-link { padding: 14px 4px !important; border-bottom: 1px solid var(--idfc-line); }
    .header .navbar-nav .nav-link::after { display: none; }
    .header .account { margin: 12px 0 0; padding-left: 0; }
    .header .account::before { display: none; }
}

/* ====================================================================
   GLOBAL BUTTONS
   ==================================================================== */
.btn--base {
    background: var(--idfc-primary) !important;
    border-color: var(--idfc-primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 6px 18px rgba(156,26,46,.18);
    transition: all .25s ease;
}
.btn--base:hover, .btn--base:focus {
    background: var(--idfc-primary-600) !important;
    border-color: var(--idfc-primary-600) !important;
    box-shadow: 0 12px 28px rgba(156,26,46,.32);
    transform: translateY(-1px);
    color: #fff !important;
}
.btn--outline {
    background: transparent !important;
    color: var(--idfc-primary) !important;
    border: 2px solid var(--idfc-primary) !important;
    border-radius: 999px !important;
    font-weight: 600;
}
.btn--outline:hover {
    background: var(--idfc-primary) !important;
    color: #fff !important;
}
.btn--xl { padding: 14px 32px !important; font-size: 15px !important; }

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
    position: relative;
    background-color: #ffffff !important;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg,
            #ffffff 0%,
            rgba(255,255,255,.96) 38%,
            rgba(255,255,255,.55) 60%,
            rgba(255,255,255,0) 80%),
        radial-gradient(ellipse at top left, rgba(156,26,46,.10), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(225,29,72,.08), transparent 60%);
    z-index: 1;
}
.hero::after {
    content: "";
    position: absolute;
    left: -120px; bottom: -120px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156,26,46,.10), transparent 70%);
    z-index: 1;
}
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__content .row { justify-content: flex-start !important; }
.hero__content .col-lg-9,
.hero__content .col-xl-7 {
    text-align: left !important;
    max-width: 720px;
}
.hero__content-title.t-text-white,
.hero__content-title {
    color: var(--idfc-ink) !important;
    font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}
.hero__content-title::after {
    content: "";
    display: block;
    width: 72px; height: 4px;
    background: var(--idfc-primary);
    border-radius: 4px;
    margin-top: 28px;
}
.hero .btn--outline {
    background: var(--idfc-primary) !important;
    color: #fff !important;
    border-color: var(--idfc-primary) !important;
    margin-top: 32px !important;
    padding: 16px 38px !important;
    box-shadow: 0 14px 32px rgba(156,26,46,.28);
}
.hero .btn--outline:hover {
    background: var(--idfc-primary-600) !important;
    border-color: var(--idfc-primary-600) !important;
}

/* Floating stat chip (pure CSS, no new content) */
.hero__content::after {
    content: "Trusted by 10,000+ borrowers";
    position: absolute;
    left: 12px; bottom: -28px;
    background: #fff;
    color: var(--idfc-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: var(--idfc-shadow);
    border: 1px solid var(--idfc-line);
}
@media (max-width: 768px) {
    .hero { min-height: 520px; }
    .hero__content::after { display: none; }
}

/* ====================================================================
   ABOUT / FEATURE shared
   ==================================================================== */
.main-wrapper section img.radious-5 {
    border-radius: var(--idfc-radius-lg) !important;
    box-shadow: var(--idfc-shadow-lg);
}
.main-wrapper section img.img-fluid { transition: transform .4s ease; }
.main-wrapper section .col-lg-6:hover img.radious-5,
.main-wrapper section .col-xl-7:hover img.radious-5,
.main-wrapper section .col-xl-6:hover img.radious-5 { transform: translateY(-4px); }

/* Feature list items */
section .icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(156,26,46,.08);
    color: var(--idfc-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    transition: all .25s ease;
}
section .icon i, section .icon svg { color: var(--idfc-primary); }
section .d-flex:hover > .icon {
    background: var(--idfc-primary);
    color: #fff;
    transform: rotate(-4deg);
}
section .d-flex:hover > .icon i { color: #fff; }
section .content h5 {
    color: var(--idfc-ink);
    font-weight: 700;
    margin-bottom: 6px;
}
section .content p { color: var(--idfc-muted); font-size: 14.5px; }

/* ====================================================================
   PLAN CARDS (partials/loan_plans)
   ==================================================================== */
.loan-card, .plan-card, .plan-box,
.loan-plan, .plan-item, .loan-item {
    background: #fff;
    border-radius: var(--idfc-radius-lg) !important;
    border: 1px solid var(--idfc-line);
    box-shadow: var(--idfc-shadow);
    transition: all .3s ease;
    overflow: hidden;
    position: relative;
}
.loan-card:hover, .plan-card:hover, .plan-box:hover,
.loan-plan:hover, .plan-item:hover, .loan-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(156,26,46,.14);
    border-color: rgba(156,26,46,.25);
}

/* Generic card hardening for any plan markup */
.section .row > [class*="col-"] > .card,
.section .row > [class*="col-"] > .bg--white,
.section .row > [class*="col-"] > .plan {
    background: #fff;
    border-radius: var(--idfc-radius-lg);
    border: 1px solid var(--idfc-line);
    box-shadow: var(--idfc-shadow);
    transition: all .3s ease;
}
.section .row > [class*="col-"] > .card:hover { transform: translateY(-6px); box-shadow: var(--idfc-shadow-lg); }

/* Highlight first plan in grid as "featured" */
.section .row.g-4 > [class*="col-"]:first-child > div,
.section .container .row > [class*="col-"]:first-child > .loan-card,
.section .container .row > [class*="col-"]:first-child > .plan-card {
    position: relative;
    border-color: var(--idfc-primary) !important;
    box-shadow: 0 18px 44px rgba(156,26,46,.18);
}

/* ====================================================================
   COUNTER section
   ==================================================================== */
.counter-section {
    position: relative;
    background-color: var(--idfc-ink) !important;
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    padding: 80px 0 !important;
}
.counter-section::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(26,29,41,.92), rgba(108,15,35,.78));
}
.counter-section > .container { position: relative; z-index: 2; }
.counter-list__item { text-align: center; padding: 20px 0; }
.counter-list__item .title span {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    letter-spacing: -.02em;
    background: linear-gradient(180deg, #fff 0%, #f6cfd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.counter-list__item p {
    color: rgba(255,255,255,.78) !important;
    font-size: 13px !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
}
.counter-section .col-lg-3 { position: relative; }
.counter-section .col-lg-3:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0; top: 20%;
    width: 1px; height: 60%;
    background: rgba(255,255,255,.12);
}

/* ====================================================================
   TESTIMONIAL
   ==================================================================== */
.feedback-section {
    position: relative;
    background: radial-gradient(ellipse at top left, #b51e34 0%, #8e1426 45%, #6c0f23 100%) !important;
    overflow: hidden;
    isolation: isolate;
}
.feedback-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.06), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,.25), transparent 50%);
    z-index: 0;
    pointer-events: none;
}
.feedback-section > * { position: relative; z-index: 1; }
.feedback-section .container.p-5 {
    background: #fff;
    border-radius: var(--idfc-radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
    border: 1px solid rgba(255,255,255,.08);
}

/* Section heading text on maroon background */
.feedback-section .section__head .text--primary.xxl-text,
.feedback-section .section__head .xxl-text.text--primary {
    color: #fff !important;
}
.feedback-section .section__head .text--primary.xxl-text::before {
    background: #fff !important;
}
.feedback-section .section__head h2,
.feedback-section .section__head h3 {
    color: #fff !important;
}
.feedback-section .section__head p,
.feedback-section .section__head .t-short-para {
    color: rgba(255,255,255,.85) !important;
}

.feedback-slider-for__img-is {
    border-radius: var(--idfc-radius-lg);
    box-shadow: var(--idfc-shadow);
    border: 6px solid #fff;
    outline: 1px solid var(--idfc-line);
}
.feedback-slider-nav__quote {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(156,26,46,.10);
    color: var(--idfc-primary);
    font-size: 26px;
    margin-bottom: 18px;
}
.feedback-slider-nav__quote i { color: var(--idfc-primary); }
.feedback-slider-nav__title { color: var(--idfc-ink); font-weight: 700; }
.feedback-slider-nav__sub-title { color: var(--idfc-primary); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.feedback-slider-nav__text { color: var(--idfc-ink-2); font-size: 17px; line-height: 1.7; font-style: italic; }

/* ====================================================================
   FAQ accordion
   ==================================================================== */
.vf-accordion .vf-accordion__item {
    background: #fff;
    border: 1px solid var(--idfc-line) !important;
    border-radius: var(--idfc-radius) !important;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all .25s ease;
}
.vf-accordion .vf-accordion__item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--idfc-primary) !important;
    box-shadow: 0 12px 28px rgba(156,26,46,.10);
}
.vf-accordion .vf-accordion__btn {
    background: #fff !important;
    color: var(--idfc-ink) !important;
    font-weight: 600;
    font-size: 16px;
    padding: 22px 24px;
    box-shadow: none !important;
    border: none !important;
}
.vf-accordion .vf-accordion__btn:not(.collapsed) {
    color: var(--idfc-primary) !important;
    background: rgba(156,26,46,.04) !important;
}
.vf-accordion .vf-accordion__btn::after {
    background-image: none !important;
    content: "+";
    font-family: inherit;
    font-size: 26px;
    font-weight: 300;
    color: var(--idfc-primary);
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: rgba(156,26,46,.08);
    transition: all .25s ease;
    transform: none !important;
}
.vf-accordion .vf-accordion__btn:not(.collapsed)::after {
    content: "−";
    background-color: var(--idfc-primary);
    color: #fff;
}
.vf-accordion .vf-accordion__body {
    padding: 4px 24px 22px;
    color: var(--idfc-muted);
    line-height: 1.75;
}

/* ====================================================================
   BLOG CARDS
   ==================================================================== */
.blog-post {
    background: #fff;
    border-radius: var(--idfc-radius-lg);
    border: 1px solid var(--idfc-line);
    box-shadow: var(--idfc-shadow);
    overflow: hidden;
    transition: all .3s ease;
    position: relative;
}
.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(20,24,40,.12);
}
.blog-post__img { display: block; overflow: hidden; }
.blog-post__img-is { width: 100%; transition: transform .5s ease; }
.blog-post:hover .blog-post__img-is { transform: scale(1.06); }
.blog-post__body { padding: 28px 24px 24px; position: relative; }
.blog-post__date {
    position: absolute;
    top: -42px; left: 20px;
    background: var(--idfc-primary);
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(156,26,46,.30);
    min-width: 64px;
}
.blog-post__date h4 { color: #fff !important; font-size: 22px !important; font-weight: 800; line-height: 1; margin-bottom: 2px !important; }
.blog-post__date p { color: rgba(255,255,255,.85) !important; font-size: 11px; letter-spacing: .12em; margin: 0; }
.blog-post__title { color: var(--idfc-ink) !important; font-weight: 700; transition: color .2s ease; }
.blog-post__title:hover { color: var(--idfc-primary) !important; }
.blog-post__meta-icon { color: var(--idfc-primary); }
.blog-post__meta-text a { color: var(--idfc-muted) !important; font-size: 12px; letter-spacing: .08em; }
.blog-post__article { color: var(--idfc-muted); font-size: 14.5px; }

/* ====================================================================
   CLIENT logos slider
   ==================================================================== */
.client-slider {
    padding: 24px 0;
    border-top: 1px solid var(--idfc-line);
    border-bottom: 1px solid var(--idfc-line);
}
.client-slider__item img {
    max-height: 56px;
    filter: grayscale(100%);
    opacity: .55;
    transition: all .3s ease;
}
.client-slider__item img:hover { filter: grayscale(0); opacity: 1; }

/* ====================================================================
   CTA strip (footer top) — IDFC-style dark band with logo badge
   ==================================================================== */
.cta {
    background: linear-gradient(120deg, #1A1D29 0%, #2A2F3D 60%, #2A2F3D 100%);
    border-radius: var(--idfc-radius-lg);
    padding: 32px 40px;
    margin-bottom: -60px;
    position: relative;
    z-index: 5;
    box-shadow: 0 22px 50px rgba(0,0,0,.30);
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute; right: -120px; top: -100px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156,26,46,.35), transparent 65%);
    pointer-events: none;
}

/* Logo column: white rounded badge holding the real logo */
.cta .footer-logo {
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    min-height: 78px;
    max-width: 220px;
    margin: 0 auto;
}
.cta .footer-logo img {
    filter: none !important;        /* undo the brightness/invert from earlier */
    max-height: 56px;
    width: auto;
    display: block;
}

/* Text + button row */
.cta .list--row {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cta .list--row__item { padding: 0; }

.cta h3 {
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
    line-height: 1.2;
    margin: 0 0 6px !important;
    letter-spacing: -.01em;
}
.cta p {
    color: rgba(255,255,255,.78) !important;
    margin: 0 !important;
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 640px;
}

/* Take Loan button — white pill with arrow */
.cta .btn--base {
    background: #fff !important;
    color: var(--idfc-primary) !important;
    border: 1.5px solid #fff !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-size: 14.5px !important;
    font-weight: 700;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(0,0,0,.30);
    transition: all .25s ease;
    white-space: nowrap;
}
.cta .btn--base::after {
    content: "\2192";
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    transition: transform .25s ease;
}
.cta .btn--base:hover {
    background: var(--idfc-primary) !important;
    color: #fff !important;
    border-color: var(--idfc-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(156,26,46,.40);
}
.cta .btn--base:hover::after { transform: translateX(3px); }

@media (max-width: 991px) {
    .cta { padding: 26px 24px; text-align: center; }
    .cta .list--row { justify-content: center; gap: 18px; }
    .cta .footer-logo { margin-bottom: 14px; }
    .cta h3, .cta p { text-align: center !important; padding-left: 0 !important; }
}

/* ====================================================================
   FOOTER  (IDFC FIRST-style maroon)
   ==================================================================== */
.footer {
    background: #9C1A2E !important;
    background-image:
        radial-gradient(ellipse at top, rgba(255,255,255,.04), transparent 60%),
        linear-gradient(180deg, #a51c31 0%, #8E1426 100%) !important;
    color: rgba(255,255,255,.85);
    padding-top: 200px;
    position: relative;
    overflow: hidden;
}

/* Big watermark heading at top of footer */
.footer::after {
    content: "ON A MISSION TO BUILD A CUSTOMER-FRIENDLY EXPERIENCE";
    position: absolute;
    top: 110px;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,.10);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 72px);
    letter-spacing: .01em;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    padding: 0 20px;
    z-index: 0;
}
.footer > * { position: relative; z-index: 1; }

/* Maroon accent strip on top */
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,.12);
}

.footer-top { padding-bottom: 56px; padding-top: 30px; }

.footer-top h4 {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 22px !important;
    padding-bottom: 0;
    text-transform: none;
}
.footer-top h4::after { display: none; }

.footer .list--column__item {
    list-style: none;
}
.footer .list--column__item a {
    color: rgba(255,255,255,.85) !important;
    font-size: 14px;
    padding: 5px 0;
    display: inline-block;
    transition: all .2s ease;
    line-height: 1.4;
}
.footer .list--column__item a:hover {
    color: #fff !important;
    text-decoration: underline;
    transform: none;
}
.footer .t-short-para { color: rgba(255,255,255,.85) !important; font-size: 14px; }

.footer .social-icon--alt {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: #fff !important;
    border: none;
    transition: all .25s ease;
    margin-right: 14px;
    font-size: 18px;
}
.footer .social-icon--alt:hover {
    background: rgba(255,255,255,.12) !important;
    transform: translateY(-2px);
}
.footer .social-icon--alt i { color: inherit; }

.newsletter {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 4px 4px 4px 18px;
    display: flex; align-items: center;
}
.newsletter__input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    flex: 1;
    font-size: 14px;
    padding: 8px 0;
}
.newsletter__input::placeholder { color: rgba(255,255,255,.65); }
.newsletter__btn {
    background: #fff;
    color: var(--idfc-primary);
    border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all .2s ease;
}
.newsletter__btn:hover { background: var(--idfc-ink); color: #fff; }

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 22px 0;
    background: rgba(0,0,0,.10);
    margin-top: 10px;
}
.footer-copyright p { color: rgba(255,255,255,.85) !important; font-size: 13px; }
.footer-copyright .base--text { color: #fff !important; font-weight: 600; text-decoration: underline; }

/* Scroll-to-top — IDFC yellow accent */
.scroll-top {
    background: #F5C518 !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.30);
    border: none !important;
    color: #1A1D29 !important;
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.scroll-top::after {
    content: "TOP";
    font-size: 9px;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    color: #1A1D29;
    letter-spacing: .1em;
    font-weight: 800;
}
.scroll-top i { margin-top: -10px; }
.scroll-top:hover { background: #ffd83b !important; transform: translateY(-2px); }

/* ====================================================================
   BREADCRUMB (inner pages)
   ==================================================================== */
.breadcrumb-section,
.breadcrumb-wrapper,
section.inner-hero,
section.page-title {
    background: linear-gradient(120deg, var(--idfc-ink) 0%, var(--idfc-primary-700) 100%) !important;
    padding: 90px 0 !important;
    position: relative;
}
.breadcrumb-section h2,
.breadcrumb-wrapper h2,
section.inner-hero h2 {
    color: #fff !important;
    font-weight: 800;
}
.breadcrumb-section .breadcrumb a,
.breadcrumb-section .breadcrumb-item,
.breadcrumb-section .breadcrumb-item.active {
    color: rgba(255,255,255,.85) !important;
}

/* ====================================================================
   GENERIC FORM/INPUT polish on public pages
   ==================================================================== */
.main-wrapper .form-control,
.main-wrapper .form-select {
    border-radius: 10px;
    border: 1px solid var(--idfc-line);
    padding: 12px 16px;
    background: #fff;
    transition: all .2s ease;
}
.main-wrapper .form-control:focus,
.main-wrapper .form-select:focus {
    border-color: var(--idfc-primary);
    box-shadow: 0 0 0 4px rgba(156,26,46,.10);
}

/* ====================================================================
   LINK color
   ==================================================================== */
.main-wrapper a.t-link--primary:hover,
.main-wrapper a.base--text { color: var(--idfc-primary) !important; }

/* Reset section background on hero so the alternating rule above doesn't override */
.main-wrapper .hero { padding: 0 !important; background-color: #fff !important; }

/* ====================================================================
   LOAN CALCULATORS SECTION
   ==================================================================== */
.loan-calc-section {
    position: relative;
    padding: 96px 0 !important;
    background: radial-gradient(ellipse at top left, #b51e34 0%, #8e1426 45%, #6c0f23 100%) !important;
    overflow: hidden;
    isolation: isolate;
}
.loan-calc-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.06), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,.25), transparent 50%);
    z-index: 0;
}
.loan-calc-section .container { z-index: 2; }
.loan-calc-section .text--maroon,
.loan-calc-section .text\-\-maroon { color: var(--idfc-primary) !important; }

.loan-calc-title {
    color: #fff !important;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 14px;
}
.loan-calc-subtitle {
    color: rgba(255,255,255,.85) !important;
    font-size: 17px;
    margin-bottom: 32px;
}
.loan-calc-illustration {
    max-width: 520px;
}
.loan-calc-illustration svg { width: 100%; height: auto; display: block; }

/* Card */
.loan-calc-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
    overflow: hidden;
    color: var(--idfc-ink);
}

/* Tabs */
.loan-calc-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--idfc-line);
    padding: 4px 8px 0;
    margin: 0;
    gap: 0;
    scrollbar-width: thin;
}
.loan-calc-tabs::-webkit-scrollbar { height: 4px; }
.loan-calc-tabs::-webkit-scrollbar-thumb { background: var(--idfc-line); border-radius: 4px; }
.loan-calc-tabs .nav-item { flex: 0 0 auto; }
.loan-calc-tabs .nav-link {
    background: transparent !important;
    color: var(--idfc-muted) !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 16px 18px !important;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}
.loan-calc-tabs .nav-link:hover { color: var(--idfc-ink) !important; }
.loan-calc-tabs .nav-link.active {
    color: var(--idfc-ink) !important;
    border-bottom-color: var(--idfc-primary) !important;
}

/* Body */
.loan-calc-body {
    padding: 28px 28px 8px;
    background: linear-gradient(180deg, #fdf6f7 0%, #fff 80%);
}
.calc-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--idfc-ink);
    margin: 0 0 22px;
}

.calc-field { margin-bottom: 22px; }
.calc-field-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}
.calc-field-row label {
    font-size: 13px;
    color: var(--idfc-muted);
    font-weight: 500;
    margin: 0;
}
.calc-input-wrap {
    position: relative;
    flex: 0 0 56%;
    max-width: 56%;
}
.calc-input {
    width: 100%;
    height: 44px;
    background: #fff;
    border: 1px solid var(--idfc-line);
    border-radius: 10px;
    padding: 8px 14px 8px 30px;
    font-weight: 700;
    color: var(--idfc-ink);
    font-size: 15px;
    text-align: right;
    transition: all .2s ease;
}
.calc-input:focus {
    outline: none;
    border-color: var(--idfc-primary);
    box-shadow: 0 0 0 4px rgba(156,26,46,.10);
}
.calc-prefix, .calc-suffix {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: var(--idfc-muted);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}
.calc-prefix { left: 12px; }
.calc-suffix { right: 14px; }
.calc-input-wrap:has(.calc-suffix) .calc-input { padding-right: 56px; padding-left: 14px; }

/* Range slider */
.calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(156,26,46,.15);
    outline: none;
    margin: 6px 0 4px;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--idfc-primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(156,26,46,.40);
    cursor: pointer;
    transition: transform .15s ease;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--idfc-primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(156,26,46,.40);
    cursor: pointer;
}
.calc-range-meta {
    display: flex; justify-content: space-between;
    font-size: 11px;
    color: var(--idfc-muted);
    margin-top: 4px;
    letter-spacing: .04em;
}

/* Result blocks */
.emi-result, .elig-result {
    background: #f8e9ec;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 12px;
    margin-bottom: 18px;
}
.emi-result-grid, .elig-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: center;
}
.elig-result-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
.emi-label, .elig-label {
    font-size: 11.5px;
    color: var(--idfc-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 4px;
    font-weight: 600;
}
.emi-value, .elig-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--idfc-ink);
    margin: 0;
    word-break: break-all;
}
.text--maroon { color: var(--idfc-primary) !important; }
.elig-foot {
    grid-column: 1 / -1;
    font-size: 11px;
    color: var(--idfc-muted);
    margin: 8px 0 0;
    font-style: italic;
}

/* Footer */
.loan-calc-footer {
    background: #f8d7dc;
    padding: 22px 28px;
    text-align: center;
}
.loan-calc-footer .btn--base {
    padding: 12px 32px !important;
    font-size: 15px !important;
    width: auto;
    min-width: 220px;
}
.loan-calc-disclaimer { margin: 12px 0 0; }
.loan-calc-disclaimer a {
    font-size: 12px;
    color: var(--idfc-muted) !important;
    text-decoration: underline;
}
.loan-calc-disclaimer-text {
    font-size: 12px;
    color: var(--idfc-muted);
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
    .loan-calc-intro { text-align: center; margin-bottom: 30px; }
    .loan-calc-illustration { margin: 0 auto; max-width: 340px; }
}
@media (max-width: 575px) {
    .loan-calc-section { padding: 60px 0 !important; }
    .loan-calc-body { padding: 22px 18px 4px; }
    .loan-calc-footer { padding: 18px 18px; }
    .emi-result-grid { grid-template-columns: 1fr; gap: 10px; text-align: left; }
    .calc-field-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .calc-input-wrap { flex: 1 1 100%; max-width: 100%; }
    .calc-input { text-align: left; }
}
