/* SnapCredit - Instant Credit Platform CSS (Bright Light Theme Representing India) */
:root {
  --primary: #FF9933;           /* Indian Saffron (Kesari) */
  --primary-dark: #E65100;      /* Darker Saffron */
  --primary-light: #FFB366;     /* Lighter Saffron */
  --secondary: #0B1E5B;        /* Ashoka Chakra Navy Blue */
  --secondary-light: #1A237E;
  --accent-green: #138808;     /* India Green */
  --accent-green-light: #E8F5E9;
  --dark-bg: #0B1E5B;          /* Deep Navy */
  --dark-card: #14286B;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-white: #FFFFFF;
  --light-bg: #FAFAF7;         /* Warm Bright Light Background */
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --success: #138808;
  --warning: #F59E0B;
  --shadow-sm: 0 2px 8px rgba(11, 30, 91, 0.06);
  --shadow-md: 0 6px 18px rgba(11, 30, 91, 0.08);
  --shadow-lg: 0 12px 30px rgba(11, 30, 91, 0.12);
  --shadow-glow: 0 8px 24px rgba(255, 153, 51, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #FF7700 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 153, 51, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover { background: var(--secondary); color: var(--text-white); }
.btn-white { background: var(--text-white); color: var(--text-main); box-shadow: var(--shadow-md); }
.btn-white:hover { background: #F1F5F9; color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 2px solid #FFF3E0;
}

.navbar.scrolled { box-shadow: var(--shadow-md); height: 72px; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-item { position: relative; font-weight: 600; font-size: 0.95rem; color: var(--secondary); }
.nav-item > a { padding: 10px 0; display: flex; align-items: center; gap: 6px; }
.nav-item:hover > a { color: var(--primary); }
.dropdown-icon { font-size: 0.7rem; transition: var(--transition); }
.nav-item:hover .dropdown-icon { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 250px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
}

.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 24px; font-size: 0.9rem; color: var(--text-main); font-weight: 500; }
.dropdown-menu a:hover { background-color: #FFF3E0; color: var(--primary-dark); padding-left: 28px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.mobile-toggle { display: none; font-size: 1.6rem; background: none; border: none; cursor: pointer; color: var(--secondary); }

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: #FFFFFF;
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 16px; }
.mobile-nav-list a { font-size: 1.1rem; font-weight: 700; color: var(--secondary); padding: 10px 0; border-bottom: 1px solid var(--border-color); display: block; }

/* Hero Section (Bright India Theme) */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF3E0 40%, #F4F7FE 75%, #E8F5E9 100%);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #FFE0B2;
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.15; margin-bottom: 16px; color: var(--secondary); }
.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, #FF9933, #E65100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 30px; font-weight: 500; }
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 36px; }
.hero-feat-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
.hero-feat-item i { color: var(--accent-green); font-weight: bold; font-size: 1.1rem; }
.hero-cta { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.app-badges { display: flex; gap: 12px; }
.app-badges img { height: 48px; width: auto; transition: var(--transition); }
.app-badges img:hover { transform: translateY(-3px); }
.hero-image img { max-width: 100%; filter: drop-shadow(0 15px 25px rgba(11, 30, 91, 0.1)); }

/* Credit Score Banner Section */
.credit-score-section {
  background: linear-gradient(90deg, #FFF3E0 0%, #FAFAF7 50%, #E8F5E9 100%);
  padding: 30px 0;
  border-bottom: 1px solid #FFE0B2;
}

.credit-score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 24px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid #FFE0B2;
}

.score-content { display: flex; align-items: center; gap: 24px; }
.score-text h3 { font-size: 1.4rem; font-weight: 800; color: var(--secondary); margin-bottom: 4px; }
.score-text p { color: var(--text-muted); font-size: 0.95rem; }
.score-input-group { display: flex; gap: 12px; align-items: center; }
.score-input-group input {
  padding: 12px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  width: 220px;
  outline: none;
  transition: var(--transition);
}
.score-input-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2); }

/* Section Common */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--secondary); margin-bottom: 12px; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent-green)); margin: 10px auto 0 auto; border-radius: 2px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* EMI Calculator Section */
.calculator-section { background: #FFFFFF; }
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.calc-controls { display: flex; flex-direction: column; gap: 28px; }
.calc-group { margin-bottom: 20px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calc-label { font-weight: 700; font-size: 1.05rem; color: var(--secondary); }
.calc-value-badge {
  background: #FFF;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.1rem;
}

.slider-container input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #CBD5E1;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--primary);
  cursor: pointer;
}

.slider-range-labels { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.calc-result-card {
  background: linear-gradient(145deg, var(--secondary) 0%, #1A237E 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
}

.result-header { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 20px; margin-bottom: 24px; }
.result-header label { font-size: 0.85rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 1px; }
.emi-amount { font-size: 2.6rem; font-weight: 900; color: var(--primary); margin-top: 6px; }
.result-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.detail-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: #CBD5E1; }
.detail-row span.val { font-weight: 700; color: #FFF; }

/* Product Cards Section */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-icon { width: 64px; height: 64px; margin-bottom: 20px; }
.product-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--secondary); }
.product-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.product-meta { width: 100%; border-top: 1px solid var(--border-color); padding-top: 16px; margin-bottom: 20px; }
.product-meta-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; }
.product-meta-row span.label { color: var(--text-muted); }
.product-meta-row span.val { font-weight: 700; color: var(--secondary); }

/* Statistics Bar (Bright Navy Bar with Saffron Numbers) */
.stats-bar { background: linear-gradient(135deg, var(--secondary) 0%, #1A237E 100%); color: var(--text-white); padding: 50px 0; border-top: 4px solid var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}
.stat-number { font-size: 2.8rem; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 1.05rem; color: #E2E8F0; font-weight: 600; }

/* Why Choose Us Section */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon { margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--secondary); }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* How It Works Section */
.steps-section { background: #FFFDF9; border-top: 1px solid #FFE0B2; border-bottom: 1px solid #FFE0B2; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step-card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #FF7700 100%);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-glow);
}

.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--secondary); }
.step-card p { color: var(--text-muted); font-size: 0.875rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars { color: #F59E0B; margin-bottom: 16px; font-size: 1rem; }
.testimonial-text { font-size: 0.95rem; color: #334155; font-style: italic; margin-bottom: 24px; }
.testimonial-user { display: flex; align-items: center; gap: 14px; }
.testimonial-user img { width: 48px; height: 48px; border-radius: 50%; }
.user-info h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); }
.user-info p { font-size: 0.8rem; color: var(--text-muted); }

/* FAQ Section */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border-radius: var(--radius-sm); border: 1px solid var(--border-color); margin-bottom: 16px; overflow: hidden; }
.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #FFF;
  transition: var(--transition);
  color: var(--secondary);
}
.faq-question:hover { background: #FFF3E0; color: var(--primary-dark); }
.faq-toggle-icon { font-size: 1.2rem; transition: var(--transition); }
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; color: var(--text-muted); font-size: 0.95rem; }
.faq-item.active .faq-answer { padding: 0 24px 20px 24px; max-height: 300px; }

/* Modal Styling */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 30, 91, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--card-bg);
  width: 90%;
  max-width: 520px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.modal.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text-muted); }
.modal-header h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--secondary); }
.modal-header p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--secondary); }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2); }
.form-response-msg { padding: 12px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-response-msg.success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; display: block; }
.form-response-msg.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; display: block; }

/* Footer */
.footer { background: #060D26; color: #94A3B8; padding-top: 70px; padding-bottom: 30px; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-about img { height: 48px; width: auto; margin-bottom: 20px; object-fit: contain; }
.footer-about p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: var(--text-white); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: #94A3B8; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

@media (max-width: 1024px) {
  .hero-grid, .calc-grid { grid-template-columns: 1fr; }
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.2rem; }
  .features-grid, .testimonials-grid, .steps-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
  .credit-score-box { flex-direction: column; text-align: center; gap: 20px; }
  .score-content { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
