
/* General Body and Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 20;
}

.logo img {
    height: 50px;
}

.collapsible-menu {
    display: block;
}

.collapsible-menu .menu-icon,
.collapsible-menu input[type="checkbox"] {
    display: none;
}

.collapsible-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.collapsible-menu ul li a {
    color: #002d62;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible-menu ul li a:hover,
.collapsible-menu ul li a.active {
    background-color: #f7a01c;
    color: #ffffff;
}

/* Mobile Styles for the Menu */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px;
    }

    header .logo {
        margin: 0;
    }
    
    header .collapsible-menu {
        width: 100%;
        order: 3;
    }

    header .collapsible-menu .menu-icon {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        cursor: pointer;
        color: #002d62;
        z-index: 20;
    }

    header .collapsible-menu input[type="checkbox"] {
        display: none;
    }

    header .collapsible-menu ul {
        display: none;
        flex-direction: column;
        background-color: #002d62;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    header .collapsible-menu input[type="checkbox"]:checked ~ ul {
        display: flex;
        max-height: 500px;
        padding: 10px 0;
    }

    header .collapsible-menu ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    header .collapsible-menu ul li a {
        padding: 15px;
        display: block;
        width: 100%;
        color: #ffffff;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    header .collapsible-menu ul li a:hover,
    header .collapsible-menu ul li a.active {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Hero Section - Generic base styles */
.hero-section {
    background: #f5f5f5;
    color: #333333;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-section .headline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Specific Hero Section Styles */
/* Hero section for Home Loan Page */
.hero-home-loan {
    background: linear-gradient(to right, #002d62, #004a8e);
    color: #ffffff;
}

/* Hero section for Loan Against Property */
.hero-lap {
    /* Inherits from .hero-section */
    background: #f5f5f5; /* You can override background colors if needed */
}

.hero-lap .benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-lap .benefits span {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Hero section for Home Page */
.hero-home {
    background: linear-gradient(to right, #002d62, #004a8e);
    color: #ffffff;
}

/* Hero section for Business Loan Page */
.hero-business {
    background: linear-gradient(to right, #f7a01c, #e58a0e);
    color: #ffffff;
}

/* Hero section for static pages (About Us, Contact Us, Sitemap) */
.hero-static {
    background-color: #e2e8f0;
    color: #333;
    padding: 40px 20px;
}

/* Content Sections */
.content-section {
    padding: 40px 20px;
    text-align: center;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card h3 {
    color: #002d62;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
}

.btn.primary-btn {
    background-color: #f7a01c;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.btn.primary-btn:hover {
    background-color: #e58a0e;
}

.btn.secondary-btn {
    background-color: #002d62;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.btn.secondary-btn:hover {
    background-color: #001f4c;
}

/* EMI Calculator */
.calculator-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: left;
}

.calculator-input {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.calculator-input label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.calculator-input input[type="range"] {
    width: 100%;
}

.calculator-result {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

/* NEW: Styles for the main contact form */
.contact-form-section {
    padding: 40px 20px;
    text-align: center;
}

#contact-form {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* To ensure padding and border are included in the width */
}

/* Quick Lead Form styles (bottom right) */
.quick-lead-form {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
}

#lead-form-button {
    background-color: #f7a01c;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#lead-form-button:hover {
    background-color: #e58a0e;
}

#lead-form {
    display: none; /* Hidden by default */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 300px;
    transition: all 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

#lead-form.show-form {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#lead-form h3 {
    margin-top: 0;
    color: #002d62;
}

#lead-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#lead-form input[type="text"],
#lead-form input[type="tel"],
#lead-form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

#lead-form button {
    background-color: #002d62;
    color: #ffffff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#lead-form button:hover {
    background-color: #001f4c;
}

/* Confirmation Message Box */
.confirmation-box {
    display: none; /* Hidden by default */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.confirmation-box .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}



/* Footer Section */
footer {
    background-color: #002d62;
    color: #ffffff;
    padding: 40px 20px 0; /* Adjusted padding to remove bottom space */
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px; /* Add padding to the content above the bar */
}

/* New dark-shaded bottom bar */
.footer-bottom-bar {
    background-color: #001f4c; /* A slightly darker shade of the main blue */
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fddb00;
}

.footer-info {
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-links {
        flex: 1;
        text-align: center;
    }

    .footer-info {
        flex: 1;
        text-align: right;
    }
}

/* --- Slider Container & Heading --- */
.slider-container {
    max-width: 900px; /* Adjust as needed */
    position: relative;
    margin: auto;
    padding: 20px 0;
}

.slider-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* --- Slider Wrapper (Sets the consistent size for the slider) --- */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* Set a fixed height for consistency. Adjust '400px' as needed. */
    height: 400px; 
}

/* --- Slider Item (Initial state is hidden for auto-slide to work) --- */
.slider-item {
    /* **CRITICAL FIX:** Hide all slides by default so only the JS-controlled one appears */
    display: none; 
    height: 100%; /* Take full height of the wrapper */
}

/* --- Image Resizing FIX --- */
.slider-item img {
    width: 100%;
    height: 100%; 
    vertical-align: middle;
    /* **CRITICAL FIX:** Ensures images fill the container without distortion, cropping as necessary */
    object-fit: cover; 
}

/* --- Navigation Buttons & Dots (Rest of the styles remain the same) --- */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.8);
    z-index: 10; /* Ensure buttons are above the image */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,1);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}