@font-face {
  font-family: "Cabinet";
  src: url(CabinetGrotesk-Variable.ttf);
}
@font-face {
  font-family: "Satoshi";
  src: url(Satoshi-Variable.ttf);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
body {
  font-family: "Cabinet", sans-serif;
  background-color: #f8f5f1;
}
html {
  scroll-behavior: smooth;
}
/* Hero Section */
.hero-section {
  background: url("assests/emi.png") no-repeat center/cover;
  height: 60vh;
  position: relative;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.position-btn {
  background-color: #e2252d;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.position-btn a {
  color: #fff;
  text-decoration: none;
  font-family: "Cabinet";
  font-size: 15px;
}
/* 🔴 Overlay to darken background */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 48%);
  z-index: 1;
}

/* 🟡 Make sure all inner content stays above overlay */
.hero-section * {
  position: relative;
  z-index: 2;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.logo1 img {
  width: 160px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  justify-content: center;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: "Cabinet";
  font-size: 1.1vw;
}
.active-nav {
  background-color: #e2252d;
  padding: 12px;
  border-radius: 6px;
}
.visit-btn {
  background-color: #e2252d;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Cabinet";
  font-size: 1.1vw;
}
.visit-btn {
  background-color: #e2252d;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Cabinet";
  font-size: 1.1vw;
}
.visit-btn a {
  color: white;
  text-decoration: none;
}
/* Hero Content */
.hero-content {
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 17vh;
}
.hero-content h1 {
  font-family: "Cabinet";
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
/* 2nd */

/* FOOTER */
footer {
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  color: #fff;
  background-color: #e2252d;
}
#footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px 30px;
  background-color: #e2252d;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

#footer-brand img {
  width: 200px;
  margin-bottom: 10px;
}

#footer-brand p {
  margin: 6px 0;
}

#footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#footer-social img {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid #fff;
  border-radius: 10px;
}

#footer-nav,
#footer-resources,
#footer-location {
  min-width: 180px;
}

#footer-nav h4,
#footer-resources h4,
#footer-location h4 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
}

#footer-nav ul,
#footer-resources ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#footer-nav li,
#footer-resources li {
  margin-bottom: 10px;
  color: #fff;
}

#footer-nav a,
#footer-resources a,
#footer-location a {
  text-decoration: none;
  color: #fff;
}
#footer-location {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#footer-location img {
  width: 18px;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: 5px;
}

#footer-bottom {
  margin-top: 40px;
  padding: 20px 40px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  color: #fff;
  background-color: #e2252d;
}

#footer-links a {
  text-decoration: none;
  color: #fff;
  margin: 0 5px;
}
footer h4 {
  font-family: "Cabinet";
}
#footer-location .box {
  display: flex;
  align-items: center;
}

/* 3rd */
.wrapper {
  max-width: 1200px;
  width: 96%;
  margin: 40px auto;
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calculator-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  height: 72vh;
  overflow: hidden;
}

.emi-result {
  flex: 1;
  background: linear-gradient(135deg, #e2252d, #e2252eb2);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-width: 280px;
}
.emi-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 20px;
}

.emi-icon {
  margin-bottom: 10px;
}

.emi-icon img {
  fill: white;
  width: 100px;
  height: 100px;
}
.emi-result h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.emi-amount {
  font-size: 36px;
  font-weight: 700;
  margin-top: 10px;
}

.emi-form {
  flex: 2;
  padding: 40px 30px;
  min-width: 320px;
}

.emi-form h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
}
.emi-details {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.emi-details p {
  margin: 5px 0;
  font-weight: 400;
}

.emi-details span {
  font-weight: 600;
  color: #fff;
}
.emi-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.emi-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emi-box p {
  font-size: 14px;
  margin: 0;
  opacity: 0.85;
}

.emi-box h4 {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.emi-box.half {
  flex: 1 1 calc(50% - 15px);
}

.emi-box.full {
  flex: 1 1 100%;
}

.emi-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
}

.form-group input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.slider {
  width: 100%;
  margin-top: 8px;
}

.calculate-btn {
  width: 100%;
  background: #e2252d;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.calculate-btn:hover {
  background: #e2252d;
}
input[type="range"] {
  width: 100%;
  accent-color: #e2252d;
}

@media (max-width: 768px) {
  .calculator-container {
    flex-direction: column;
  }
}
