     /* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  /* background: linear-gradient(135deg, #6681f9, #1080ff); */
}

.simple-header {
  position: relative;
  top: 0;
  width: 100%;
  background-color: #031461;
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.simple-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffd700;
}

.btn-apply {
  margin-left: 20px;
  background-color: #ffd700;
  color: #031461;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-apply:hover {
  background-color: #e6c200;
}

.phone {
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #031461;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .btn-apply {
    margin: 15px 0 0 0;
    width: 100%;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }
}







/* FORM*/


.loan-form-container {
      background:#fff;
      border-radius: 15px;
      padding: 40px;
      margin:100px auto;
      width: 100%;
      max-width: 500px;
      box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    }

    .loan-form{
        margin: 0 auto;
    }
    h2 {
      text-align: center;
      margin-bottom: 25px;
      color: #333;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
      color: #555;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 10px 14px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 8px;
      transition: border-color 0.3s ease;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: #4a90e2;
      outline: none;
    }

    button {
      width: 100%;
      padding: 12px;
      background-color: #4a90e2;
      border: none;
      border-radius: 8px;
      color: white;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #357ab8;
    }

    @media (max-width: 600px) {
      .loan-form-container {
        padding: 30px 20px;
      }
    }


/* FOOTER */

.simple-footer {
  background-color: #031461;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.footer-top {
  padding: 40px 0;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #ffd700;
}

.footer-social a {
  color: #fff;
  margin-right: 10px;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #ffd700;
}

.footer-note {
  background-color: #021038;
  padding: 15px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom {
  background-color: #010c2b;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }
}








/* Basic Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #031461, #0047b3);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: #ffd700;
  color: #031461;
  padding: 14px 32px;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e6c200;
}

/* Loan Features */
.loan-features h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #031461;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.feature-item {
  background: #f0f4ff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(3, 20, 97, 0.15);
  text-align: center;
}

.feature-item h3 {
  color: #031461;
  margin-bottom: 15px;
}

.feature-item p {
  color: #333;
  font-size: 0.95rem;
}

/* Loan Calculator */
.loan-calculator {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  min-width: 600px !important;
  margin: 40px auto;
}

.loan-calculator h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #031461;
}
.f
.loan-calculator form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loan-calculator label {
  font-weight: 600;
  color: #555;
}

.loan-calculator input {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.loan-calculator input:focus {
  border-color: #0047b3;
  outline: none;
}

.loan-calculator button {
  background-color: #0047b3;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.loan-calculator button:hover {
  background-color: #031461;
}

#emiResult {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #0047b3;
  font-weight: 700;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

.form-bg {
  background-image: url('img/loan.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 20px; /* Responsive padding */
}

.form-bg2 {
  background-image: url('img/loan2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 600px) {
  .loan-form-container {
    padding: 20px 8px;
    margin: 40px auto;
    max-width: 100%;
  }
  .loan-calculator {
    min-width: unset !important;
    padding: 20px 8px;
    margin: 20px auto;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-section {
    padding: 40px 8px;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  .feature-item {
    padding: 16px;
  }
  h2, .hero-section h1 {
    font-size: 1.3rem;
  }
  .form-bg, .form-bg2 {
    padding: 20px 4px;
    min-height: unset;
  }
}


@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #031461;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    transform: translateX(0); /* Remove translateX for simplicity */
    transition: none;
    z-index: 1001;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .btn-apply {
    margin: 15px 0 0 0;
    width: 100%;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }
}


/* FORM MODAL POPUP */

/* Style for the modal background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: scroll;
}

/* Modal content (the form) */
.modal-content {
    /* background-color: #fff; */
    background: linear-gradient(135deg, #031461, #0047b3);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close button for the modal */
.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    top: 0px;
    right: 0px;
    float: right;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Button styling */
#openFormBtn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#openFormBtn:hover {
    background-color: #45a049;
}


@media (max-width:768px){
    .modal-content {
    /* background-color: #fff; */
    background: linear-gradient(135deg, #031461, #0047b3);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
}
