/* Global Styles */
:root {
    --primary-blue: white;
    --accent-green: #4cc9f0;
    /* Slightly brighter cyan/green for buttons */
    --button-green: #2ec4b6;
    /* The specific green from the image */
    --text-white: #ffffff;
}

html,
body,
input,
button,
select,
textarea,
.form-control,
.form-label,
.navbar-brand,
h1, h2, h3, h4, h5, h6,
p, span, a, label {
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: var(--primary-blue);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100px;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-section {
    /* min-height: 90vh; */
    position: relative;
    padding: 80px 7%;
    /* Increased top/bottom padding slightly */
    background: linear-gradient(45deg, #03355a 40%, #4777f4 100%);
    overflow: hidden;
    /* Ensure pattern doesn't spill */
}

/* Dot pattern overlay on hero – fades from transparent (left) to visible (right) */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 35%, black 60%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 35%, black 60%, black 100%);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-position: center;
    -webkit-mask-position: center;
    pointer-events: none;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    /* Ensure content is above pattern */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .text-warning {
    color: #FDB80A !important;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 500px;
}

.stats-text {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Form Card */
.hero-form-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    /* Ensure form is above pattern/chars */
    gap: 20px;
}

.hero-form-card {
    background: white;
    border-radius: 10px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    color: #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    /* Context for pseudo-element */
    z-index: 2;
    /* Content layer */
    min-height: 520px;
    /* Fixed height as requested */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The layered background shape */
.hero-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    /* Shifted more to the side */
    transform: rotate(5deg) translate(25px, 15px);
    z-index: -1;
    /* Behind the main card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #4a4a4a;
}

.form-control {
    background-color: #f8f9fa;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    height: 60px;
}

.form-control:focus {
    background-color: #f8f9fa;
    outline: none;
    box-shadow: none;
}

/* Input Group Styles */
.hero-form-card .input-group {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
}

.input-group-text {
    background-color: #f8f9fa;
    border: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    padding-left: 20px;
}

.form-check-label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.consent-text a {
    color: #4361ee;
}

.consent-text a:hover {
    color: #3a56d4;
}


/* Blue Header for Form */
.form-header {
    background: linear-gradient(135deg, #3662a6 0%, #2651a0 100%);
    color: white;
    padding: 57px 23px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin: -40px -35px 30px -35px;
    position: relative;
    overflow: hidden;
}

.form-header h3,
.form-header p {
    position: relative;
    z-index: 1;
    color: white;
}

/* Hero-style header (mobile): title, amount, features */
.form-header-hero-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.form-header-hero-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: #FDB80A !important;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-header-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    justify-items: start;
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}

.form-header-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
}

.form-header-feature i {
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Same icon style as desktop hero – plain icons, no 3D circle */
.form-header-hero-features-same-as-hero .form-header-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.form-header .form-header-hero-features-same-as-hero .text-primary {
    color: #93c5fd !important;
}

.form-header .form-header-hero-features-same-as-hero .text-info {
    color: #67e8f9 !important;
}

.form-header .form-header-hero-features-same-as-hero .text-success {
    color: #86efac !important;
}

.form-header .form-header-hero-features-same-as-hero .text-warning {
    color: #fde047 !important;
}

/* Form header background image (network pattern) – keeps gradient visible */
.form-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("assets/bg-cta-subscribe-title.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}


.btn-form-submit {
    /* Updated gradient with new colors */
    background: linear-gradient(45deg, #1c496a, #00a2ff);
    color: white;
    border: none;
    border-radius: 12px;
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(28, 73, 106, 0.3);
}

.btn-form-submit:hover {
    /* Removed hover effects - keeping same appearance */
    color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

/* Flat feature cards (3D/glossy on icon only) */
.feature-card-small {
    position: relative;
}
.feature-card-small.feature-card-blue {
    background: linear-gradient(160deg, #8b7dd8 0%, #6d5bd4 35%, #5543b8 100%);
    color: #fff;
}
.feature-card-small.feature-card-blue h6 { color: #fff; }

.feature-card-small.feature-card-teal {
    background: linear-gradient(160deg, #34d399 0%, #10b981 35%, #059669 100%);
    color: #fff;
}
.feature-card-small.feature-card-teal h6 { color: #fff; }

.feature-card-small.feature-card-gold {
    background: linear-gradient(160deg, #fb7185 0%, #f43f5e 35%, #e11d48 100%);
    color: #fff;
}
.feature-card-small.feature-card-gold h6 { color: #fff; }
.feature-card-small.feature-card-gold p { color: rgba(255, 255, 255, 0.95); }

/* Feature icons – 3D & glossy */
.feature-icon-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.feature-icon-small i {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

/* Icon 3D depth (drop shadows) */
.feature-icon-3d-glossy i {
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
.feature-icon-3d-glossy.icon-blue i { color: #fff; }
.feature-icon-3d-glossy.icon-teal i { color: #fff; }
.feature-icon-3d-glossy.icon-gold i { color: #fff; }

/* Glossy highlight on icon (white top-left) */
.feature-icon-3d-glossy {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto;
}
.feature-icon-3d-glossy::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 35%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
}

/* OTP Input Styles */
.otp-input {
    width: 60px;
    height: 60px;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    background-color: #f8f9fa;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: #4361ee;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* OTP Verification Section */
.otp-verification-section {
    text-align: center;
    padding: 28px 20px 40px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #1c496a, #00a2ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 15px rgba(28, 73, 106, 0.1);
}

.resend-otp-link {
    color: #1c496a;
}

.resend-otp-link:hover {
    color: #00a2ff;
}

/* Hide step 2 initially handled by d-none but ensure transitions if needed */
#step1,
#step2 {
    animation: fadeIn 0.3s ease-in-out;
    min-height: 480px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LENDING SECTION STYLES
   ======================================== */

/* Infinite Logo Scroller */
.logo-scroller-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-scroller {
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.logo-item {
    flex-shrink: 0;
    padding: 20px 30px;
    background-color: #ffffff;
    margin: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.logo-item img {
    height: 45px;
    max-width: 130px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Lender logos below Continue button – mobile only, inside form */
.form-lenders-mobile-only {
    overflow: hidden;
}

.form-lenders-mobile-only .form-lenders-label {
    color: #3662a6;
    font-weight: 600;
}

.form-lenders-mobile-only .form-logo-scroller .logo-item {
    padding: 10px 14px;
    margin: 0 6px;
}

.form-lenders-mobile-only .form-logo-scroller .logo-item img {
    height: 28px;
    max-width: 80px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Loan Features Section */
.loan-features-section {
    padding: 60px 0;
}

.loan-features-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.loan-features-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .loan-features-heading {
        font-size: 2.25rem;
    }
}

.loan-feature-item {
    padding: 1.5rem 1rem;
    height: 100%;
}

.loan-feature-icon {
    font-size: 3.25rem;
    line-height: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto;
}

.loan-feature-icon i {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #3560d9 0%, #4777f4 50%, #6b9aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* 3D depth (subtle) */
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35))
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Glossy highlight on icon */
.loan-feature-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
        transform: translateX(-50%);
    width: 65%;
    height: 40%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
}

.loan-feature-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

/* Loan Features Carousel */
.loan-features-carousel-wrapper {
    position: relative;
    padding: 0 48px 32px;
}

.loan-features-carousel {
    overflow: hidden;
    border-radius: 16px;
    padding: 15px;
}

.loan-features-track {
    display: flex;
    --visible-count: 1;
    transform: translateX(calc(-1 * var(--current-index) * (100% / var(--visible-count))));
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

@media (min-width: 576px) {
    .loan-features-track {
        --visible-count: 2;
    }
}

@media (min-width: 992px) {
    .loan-features-track {
        --visible-count: 3;
    }
}

/* 1 visible on mobile */
.loan-feature-slide {
    flex: 0 0 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.loan-feature-slide .loan-feature-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.75rem 1.25rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Active slide: premium fintech highlight */
.loan-feature-slide.active .loan-feature-item {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.loan-feature-slide.active .loan-feature-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #3560d9 0%, #4777f4 50%, #6b9aff 100%);
}

@media (min-width: 576px) {
    .loan-feature-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .loan-feature-slide {
        flex: 0 0 33.333%;
    }
}

/* Arrows */
.loan-features-arrow {
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.loan-features-arrow:hover {
    background: #4777f4;
    color: #fff;
    border-color: #4777f4;
    box-shadow: 0 4px 16px rgba(71, 119, 244, 0.35);
}

.loan-features-prev {
    left: 0;
}

.loan-features-next {
    right: 0;
}

/* Dots */
.loan-features-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.loan-features-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.loan-features-dots button:hover {
    background: #9ca3af;
}

.loan-features-dots button.active {
    background: linear-gradient(90deg, #3560d9 0%, #4777f4 100%);
    transform: scale(1.2);
}

/* Lending Highlights Section */
.lending-highlights-section {
    background-color: #f0f0f0;
    padding: 60px 0;
}

.lending-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.lending-card {
    border-radius: 20px;
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lending-card-deep-blue {
    background: linear-gradient(45deg, #03355a 40%, #4777f4 100%);
}

.lending-card-content {
    flex: 1;
    z-index: 2;
    width: auto;
}

.lending-card-content h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.lending-desc {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

.lending-card-icon {
    opacity: 1;
    margin-left: 20px;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 50%;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.3);
}

.lending-card-icon i {
    color: white;
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 -1px 2px rgba(255, 255, 255, 0.5);
}

/* Colored icon variants */
.lending-card-icon.icon-orange {
    background: rgba(71, 119, 244, 0.35);
    backdrop-filter: blur(10px);
}

.lending-card-icon.icon-green {
    background: rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #03355a 0%, #1a4a7a 50%, #4777f4 100%);
    position: relative;
}

.testimonials-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.testimonials-heading {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .testimonials-heading {
        font-size: 2.1rem;
    }
}

.testimonial-card-v2 {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4777f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 3rem;
    color: rgba(71, 119, 244, 0.15);
    line-height: 1;
}

.testimonial-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author h6 {
    color: #1a1a1a;
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    padding: 0 48px 32px;
}

.testimonials-carousel {
    overflow: hidden;
    border-radius: 16px;
}

.testimonials-track {
    display: flex;
    --visible-count: 1;
    transform: translateX(calc(-1 * var(--current-index) * (100% / var(--visible-count))));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

@media (min-width: 576px) {
    .testimonials-track {
        --visible-count: 2;
    }
}

@media (min-width: 992px) {
    .testimonials-track {
        --visible-count: 3;
    }
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
    }
}

.testimonials-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.testimonials-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.testimonials-prev {
    left: 0;
}

.testimonials-next {
    right: 0;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.testimonials-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.testimonials-dots button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.testimonials-dots button.active {
    background: #fff;
    transform: scale(1.2);
}

/* Footer email styling */
.footer-email {
    color: #fff !important;
    text-decoration: none;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.footer-email i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========== Responsive: Tablet only (769px – 992px) – hero + form centered ========== */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-section .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-section .row > .col-lg-6:first-child .hero-title {
        text-align: center;
    }

    .hero-section .row > .col-lg-6:first-child .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section .row > .col-lg-6:first-child .stats-text {
        justify-content: center;
    }

    .hero-section .row > .col-lg-6:last-child {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-form-wrapper {
        justify-content: center;
    }
}

/* ========== Responsive: Tablet (992px and below) ========== */
@media (max-width: 992px) {
    .navbar {
        height: auto;
        min-height: 70px;
    }

    .navbar-brand img {
        height: 64px !important;
    }

    .hero-section {
        padding: 50px 5%;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-form-wrapper {
        justify-content: center;
    }

    .hero-form-card {
        max-width: 100%;
        min-height: auto;
        padding: 24px 24px;
    }

    .form-header {
        padding: 35px 20px;
        margin: -24px -24px 24px -24px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 35px;
    }

    .lending-highlights-section {
        padding: 45px 0;
    }

    .lending-card {
        padding: 24px 20px;
        min-height: 160px;
    }

    .lending-card-content h4 {
        font-size: 1.2rem;
    }

    .lending-desc {
        font-size: 0.9rem;
    }

    .lending-card-icon {
        width: 64px;
        height: 64px;
        margin-left: 16px;
    }

    .loan-features-section {
        padding: 45px 0;
    }

    .features-showcase-section .display-5 {
        font-size: 1.75rem;
    }

    .testimonials-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Footer centered on tablet */
    footer .row {
        text-align: center;
    }

    footer .row .col-lg-6 {
        text-align: center;
    }

    footer .text-lg-end {
        text-align: center !important;
    }

    footer .navbar-brand {
        display: inline-block;
    }
}

/* ========== Responsive: Mobile landscape / small tablet (768px and below) ========== */
@media (max-width: 768px) {
    /* On mobile: show hero content inside form header, hide left column hero */
    .hero-section .row > .col-lg-6:first-child {
        display: none !important;
    }

    .form-header-default {
        display: none !important;
    }

    .form-header-hero-mobile {
        display: block !important;
        text-align: center;
    }

    .form-header-feature-hide-mobile {
        display: none !important;
    }

    .form-header-hero-title {
        font-size: 1.1rem;
    }

    .form-header-hero-amount {
        font-size: 2.35rem;
    }

    .form-header-hero-features {
        gap: 0.4rem 0.75rem;
        max-width: 300px;
    }

    .form-header-feature {
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 40px 4%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stats-text {
        flex-wrap: wrap;
        gap: 12px !important;
        font-size: 0.85rem;
    }

    .hero-form-card {
        padding: 24px 20px;
    }

    .form-header {
        padding: 28px 16px 24px;
        margin: -20px -20px 20px -20px;
    }

    .form-header h3,
    .form-header-default h3 {
        font-size: 1.25rem;
    }

    .form-control {
        height: 52px;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .input-group-text {
        padding-left: 16px;
        font-size: 1rem;
    }

    .hero-form-card .input-group {
        border-radius: 10px;
    }

    .btn-form-submit {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .lending-label,
    .loan-features-label,
    .testimonials-label {
        font-size: 0.8rem;
    }

    .loan-features-heading {
        font-size: 1.5rem;
    }

    .testimonials-heading {
        font-size: 1.5rem;
    }

    .logo-item {
        padding: 14px 20px;
        margin: 0 6px;
    }

    .logo-item img {
        height: 36px;
        max-width: 100px;
    }

    .lending-highlights-section {
        padding: 35px 0;
    }

    .lending-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        min-height: auto;
    }

    .lending-card-content {
        order: 1;
    }

    .lending-card-icon {
        order: 0;
        width: 60px;
        height: 60px;
        margin-left: 0;
        margin-bottom: 12px;
        margin-top: 0;
    }

    .lending-card-icon i {
        font-size: 1.5rem;
    }

    .loan-features-section {
        padding: 35px 0;
    }

    .loan-feature-item {
        padding: 1.25rem 0.75rem;
    }

    .loan-feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 2.75rem;
    }

    .loan-feature-item h5 {
        font-size: 1rem;
    }

    .loan-feature-desc {
        font-size: 0.8rem !important;
    }

    .features-showcase-section {
        padding: 35px 0 !important;
    }

    .features-showcase-section .display-5 {
        font-size: 1.5rem;
    }

    .features-showcase-section .text-muted {
        font-size: 0.95rem !important;
    }

    .feature-card-small h6 {
        font-size: 0.85rem !important;
    }

    .feature-card-small p {
        font-size: 0.65rem !important;
    }

    .testimonials-section {
        padding: 35px 0 !important;
    }

    .testimonial-card-v2 {
        padding: 1.5rem 1.25rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonials-arrow,
    .loan-features-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .testimonials-dots,
    .loan-features-dots {
        gap: 8px;
        margin-top: 16px;
    }

    .otp-input {
        width: 50px;
        height: 52px;
        font-size: 1.25rem !important;
    }

    footer {
        padding: 30px 0 20px !important;
    }

    footer .row {
        text-align: center;
    }

    footer .text-lg-end {
        text-align: center !important;
    }

    .footer-email {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

/* ========== Responsive: Mobile (576px and below) ========== */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 52px !important;
    }

    .hero-section {
        padding: 30px 3%;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-form-card {
        padding: 16px 16px;
        border-radius: 10px;
    }

    .hero-form-card::before {
        transform: rotate(4deg) translate(15px, 10px);
    }

    .form-header {
        padding: 24px 14px;
        margin: -16px -16px 18px -16px;
        border-radius: 10px 10px 0 0;
    }

    .form-header h3 {
        font-size: 1.15rem;
    }

    .form-header-hero-amount {
        font-size: 2rem;
    }

    .form-header-hero-features {
        max-width: 270px;
    }

    .form-header-feature {
        font-size: 0.7rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .consent-text {
        font-size: 10px !important;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 22px;
    }

    .lending-label {
        margin-bottom: 4px;
    }

    .logo-scroller-wrapper {
        margin-bottom: 28px !important;
    }

    .logo-item {
        padding: 10px 14px;
        margin: 0 4px;
    }

    .logo-item img {
        height: 32px;
        max-width: 85px;
    }

    .lending-card-content h4 {
        font-size: 1.1rem;
    }

    .lending-desc {
        font-size: 0.85rem;
    }

    .loan-features-heading {
        font-size: 1.35rem;
    }

    .testimonials-heading {
        font-size: 1.35rem;
    }

    .features-showcase-section .display-5 {
        font-size: 1.35rem;
    }

    .feature-card-small {
        padding: 0.6rem !important;
    }

    .video-container {
        border-radius: 12px;
        overflow: hidden;
    }

    .testimonial-author h6 {
        font-size: 0.95rem;
    }

    .otp-input {
        width: 44px;
        height: 48px;
        font-size: 1.1rem !important;
    }

    .hero-form-card .d-flex.gap-2 {
        gap: 6px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}