/* Global Styles */
:root {
    --primary-color: #04aa57;
    --secondary-color: #ff3e3e;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.section-header p {
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Button Styles */
.get-started-btn, .apply-now-btn, .submit-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.get-started-btn:hover, .apply-now-btn:hover, .submit-btn:hover {
    background-color: #ffbf00;
    transform: translateY(-2px);
}

.learn-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.learn-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.login-btn {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 15px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    align-items: center;
}

/* Hero Section Styles */
.hero {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.loan-calculator {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.loan-calculator h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark-bg);
}

.calculator-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amount-slider label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.amount-slider h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.amount-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.amount-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--light-text);
    font-size: 14px;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
    font-size: 14px;
}

.security-note i {
    color: var(--primary-color);
}

.repayment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.repayment-info p {
    color: var(--light-text);
}

.repayment-info h3 {
    font-size: 24px;
    color: var(--dark-bg);
}

.apply-now-btn {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 15px;
}

/* Why Choose Us Section Styles */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 24px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.feature-card p {
    color: var(--light-text);
}

/* Products Section Styles */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.product-card p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.product-features {
    margin-bottom: 25px;
}

.product-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li i {
    color: var(--primary-color);
}

.product-card .learn-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* How It Works Section Styles */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.step p {
    color: var(--light-text);
}

/* Testimonials Section Styles */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    margin-bottom: 30px;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ddd;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.testimonial-info p {
    color: var(--light-text);
    font-size: 14px;
}

.testimonial-text {
    color: var(--text-color);
    font-style: italic;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.testimonial-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-control:hover {
    background-color: var(--primary-color);
    color: white;
}

/* FAQ Section Styles */
.faq {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--dark-bg);
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 18px;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* Contact Section Styles */
.contact {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.info-content h3 {
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.info-content p {
    color: var(--light-text);
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links-column {
    min-width: 150px;
}

.footer-links-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .auth-buttons {
        margin-top: 15px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .steps-container {
        flex-direction: column;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
    }
}