:root {
    --primary-color: #2563eb; /* Blue from buttons */
    --primary-hover: #1d4ed8;
    --secondary-color: #4b5563; /* Gray from calculate EMI */
    --secondary-hover: #374151;
    --dark-color: #1e293b; /* Dark continue button */
    --success-color: #10b981; /* Green checkmarks */
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-color: #334155;
    --text-heading: #0f172a;
    --border-color: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1.5rem; text-align: center; }

/* Navbar */
.navbar {
    background-color: var(--bg-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-auth {
    background-color: var(--bg-alt);
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-heading);
    border-radius: 3px;
}

/* Main Content */
.main-content {
    padding: 40px 20px 80px;
    min-height: calc(100vh - 80px);
}

/* Steps Handling */
.step-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

/* Success Step */
.success-step {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 40px auto;
}

.success-step .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    border-radius: 50%;
    margin-bottom: 20px;
}

.success-step h2 {
    color: #111827;
    margin-bottom: 10px;
}

.success-step p {
    color: #4b5563;
    line-height: 1.6;
}

.step-section.active {
    display: block;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}
.btn-secondary:hover { background-color: var(--secondary-hover); transform: translateY(-1px); }

.btn-dark {
    background-color: var(--dark-color);
    color: white;
}
.btn-dark:hover { background-color: #0f172a; transform: translateY(-1px); }

.btn-full { width: 100%; margin-top: 20px; padding: 14px; }

/* Forms & Inputs */
input, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-heading);
    background-color: var(--bg-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row > * { flex: 1; }

/* Hero Section (Step 1) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.benefits-list svg { color: var(--success-color); }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.emi-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 1.05rem;
}

.emi-results strong { color: var(--primary-color); }
.emi-results.hidden { display: none; }

.hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius);
}

/* Centered Form Sections (Step 2 & 3) */
.form-centered {
    max-width: 600px;
    margin: 0 auto;
}

.card-form {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.trust-indicators {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.trust-indicators p {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Plan Selection (Step 4) */
.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.plan-header p {
    color: var(--primary-color);
    font-weight: 600;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.offer-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.offer-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.offer-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-color);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.modal-content h3 { margin-bottom: 5px; }
.modal-subtitle { color: var(--primary-color); margin-bottom: 20px; font-weight: 500; }
.modal-content label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem;}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-copy strong {
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { order: 2; }
    .hero-image { order: 1; text-align: center; }
    h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .navbar { position: relative; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        z-index: 99;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .nav-links a {
        display: inline-block;
        padding: 10px;
    }
    .hamburger { display: flex; }
    
    .form-row { flex-direction: column; gap: 16px; }
    .form-actions { flex-direction: column; }
    .btn { width: 100%; }
    
    .footer-container { flex-direction: column; text-align: center; justify-content: center; }
    .footer-links { justify-content: center; }
}
