/* Existing styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    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;
    padding: 20px 0;
}

.logo h1 {
    color: #2563eb;
    font-size: 1.8rem;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 25px;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #2563eb;
}

.navbar ul li a.active {
    color: #2563eb;
    font-weight: 600;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 80px 0;
}

.hero-content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.hero-text-content {
    flex: 1;
    min-width: 300px;
}

.hero-text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-text-content p:first-of-type {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-text-content p:last-of-type {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-form-content {
    flex: 1;
    min-width: 300px;
}

.cta-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: #f59e0b;
    color: white;
}

.primary-btn:hover {
    background-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Loan Application Section */
.loan-application {
    background-color: white;
    color: #333;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.progress-bar {
    margin-bottom: 30px;
}

.progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.progress-track {
    flex-grow: 1;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    margin: 0 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #2563eb;
    border-radius: 5px;
}

.application-form {
    max-width: 600px;
    margin: 0 auto;
}

.application-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
}

.application-form h3 {
    color: #1e293b;
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
}

.amount-display {
    text-align: center;
    margin-top: 15px;
}

.amount-display span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

select, input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background-color: white;
    font-size: 1rem;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input.error {
    border: 2px solid #ef4444;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.why-choose h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.why-choose > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #64748b;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #64748b;
}

/* Loan Purposes Section */
.loan-purposes {
    padding: 80px 0;
    background-color: white;
}

.loan-purposes h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.loan-purposes > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #64748b;
}

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.purpose-card {
    background-color: #f1f5f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.purpose-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.purpose-card p {
    color: #64748b;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.footer-logo h2 {
    color: #2255d2;
    font-size: 32px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 15px;
    opacity: 0.8;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #2255d2;
}

.footer-info {
    text-align: right;
    font-size: 14px;
}

.disclaimer {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 15px;
    max-width: 400px;
    margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .disclaimer {   
        margin: 15px auto 0;
    }
}

/* How It Works Hero */
.how-it-works-hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.how-it-works-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.how-it-works-hero p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Process Visualization */
.process-visualization {
    padding: 60px 0;
    background-color: white;
}

.process-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon img {
    width: 40px;
    height: 40px;
}

.process-step h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.process-step p {
    color: #64748b;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Detailed Process */
.detailed-process {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.detailed-process h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.process-steps-detailed {
    max-width: 800px;
    margin: 0 auto;
}

.step-detail {
    display: flex;
    margin-bottom: 50px;
    align-items: flex-start;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-image-number {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-image-number img {
    width: 100%;
    height: 100%;
}

.step-content h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.step-content p {
    color: #64748b;
    margin-bottom: 15px;
}

.step-content ul {
    color: #64748b;
    margin-left: 20px;
    margin-bottom: 20px;
}

.step-content ul li {
    margin-bottom: 10px;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: white;
}

.timeline-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.timeline {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline:before {
    display: none;
}

.timeline-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.timeline-image img {
    width: 100%;
    height: 100%;
}

.timeline-content h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #64748b;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.faq-question h3 {
    color: #1e293b;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #64748b;
}

.faq-answer.open {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Personal Loans Page */
.personal-loans {
    padding: 80px 0 40px;
    background-color: white;
    text-align: center;
}

.personal-loans h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.personal-loans > p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 50px;
}

.loan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.loan-option {
    background-color: #f1f5f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.loan-option:hover {
    transform: translateY(-10px);
}

.loan-option h2 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.loan-option p {
    color: #64748b;
    margin-bottom: 20px;
}

.loan-option ul {
    text-align: left;
    margin: 20px 0;
    color: #64748b;
    list-style: none;
    padding: 0;
}

.loan-option ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.loan-option ul li:before {
    content: "✓";
    color: #2563eb;
    position: absolute;
    left: 0;
}

/* Loan Benefits Section */
.loan-benefits {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.loan-benefits h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.benefit-card h3 {
    color: #2563eb;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #64748b;
}

/* Process Steps */
.process-steps {
    padding: 80px 0;
    background-color: white;
}

.process-steps h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e293b;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.step p {
    color: #64748b;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f8fafc;
    color: #333;
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.contact-section > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #64748b;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    color: #64748b;
    margin-bottom: 5px;
    line-height: 1.6;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-text-content,
    .hero-form-content {
        flex: none;
        width: 100%;
    }

    .loan-application {
        max-height: none; /* mobile पर scroll limit हटाओ */
        overflow-y: visible;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }
    
    .navbar ul {
        position: fixed;
        right: 0;
        top: 80px; /* header height के according */
        height: calc(100vh - 80px);
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.15);
        padding-top: 40px;
        z-index: 999;
    }

    .navbar ul li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-active {
        transform: translateX(0);
    }

    /* Burger animation */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    /* Hero section */
    .hero-text-content h1,
    .how-it-works-hero h1 {
        font-size: 2.2rem;
    }

    .hero-text-content p:first-of-type {
        font-size: 1.1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        max-width: 300px;
        margin: 10px 0;
        text-align: center;
    }

    /* Progress bar mobile */
    .progress {
        flex-direction: column;
        gap: 15px;
    }

    .progress-track {
        width: 100%;
        margin: 10px 0;
    }

    /* Form navigation buttons */
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .form-navigation .btn {
        width: 100%;
    }

    /* Grids stack properly */
    .features,
    .purpose-cards,
    .loan-options,
    .benefits-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    /* Process diagram */
    .process-diagram {
        flex-direction: column;
        gap: 30px;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    /* Detailed steps */
    .step-detail {
        flex-direction: column;
        text-align: center;
    }

    .step-image-number {
        margin: 0 auto 20px;
    }

    /* Timeline */
    .timeline {
        flex-direction: column;
        gap: 50px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Header */
    header .container {
        padding: 15px 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero,
    .how-it-works-hero {
        padding: 60px 0;
    }

    .hero-text-content h1,
    .how-it-works-hero h1 {
        font-size: 1.9rem;
    }

    .hero-text-content p,
    .how-it-works-hero p {
        font-size: 1rem;
    }

    /* Section paddings */
    .why-choose,
    .loan-purposes,
    .cta-section,
    .personal-loans,
    .loan-benefits,
    .process-steps,
    .process-visualization,
    .detailed-process,
    .timeline-section,
    .faq-section,
    .contact-section {
        padding: 50px 0;
    }

    /* Headings */
    .why-choose h2,
    .loan-purposes h2,
    .cta-section h2,
    .loan-benefits h2,
    .process-steps h2,
    .timeline-section h2,
    .faq-section h2,
    .detailed-process h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }

    .personal-loans h1 {
        font-size: 2rem;
    }

    /* Form inputs */
    select, input, textarea {
        padding: 14px;
        font-size: 1rem; /* iOS zoom issue avoid */
    }

    /* Loan application card */
    .loan-application {
        padding: 20px;
        border-radius: 8px;
    }

    .application-form h2 {
        font-size: 1.6rem;
    }

    /* Feature & purpose cards */
    .feature-card,
    .purpose-card,
    .loan-option,
    .benefit-card {
        padding: 25px;
    }
}

/* Extra: Smooth burger menu animation for links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}