:root {
  --primary: #1e3a8a;
  --accent: #16a34a;
  --light: #f8fafc;
  --lighter: #f1f5f9;
  --text: #1f2937;
  --border: #e2e8f0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
}
body {
  color: var(--text);
  line-height: 1.6;
  background: white;
}
.container {
  max-width: 1100px;
  margin: auto;
  padding: 14px;
  text-align: center;
}
h1 {
  font-size: 42px;
  line-height: 1.2;
}
h1,
h2,
h3 {
  margin-bottom: 12px;
}
p {
  margin-bottom: 10px;
}
label {
  font-size: 14px;
  font-weight: bold;
  /* margin-top: 4px; */ /* Removed to rely on form gap */
  text-align: left;
  display: block;
}
section {
  padding: 80px 14px;
  border-bottom: 1px solid var(--border);
}
section.alt {
  background: var(--light);
}
.btn {
  display: block;
  background: var(--primary); /* Changed from --accent */
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  width: 100%;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #1a438a; /* Lighter shade of primary for hover */
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #1a434a; /* A slightly darker green for hover, based on the accent color */
}

@media (min-width: 768px) {
  .btn {
    width: 200px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 5px;
  }
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn.secondary:hover {
  background-color: var(--primary);
  color: white;
}
header {
  background: white;
  padding: 40px 14px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header p {
  margin-bottom: 20px;
}

.logo {
  margin-bottom: 30px;
}

.logo-img {
  width: 150px;
  height: auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: white;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}

.testimonial-card {
  background: white;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}
.testimonial-card p {
  font-style: italic;
  color: #475569;
}

.testimonial-card strong {
  margin-bottom: 15px;
  font-style: normal;
  display: block;
  font-weight: bold;
}

.result-summary-card {
  background: white;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 20px; /* Added for spacing */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Added subtle shadow */
}

.offer-cta-box {
  margin-top: 30px; /* Added for spacing */
  /* margin-bottom: 20px; Removed as spacing is now handled by step headings */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Added subtle shadow */
}

form {
  display: grid;
  gap: 16px; /* Increased for more spacing */
  margin: 20px auto 0;
  max-width: 600px;
  text-align: left;
}
input,
select {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
}
input[type='range'] {
  padding: 0;
}
.range-wrap {
  margin-bottom: 10px;
}
.results-box {
  /* Removed background, border, padding as it's now a container for cards */
  margin: 30px auto 0;
  max-width: 600px;
  text-align: left; /* Aligned for steps */
}
.emi-output {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 20px;
}
.option-box {
  font-size: 16px;
  /* border: 1px solid var(--border); */
  padding: 20px;
  border-radius: 10px;
  margin: 90px auto 90px;
  width: 100%;
  background: white;
  text-align: center;
}
.hidden {
  display: none;
}

.phone-field {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  /* margin-top: 8px; */ /* Removed to rely on form gap */
  background: white;
}
.phone-prefix {
  background: #e2e8f0;
  padding: 12px 12px;
  font-weight: bold;
  white-space: nowrap;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-input {
  border: none;
  flex: 1;
  padding: 14px;
  font-size: 18px;
  outline: none;
}

#submitBtn {
  margin-top: 20px;
}

.disclaimer-notes {
  margin-top: 20px; /* Added for spacing */
}

.trust-badge {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #475569;
}

.lead-note {
  font-size: 13px;
  color: #475569;
  margin-top: 10px; /* Increased spacing */
  text-align: center;
}

.lead-note a {
  color: #475569; /* Match parent text color */
  text-decoration: none;
  font-size: 13px; /* Match parent font size */
}

.lead-note a:hover {
  text-decoration: underline;
}
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 20px;
  font-size: 14px;
  text-align: center;
}
@media (max-width: 600px) {
  header {
    padding: 50px 12px;
  }
  section {
    padding: 50px 12px;
  }
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-weight: bold;
  font-size: 18px;
  margin-left: 10px;
}
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px;
  display: none;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
}
.sticky-cta button {
  width: 100%;
  max-width: 420px;
}

.sticky-cta-visible {
  display: flex;
}
@media (min-width: 768px) {
  .sticky-cta {
    display: none !important;
  }
}

.loader-container {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary);
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade-in effect for sections */
.fade-in-section {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.fade-in-section.visible {
  opacity: 1;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-body {
  max-height: calc(100vh - 120px); /* Adjust based on total modal padding and close button */
  overflow-y: auto;
  padding-right: 15px; /* To prevent scrollbar from overlapping content */
}

.modal-body h1 {
  font-size: 1.5em;
  margin-top: 1em;
  font-family: 'Lato', sans-serif;
  color: var(--text);
}

.modal-body h2 {
  font-size: 1.2em;
  margin-top: 1em;
  font-family: 'Lato', sans-serif;
  color: var(--text);
}

.modal-body h3 {
  font-size: 1em;
  margin-top: 1em;
  font-family: 'Lato', sans-serif;
  color: var(--text);
}

.modal-body p,
.modal-body ul,
.modal-body li {
  font-size: 0.85em;
  line-height: 1.6;
  color: var(--text);
  font-family: 'Lato', sans-serif;
}

.modal-body ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

#modalTitle h1 {
  font-size: 1.8em;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  margin-top: 15px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .separator {
  color: #cbd5e1;
  margin: 0 10px;
  font-size: 14px;
}