/* styles.css */
body {
  margin: 0;
  font-family: 'Ubuntu', sans-serif;
  color: #222;
  background-color: #f9f9f9;
}

.hero {
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  text-align: center;
  padding: 60px 20px;
}

.hero .logo {
  height: 60px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 10px 0;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #4f46e5;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
}

.services, .about, .emi, .cta, .partner-form {
  padding: 40px 20px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}

.emi-form input {
  margin: 5px;
  padding: 10px;
  width: 200px;
}

footer {
  text-align: center;
  background: #ddd;
  padding: 20px;
  margin-top: 30px;
}

  :root {
  --primary:rgb(12, 12, 13);
  --primary-dark:rgb(42, 45, 42);
  --secondary: #f5f7fa;
  --accent: #e3eafc;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(26,115,232,0.07);
  }
  * { box-sizing: border-box; }
  body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--secondary);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
  }
  a { color: var(--primary); text-decoration: none; }
  a:hover { text-decoration: underline; }
  .container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  }
  header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  }
  nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  }
  .logo {
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  }
  ul.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  }
  ul.nav-links li {
  font-weight: 600;
  font-size: 1.05rem;
  }
  .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  }
  .hamburger div {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  }
  /* Hero */
  .hero {
  background: linear-gradient(120deg, var(--primary) 60%, #000 100%);
  color: #fff;
  padding: 4.5rem 1rem 5.5rem;
  text-align: center;
  position: relative;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  }
  .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  }
  .hero p {
  font-size: 1.18rem;
  margin-bottom: 2.2rem;
  color: #e3eafc;
  font-weight: 500;
  }
  .btn-primary {
  background: white;
  color: black;
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.08rem;
  box-shadow: 0 4px 16px rgba(26,115,232,0.13);
  transition: background 0.2s;
  }
  .btn-primary:hover, .lead-form button:hover {
  background: var(--primary-dark);
  color: #fff;
  }
  /* Section titles */
  h2.section-title {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  }
  section {
  padding: 3.5rem 0 2.5rem;
  }
  /* Features */
  .features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  }
  .feature-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  width: 260px;
  text-align: left;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  }
  .feature-card:hover {
  box-shadow: 0 8px 28px rgba(26,115,232,0.13);
  transform: translateY(-4px) scale(1.02);
  }
  .feature-icon {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
  display: inline-block;
  }
  .feature-card h3 {
  margin-bottom: 0.7rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  }
  .feature-card p {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
  }
  /* Use SVG icons instead of emoji for professionalism */
  .feature-card:nth-child(1) .feature-icon::before {
  content: '';
  display: inline-block;
  width: 28px; height: 28px;
  background: url('https://www.svgrepo.com/show/354380/lightning-bolt.svg') no-repeat center/contain;
  vertical-align: middle;
  }
  .feature-card:nth-child(2) .feature-icon::before {
  content: '';
  display: inline-block;
  width: 28px; height: 28px;
  background: url('https://www.svgrepo.com/show/354262/money.svg') no-repeat center/contain;
  vertical-align: middle;
  }
  .feature-card:nth-child(3) .feature-icon::before {
  content: '';
  display: inline-block;
  width: 28px; height: 28px;
  background: url('https://www.svgrepo.com/show/354380/handshake.svg') no-repeat center/contain;
  vertical-align: middle;
  }
  .feature-card:nth-child(4) .feature-icon::before {
  content: '';
  display: inline-block;
  width: 28px; height: 28px;
  background: url('https://www.svgrepo.com/show/354380/phone-call.svg') no-repeat center/contain;
  vertical-align: middle;
  }
  .feature-icon { font-size: 0; } /* Hide emoji text */
  /* Services */
  .services {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 2rem;
  }
  .service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
  min-height: 170px;
  }
  .service-card:hover {
  box-shadow: 0 8px 28px rgba(26,115,232,0.13);
  transform: translateY(-4px) scale(1.02);
  }
  .service-card h3 {
  margin-bottom: 0.7rem;
  color: var(--primary-dark);
  font-size: 1.13rem;
  }
  .service-card p {
  color: var(--muted);
  font-size: 0.97rem;
  }
  /* Calculator */
  .calculator {
  max-width: 400px;
  background: #fff;
  padding: 2rem 2rem 1.5rem;
  margin: 1rem auto 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  }
  .calculator label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  }
  .calculator input, .calculator select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 1rem;
  background: var(--accent);
  transition: border 0.2s;
  }
  .calculator input:focus {
  border: 1.5px solid var(--primary);
  outline: none;
  background: #fff;
  }
  .calculator-result {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  padding: 1rem 0;
  font-size: 1.15rem;
  -webkit-user-select: none;
  user-select: none;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
  }
  /* Lead Form */
  .lead-form {
  max-width: 500px;
  margin: 0 auto 4rem;
  background: #fff;
  padding: 2.2rem 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  }
  .lead-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-size: 1.5rem;
  }
  .lead-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  }
  .lead-form input, .lead-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--accent);
  transition: border 0.2s;
  }
  .lead-form input:focus, .lead-form select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
  background: #fff;
  }
  .lead-form button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-size: 1.08rem;
  transition: background 0.2s;
  margin-top: 0.5rem;
  }
  .success-msg {
  background: #e7f9ed;
  color: #1a7f37;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid #b7e4c7;
  }
  .error-msg {
  background: #fbeaea;
  color: #b91c1c;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid #fca5a5;
  }
  /* Testimonials */
  .testimonials {
  max-width: 900px;
  margin: 3rem auto 5rem;
  text-align: center;
  }
  .testimonial-slide {
  display: none;
  font-style: italic;
  color: var(--muted);
  padding: 1.2rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  }
  .testimonial-slide.active {
  display: block;
  }
  .testimonial-client {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-style: normal;
  }
  .testimonial-controls {
  margin-top: 1rem;
  }
  .testimonial-btn {
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-weight: 700;
  margin: 0 5px;
  font-size: 1.2rem;
  transition: background 0.2s;
  }
  .testimonial-btn:hover {
  background: var(--primary-dark);
  }
  /* Footer */
  footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.97rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 2rem;
  letter-spacing: 0.2px;
  }
  footer a {
  color: #e3eafc;
  margin: 0 8px;
  font-size: 1.1rem;
  vertical-align: middle;
  }
  /* Responsive */
  @media (max-width: 900px) {
  .features { gap: 1.2rem; }
  .feature-card { width: 95%; min-width: 220px; }
  .services { gap: 1.2rem; }
  }
  @media (max-width: 768px) {
  .features { flex-direction: column; align-items: center; }
  ul.nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    padding-top: 5rem;
    width: 100%;
    box-shadow: -2px 0 15px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 2000;
  }
  ul.nav-links.open { transform: translateX(0); }
}

/* Password Modal Styles */
.password-strength {
  margin-top: 5px;
}

.password-strength small {
  font-size: 0.8rem;
  font-weight: 500;
}

.input-group .btn-outline-secondary {
  border-color: #ced4da;
}

.input-group .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.input-group .btn-outline-secondary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-header .btn-close {
  font-size: 1rem;
}

.modal-body .alert {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.change-password-btn {
  transition: all 0.2s ease;
}

.change-password-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Form validation styles */
.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: block;
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

/* Loading overlay for password modal */
.modal-body {
  position: relative;
}

.modal-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

/* Password strength colors */
.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.text-success {
  color: #28a745 !important;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .input-group .btn {
    padding: 0.375rem 0.75rem;
  }
}
