/* Base Styles & Variables */
:root {
    --primary-color: #2271b1;
    --secondary-color: #f0903c;
    --text-color: #4b4f58;
    --heading-color: #2c2927;
    --light-bg: #f2f5f7;
    --white: #ffffff;
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'DM Serif Display', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--light-bg); }
.mt-30 { margin-top: 30px; }
.p-30 { padding: 30px; }
.radius-10 { border-radius: 10px; }

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-apply {
    background: var(--secondary-color);
    color: var(--heading-color) !important;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-apply:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}



/* Hero Section */
.hero-section {
    /* The linear-gradient adds a dark overlay so your text stays readable */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('banner.jpg') center/cover;
    padding: 80px 0;
}

/* Make the text white so it stands out against the image */
.hero-text h1, 
.hero-text h2, 
.hero-text p, 
.hero-text .highlight {
    color: var(--white);
}
.hero-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1.2;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 48px;
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 28px;
    font-weight: 400;
}

.hero-text .highlight {
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.hero-text .note {
    color: #cf2e2e;
    font-weight: bold;
    margin-top: 15px;
}

/* Forms */
.hero-form {
    flex: 0.8;
    min-width: 350px;
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-form input, .hero-form select, .form-group input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.btn-submit {
    width: 100%;
    background: var(--secondary-color);
    color: var(--heading-color);
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Content & Grids */
.steps-section, .content-section, .emi-section {
    padding: 80px 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content-block ul {
    margin-left: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.content-block li {
    margin-bottom: 10px;
}

/* EMI Calculator */
.emi-container {
    display: flex;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.emi-inputs, .emi-results {
    flex: 1;
    min-width: 300px;
}

.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.radio-group input {
    width: auto;
    margin: 0;
}

.result-box {
    background: var(--light-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.result-box h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 28px;
}

.representative-example {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: var(--heading-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
}

.site-footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about {
    flex: 2;
    min-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    line-height: 2.2;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    font-size: 14px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-text h1 { font-size: 36px; }
    .hero-text h2 { font-size: 22px; }
    
    .emi-container { padding: 30px; }
}
/* --- ABOUT PAGE SPECIFIC STYLES --- */

/* Utility Classes */
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }
.mt-40 { margin-top: 40px; }
.bg-blue { background-color: #79cff2; color: #2c2927; }

/* Grid Layout for About Page */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('allp.jpg') center/cover;
    padding: 100px 20px;
    color: var(--white);
}

.about-hero-content {
    max-width: 800px;
}

.about-hero h1 {
    color: var(--white);
    font-size: 56px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 20px;
}

.about-hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-hero p {
    font-size: 18px;
    font-weight: 600;
}

/* Mission & Core Values */
.mission-values {
    padding: 80px 20px;
}

.mission-values h2, .mission-values h3 {
    color: var(--heading-color);
}

.mission-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.mission-text p {
    margin-bottom: 20px;
}

.core-values ul {
    list-style: none;
    margin-top: 25px;
}

.core-values li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.core-values li::before {
    content: '■';
    color: var(--heading-color);
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 2px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 20px;
}

.section-intro {
    max-width: 900px;
    margin: 0 auto;
}

.features-grid .feature-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.features-grid h4 {
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.clean-list {
    list-style: none;
    padding: 0;
}

/* Testimonials */
.testimonials {
    padding: 80px 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #f0903c;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info strong {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 18px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-hero h1 {
        font-size: 40px;
    }
}
/* --- SERVICES PAGE SPECIFIC STYLES --- */

/* Reusable Page Hero */
.page-hero {
    padding: 100px 20px;
    color: var(--white);
    background-color: #333; /* Fallback */
    background-size: cover;
    background-position: center;
}

.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('allp.jpg') center/cover;
}

.hero-content-inner {
    max-width: 800px;
}

.hero-content-inner h1 {
    color: var(--white);
    font-size: 56px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 20px;
}

.hero-content-inner h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* All Services Section (Blue Area) */
.all-services {
    padding: 80px 20px;
}

.all-services h2 {
    color: var(--heading-color);
    margin-bottom: 50px;
}

/* Border Columns for the 4-Grid */
.border-columns {
    align-items: stretch;
}

.service-column {
    padding: 0 15px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.service-column:last-child {
    border-right: none;
}

.service-column h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.service-column p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.service-column ul {
    font-size: 14px;
    line-height: 1.8;
}

.service-column li {
    margin-bottom: 10px;
}

/* Schedule Appointment Section */
.schedule-appointment {
    padding: 60px 20px;
}

.appointment-container {
    max-width: 800px;
    margin: 0 auto;
}

.appointment-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.appointment-container p {
    margin-bottom: 15px;
    font-size: 16px;
}

.city-list {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 2;
    margin-top: 20px !important;
}

/* Responsive Adjustments for Services */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .service-column:nth-child(2) {
        border-right: none;
    }
    .service-column:nth-child(3),
    .service-column:nth-child(4) {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 40px;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .service-column {
        border-right: none !important;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    .service-column:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}
/* --- EMI CALCULATOR PAGE SPECIFIC STYLES --- */

.emi-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('allp.jpg') center/cover;
}

.emi-interactive-section {
    padding: 60px 20px 20px;
}

/* Split Panel Container styling from Image */
.emi-split-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Left Panel - White */
.emi-inputs-panel {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border: 2px solid #000;
    border-right: none;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.label-row label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.label-row input[type="number"] {
    width: 120px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    text-align: right;
    margin: 0;
    font-family: var(--font-body);
}

.label-row input[type="number"]:focus {
    outline: none;
    border-bottom-color: var(--secondary-color);
}

/* Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin-top: 5px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #ccc;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 2px;
}

/* Right Panel - Blue Gradient */
.emi-results-panel {
    flex: 1;
    background: linear-gradient(135deg, #4aa3df, #025b97);
    padding: 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.output-group p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.output-group h3 {
    color: var(--white);
    font-size: 28px;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

/* SEO Content Section */
.seo-content-section {
    padding: 20px 20px 80px;
}

.bg-white {
    background-color: var(--white);
}

.mb-30 { margin-bottom: 30px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .emi-split-container {
        flex-direction: column;
    }
    .emi-inputs-panel {
        border-right: 2px solid #000;
        border-bottom: none;
    }
}
/* --- CONTACT PAGE SPECIFIC STYLES --- */

/* Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('allp.jpg') center/cover;
}

/* Contact Info & Map Grid */
.contact-info {
    padding: 60px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.map-container {
    width: 100%;
    background: var(--white);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-content h2 {
    font-size: 36px;
    color: var(--heading-color);
}

.address-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--heading-color);
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--white);
}

/* Form Section */
.contact-form-section {
    padding: 80px 20px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* Full Width Form Styling */
.full-form input,
.full-form select {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 15px;
    background-color: var(--white);
}

.full-form input:focus,
.full-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Specific button override for the contact form */
.full-form .btn-submit.align-left {
    width: auto;
    padding: 12px 35px;
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-section {
        padding: 50px 20px;
    }
}

/* --- APPLY NOW PAGE SPECIFIC STYLES --- */

/* Hero Section */
.apply-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('allp.jpg') center/cover;
}

/* Form Section */
.apply-form-section {
    background-color: #f4f9fd; /* Light blue background matching the design */
    padding: 60px 20px;
}

.apply-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.form-heading {
    font-size: 28px;
    color: var(--heading-color);
    margin-bottom: 30px;
}

/* Inherits .full-form from contact page, with specific overrides */
.apply-form input,
.apply-form select {
    background-color: var(--white);
    border: 1px solid #ccc;
}

.form-action.text-left {
    text-align: left;
}

/* Info Section (Pale Yellow) */
.bg-pale-yellow {
    background-color: #fdf5c9; /* Pale yellow background matching the design */
}

.loan-info-section {
    padding: 60px 20px 80px;
}

.info-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.info-heading-banner {
    background-color: #eef8ff; /* Light blue banner background */
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.info-heading-banner h2 {
    margin: 0;
    font-size: 26px;
    color: var(--heading-color);
}

.loan-terms p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.loan-example h3 {
    font-size: 22px;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.loan-example p {
    font-size: 15px;
    margin-bottom: 15px;
}

.loan-example ul.clean-list li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}
/* --- BULLETPROOF MOBILE MENU STYLES --- */

.menu-toggle {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Force hide the menu by default on mobile */
    .main-nav {
        display: none !important; 
        width: 100%;
        margin-top: 15px;
        background-color: var(--light-bg);
        border-radius: 8px;
    }
    
    /* FORCE SHOW the menu when the button is clicked */
    .main-nav.active {
        display: block !important; 
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 20px;
        list-style: none;
        margin: 0;
    }
}

/* --- LEGAL & SUPPORT PAGE SPECIFIC STYLES --- */

/* Legal Hero Section */
.legal-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('allp.jpg') center/cover;
    padding: 80px 20px;
}

.legal-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Page Sub-Navigation (Jump Links) */
.page-subnav {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 70px; /* Sticks just below the main header */
    z-index: 90;
    background-color: var(--light-bg);
}

.subnav-link {
    display: inline-block;
    margin: 0 15px;
    font-weight: 600;
    color: var(--text-color);
    padding: 5px 10px;
    transition: 0.3s;
}

.subnav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Content Wrapper */
.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-section {
    padding: 40px 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

/* FAQ Accordion Styling (Using native HTML <details>) */
.faq-item {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading-color);
    padding: 20px;
    cursor: pointer;
    background-color: #fcfcfc;
    transition: background-color 0.3s;
    list-style: none; /* Hides default arrow in some browsers */
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hides default arrow in Safari/Chrome */
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item[open] summary {
    background-color: #eef8ff;
    border-bottom: 1px solid #ddd;
}

.faq-answer {
    padding: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

/* Legal Text Blocks (Privacy & Terms) */
.legal-text-block h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-text-block p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-text-block ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-text-block li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .page-subnav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .subnav-link {
        margin: 0;
    }
}