:root {
  --primary-color: #8c52ff;
  --accent-color: #ffb347;
  --bg-gradient: linear-gradient(135deg, #fdfcff, #e3e3ff);
  --text-dark: #1e1e2f;
  --white: #fff;
}

body {
  font-family: 'Urbanist', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  color: var(--text-dark);
}

/* HEADER SECTION */
.custom-navbar {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #ddd;
}

.navbar-brand {
  /* background: var(--primary-color); */
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin-left: 25px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.nav-link::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--accent-color);
  transition: 0.3s;
  position: absolute;
  bottom: -8px;
  left: 0;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Show dropdown on hover */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}


.spacer {
  height: 80px;
}

/* Hero Section */
.hero-section {
  height: 70vh;
  display: flex;
  align-items: center;
  background: var(--bg-gradient);
}

.hero-section h1 {
  color: var(--primary-color);
  font-size: 45px;
}

.btn-gradient {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border: none;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-gradient:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.hero-img {
  max-height: 400px;
  border-radius: 20px;
}

/* Modal Styling */
.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
}

.form-control {
  border-radius: 10px;
}

.btn-submit {
  background-color: #1d976c;
  color: #fff;
  border-radius: 30px;
  padding: 10px 25px;
  border: none;
  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #14805d;
}

/* Success Message */
.success-message {
  text-align: center;
  color: #1d976c;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: none;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
  }
}

/* why choose us section  */
.text-purple {
  color: #7b2cbf;
}

.btn-purple {
  background-color: #7b2cbf;
  color: white;
  font-weight: 600;
  border-radius: 8px;
}

.btn-purple:hover {
  background-color: #5a189a;
}

.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emi-features h6 {
  font-size: 16px;
}

.emi-features p {
  font-size: 14px;
}

/* LOAN FEATURES SECTION  */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
}

.feature-card {
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.2) rotate(10deg);
}

/* CHECK OFFER SECTION  */
.check-offer {
  background: linear-gradient(to right, #fdfbfb, #ebedee);
}

.offer-input {
  height: 50px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding-left: 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.offer-input:focus {
  border-color: #5d5fef;
  box-shadow: 0 0 10px rgba(93, 95, 239, 0.2);
}

.btn-offer {
  background-color: #5d5fef;
  color: #fff;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(93, 95, 239, 0.3);
}

.btn-offer:hover {
  background-color: #4345dc;
  transform: scale(1.05);
}

/* toast mesaage  */
.custom-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #198754;
  /* Green for success */
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.custom-toast.error {
  background: #dc3545;
  /* Red */
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(-10px);
}

/* best offer  */
.loan-offers-section {
  background: linear-gradient(to right, #f4f4fd, #fefcff);
  color: #2d2d2d;
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #6C5CE7;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
}

.loan-card {
  background-color: white;
  padding: 25px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.loan-card:hover {
  transform: translateY(-8px);
  border-color: #6C5CE7;
  box-shadow: 0 12px 25px rgba(108, 92, 231, 0.2);
}

.loan-card .icon {
  font-size: 40px;
  color: #6C5CE7;
  margin-bottom: 15px;
}

.loan-card h5 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

.loan-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.btn-apply-now {
  background: #6C5CE7;
  color: white;
  border: none;
  padding: 8px 20px;
  font-weight: 500;
  border-radius: 30px;
  transition: background 0.3s;
}

.btn-apply-now:hover {
  background: #5a4bd1;
}

/* faq section  */
.faq-section-new {
  background: #f9f7fe;
}

.section-title {
  color: #6c5ce7;
  font-weight: bold;
}

.section-subtitle {
  color: #555;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  margin-bottom: 20px;
  padding: 20px 25px;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.1);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.faq-item:hover {
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

.faq-question h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question i {
  color: #6c5ce7;
}

.toggle-icon {
  transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
  display: none;
  color: #444;
}

.faq-item.active .faq-answer {
  display: block;
}

/* footer section  */
.footer-rr {
  background: linear-gradient(135deg, #5e4ae3, #9370ff);
  color: #fff;
}

.footer-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-contact li,
.footer-rr p,
.footer-rr a {
  font-size: 15px;
  color: #e6e6e6;
  margin-bottom: 10px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.footer-contact li i {
  color: #fff;
  width: 20px;
}

.footer-rr a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  display: flex;
  align-items: center;
}

.footer-line {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

.footer-bottom p {
  font-size: 14px;
  margin-top: 10px;
}

.animate-footer-left {
  animation: slideInLeft 1s ease forwards;
}

.animate-footer-right {
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* contact section  */
.contact-section {
  padding: 120px 20px 80px;
  background: linear-gradient(to bottom right, #f1f0ff, #f8f9ff);
}

.contact-title {
  text-align: center;
  margin-bottom: 60px;
}

.contact-title h2 {
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(to right, #5e4ae3, #7c5fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}

.contact-info,
.contact-form {
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 300px;
}

.contact-info h4 {
  color: #5e4ae3;
  font-size: 22px;
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 16px;
  margin: 15px 0;
}

.contact-info i {
  color: #5e4ae3;
  margin-right: 12px;
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: 25px;
}

.contact-form h4 {
  color: #5e4ae3;
  margin-bottom: 25px;
}

.form-control {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #5e4ae3;
  box-shadow: 0 0 0 0.2rem rgba(94, 74, 227, 0.1);
}

.btn-submit {
  background: #5e4ae3;
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #4939c6;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column-reverse;
  }

  .contact-title h2 {
    font-size: 30px;
  }
}

.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.contact-modal-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease-in-out;
}

.contact-modal-content h3 {
  color: #262626;
  margin-bottom: 10px;
  font-size: 24px;
}

.contact-modal-content p {
  color: #555;
  margin-bottom: 20px;
  font-size: 15px;
}

.success-icon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 15px;
}

.contact-modal-content button {
  padding: 10px 25px;
  background-color: #7b2cbf;
  border: none;
  color: #fff;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

.contact-modal-content button:hover {
  background-color: #5e4ae3;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* privacy policy section  */
.policy-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 100px 20px 20px;
}

.policy-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

.policy-block {
  margin-bottom: 40px;
}

.policy-block h3 {
  color: #7b2cbf;
  margin-bottom: 10px;
  font-size: 22px;
}

.policy-block p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* tnc section  */
.terms-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 100px 20px 20px;
}

.terms-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

.terms-block {
  margin-bottom: 40px;
}

.terms-block h3 {
  color: #7b2cbf;
  margin-bottom: 10px;
  font-size: 22px;
}

.terms-block p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}