/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
body {

    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 1s ease-in;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2.5rem;
}

.hero-section h3 {
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    font-size: 1.5rem;
}

.hero-section p {
    color: #f8fafc;
    font-size: 1.1rem;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1e293b, #2563eb);
}

/* Header */
.navbar {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
}

.navbar-brand:hover, .nav-link:hover {
    color: #facc15 !important;
}

#theme-toggle {
    background-color: #facc15;
    color: #1e3a8a;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

#theme-toggle:hover {
    background-color: #eab308;
}

body.dark-mode #theme-toggle {
    background-color: #1e293b;
    color: #facc15;
}

/* Form Styling */
.form-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease;
}

body.dark-mode .form-container {
    background: #1e293b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.form-container h3 {
    color: #1e3a8a;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 15px;
}

body.dark-mode .form-container h3 {
    color: #3b82f6;
}

.form-container p {
    font-size: 1rem;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.9rem;
}

body.dark-mode .form-group label {
    color: #e2e8f0;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

body.dark-mode .form-control {
    background-color: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(90deg, #22c55e, #34d399);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-accent {
    background: linear-gradient(90deg, #facc15, #eab308);
    border: none;
    color: #1e3a8a;
    font-family: 'Inter', sans-serif;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.btn-lg {
    padding: 10px 20px;
    font-size: 1.1rem;
}

.btn-md-md {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.5s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .card {
    background-color: #1e293b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.featured-card {
    border: 2px solid #22c55e;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

body.dark-mode .featured-card {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.card-img-top {
    height: 160px;
    object-fit: cover;
    transition: opacity 0.3s;
}

.card-img-top:hover {
    opacity: 0.95;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    font-family: 'Playfair Display', serif;
}

body.dark-mode .card-title {
    color: #3b82f6;
}

.card-text {
    font-size: 0.85rem;
    color: #475569;
}

body.dark-mode .card-text {
    color: #cbd5e1;
}

.card-text strong {
    color: #1e293b;
}

body.dark-mode .card-text strong {
    color: #e2e8f0;
}

.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Promo Section */
.promo-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .promo-section {
    background: #1e293b;
}

.feature-box {
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #3b82f6;
}

body.dark-mode .feature-icon {
    color: #60a5fa;
}

/* Legal and EMI Section */
.legal-emi-section .card {
    background: #f8fafc;
}

body.dark-mode .legal-emi-section .card {
    background: #1e293b;
}

.legal-emi-section ul, .legal-emi-section ol {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

#emiResult p {
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 25px 0;
}

body.dark-mode footer {
    background: linear-gradient(90deg, #1e293b, #2563eb);
}

footer h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: #facc15;
}

footer p {
    font-size: 0.9rem;
}

.social-icons a {
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #facc15;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.sticky-cta .btn {
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .modal-content {
    background-color: #1e293b;
}

.modal-header {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 15px;
}

.modal-body img, .modal-body iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .hero-section {
        padding: 25px 12px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section h3 {
        font-size: 1.1rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .form-container {
        padding: 15px;
    }

    .form-container h3 {
        font-size: 1.5rem;
    }

    .form-container p {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 0.85rem;
        padding: 6px;
    }

    .btn-primary, .btn-success, .btn-accent {
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-md-md {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .card {
        margin-bottom: 15px;
    }

    .card-img-top {
        height: 120px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.8rem;
    }

    .promo-section {
        padding: 15px;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .legal-emi-section ul, .legal-emi-section ol {
        font-size: 0.85rem;
    }

    #emiResult p {
        font-size: 0.85rem;
    }

    footer {
        padding: 20px 0;
    }

    footer h4 {
        font-size: 1.1rem;
    }

    footer p, footer a {
        font-size: 0.85rem;
    }

    .social-icons a {
        font-size: 1.2rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 20px 10px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section h3 {
        font-size: 1rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .form-container {
        padding: 12px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .card-img-top {
        height: 100px;
    }

    .promo-section {
        padding: 12px;
    }

    .legal-emi-section h3 {
        font-size: 1.25rem;
    }
}