/* ==========================================================================
   BHARATFINCART PRIVATE LIMITED - MAIN STYLESHEET
   Design Palette & UI System matching official logo & design spec
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary-navy: #0F2C59;
  --primary-navy-dark: #0A1B38;
  --primary-blue: #1D61E7;
  --primary-blue-hover: #144CB8;
  --accent-orange: #FF6B00;
  --accent-orange-hover: #E65100;
  --accent-green: #108542;
  --accent-yellow: #FFA000;

  /* Neutral Colors */
  --bg-light: #F4F7FB;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 44, 89, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 44, 89, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 44, 89, 0.12);
  --shadow-hover: 0 25px 45px -12px rgba(29, 97, 231, 0.2);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  color: rgb(33, 37, 41);
  font-size: 16px;
  line-height: 24px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 78px;
}

.brand-logo img,
.brand-logo svg {
  height: 100%;
  width: auto;
  max-height: 78px;
  object-fit: contain;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgb(33, 37, 41);
  text-transform: none;
  letter-spacing: 0.2px;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary-blue, #1D61E7);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue, #1D61E7);
}

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

.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .btn-get-in-touch {
  padding: 8px 18px;
  font-size: 15px;
  line-height: 22px;
  font-family: 'proxima-nova', Arial, sans-serif;
  font-weight: 400;
}

/* ==========================================================================
   UNIFIED HOME PAGE BUTTON DESIGN SYSTEM
   Applied across all pages (Home, About, Services, Products, Contact, Modals)
   ========================================================================== */
.btn-get-in-touch,
.btn-talk-expert,
.btn-check-eligibility,
.btn-know-more,
.btn-submit-quote,
.btn-send-message,
.btn-tool-navy,
.btn-tool-outline,
.btn-search-navy,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  line-height: 1.2;
}

/* Home Page Primary Navy Button Style */
.btn-get-in-touch,
.btn-know-more,
.btn-tool-navy,
.btn-search-navy,
.btn-primary {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 13px 26px;
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.25);
}

.btn-get-in-touch:hover,
.btn-know-more:hover,
.btn-tool-navy:hover,
.btn-search-navy:hover,
.btn-primary:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 97, 231, 0.35);
  color: var(--bg-white);
}

/* Home Page Form Action Button Style (Royal Blue) */
.btn-submit-quote,
.btn-send-message {
  width: 100%;
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(29, 97, 231, 0.3);
}

.btn-submit-quote:hover,
.btn-send-message:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 97, 231, 0.4);
  color: var(--bg-white);
}

/* Dark Section White Pill Button */
.btn-talk-expert {
  background: var(--bg-white);
  color: var(--primary-navy);
  padding: 13px 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-talk-expert:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  color: var(--primary-blue);
}

/* Dark Section Outline Pill Button */
.btn-check-eligibility {
  background: transparent;
  color: var(--bg-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 12px 26px;
}

.btn-check-eligibility:hover {
  border-color: var(--bg-white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Light Section Outline Button */
.btn-tool-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 1.5px solid rgba(15, 44, 89, 0.25);
  padding: 11px 20px;
  border-radius: 10px;
}

.btn-tool-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: #F8FAFC;
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Icon baseline normalization */
.btn-get-in-touch svg,
.btn-talk-expert svg,
.btn-check-eligibility svg,
.btn-know-more svg,
.btn-submit-quote svg,
.btn-send-message svg,
.btn-tool-navy svg,
.btn-tool-outline svg,
.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-navy);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF4FF 50%, #E2EEFE 100%);
  padding: 60px 0 80px 0;
  overflow: hidden;
}

.hero-background-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  background-image: radial-gradient(#1D61E7 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-growth-chart-bg {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 55%;
  height: 85%;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Hero Content */
.hero-subtitle {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title,
.tools-hero-title,
.services-hero-title,
.about-hero-title,
.contact-title-main {
  font-family: var(--font-main);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-navy);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span,
.tools-hero-title span,
.services-hero-title span,
.about-hero-title span {
  color: var(--primary-navy);
  display: block;
}

.hero-title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-green));
  border-radius: 4px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.feature-pill-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(29, 97, 231, 0.08);
  border: 1px solid rgba(29, 97, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.feature-pill:hover .feature-pill-icon {
  background: var(--primary-blue);
  color: var(--bg-white);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(29, 97, 231, 0.25);
}

.feature-pill-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-pill-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
}

/* Right Hero Form Card */
.quote-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.3s ease;
  max-width: 390px;
  margin-left: auto;
  width: 100%;
}

.quote-card-header {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 16px 20px;
  text-align: center;
}

.quote-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.quote-card-header p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.quote-form {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: #FAFAFA;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(29, 97, 231, 0.1);
}

textarea.form-control {
  padding: 12px 14px 12px 42px;
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%64748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.btn-submit-quote {
  width: 100%;
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29, 97, 231, 0.3);
  transition: all 0.3s ease;
  margin-top: 4px;
}

.btn-submit-quote:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 97, 231, 0.4);
}

.quote-form .form-control {
  padding: 9px 12px 9px 38px;
  font-size: 0.88rem;
  border-radius: 8px;
}

.quote-form .input-icon {
  left: 12px;
}

.quote-form .input-icon svg {
  width: 16px;
  height: 16px;
}

.quote-form .btn-submit-quote {
  padding: 10px;
  font-size: 0.92rem;
  border-radius: 8px;
  margin-top: 2px;
}

.form-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.form-security-note svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   DARK BLUE FEATURE BAR
   ========================================================================== */
.dark-feature-bar {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 36px 0;
  position: relative;
  z-index: 10;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-bar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-bar-item:last-child {
  border-right: none;
}

.feature-bar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60A5FA;
}

.feature-bar-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-bar-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--bg-white);
}

.feature-bar-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ==========================================================================
   STATS COUNTER BAR
   ========================================================================== */
.stats-bar {
  background: var(--bg-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 12px;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(29, 97, 231, 0.06);
  border: 1.5px solid rgba(29, 97, 231, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.stat-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 90px 0;
  background: #FAFCFF;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tagline {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.title-accent-lines {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.line-orange {
  width: 40px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 4px;
}

.line-green {
  width: 20px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 4px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(29, 97, 231, 0.3);
}

.service-icon-bg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(29, 97, 231, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-bg {
  background: var(--primary-blue);
  color: var(--bg-white);
  transform: scale(1.08);
}

.service-icon-bg svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.service-card:hover .service-link {
  gap: 10px;
  color: var(--primary-blue-hover);
}

/* ==========================================================================
   INTERACTIVE EMI CALCULATOR
   ========================================================================== */
.calculator-section {
  padding: 80px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calculator-wrapper {
  background: linear-gradient(135deg, #F8FAFC 0%, #EDF4FF 100%);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 768px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

.calc-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

/* Calculator Multi-Tab Navigation */
.calc-tab-nav {
  display: flex;
  background: #E2E8F0;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin: 16px 0 24px 0;
}

.calc-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #64748B;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.12);
}

.calc-tab-btn:hover:not(.active) {
  color: var(--primary-blue);
}

/* Interactive Calculator Modal Popup */
.calc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 44, 89, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calc-modal-overlay.active {
  opacity: 1;
}

.calc-modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  padding: 32px;
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.96);
  }

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

.calc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.calc-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-modal-close {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calc-modal-close:hover {
  background: #E2E8F0;
  color: var(--primary-navy);
}

/* Calculator Tab Nav Bar Styling */
.calc-tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto 24px auto;
  box-sizing: border-box;
}

.calc-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 26px;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.calc-tab-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.calc-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-navy, #0F2C59);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.12);
  font-weight: 800;
}

.calc-tab-btn:hover:not(.active) {
  color: var(--primary-blue, #1D61E7);
}

@media (max-width: 640px) {
  .calc-tab-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }

  .calc-tab-btn {
    padding: 9px 4px !important;
    font-size: 0.76rem !important;
    border-radius: 12px !important;
    gap: 4px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .calc-tab-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
}

@media (max-width: 400px) {
  .calc-tab-btn {
    font-size: 0.72rem !important;
    padding: 8px 2px !important;
    gap: 3px !important;
  }

  .calc-tab-btn svg {
    display: none !important;
    /* Hide icon on tiny screens so text never clips */
  }
}

/* Global Floating Sticky Calculate EMI Button */
.sticky-calc-btn {
  position: fixed;
  right: 0;
  top: 17%;
  transform: translateY(-50%);
  z-index: 9990;
  background: linear-gradient(135deg, #1D61E7 0%, #0F2C59 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border-radius: 22px 0 0 22px;
  box-shadow: -3px 4px 14px rgba(15, 44, 89, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-calc-btn:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -6px 8px 20px rgba(29, 97, 231, 0.45);
  background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
}

.sticky-calc-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1D61E7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.sticky-calc-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .sticky-calc-btn {
    top: auto;
    bottom: 24px;
    right: 16px;
    transform: none;
    border-radius: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(15, 44, 89, 0.4);
    padding: 10px 18px 10px 12px;
  }

  .sticky-calc-btn:hover {
    transform: translateY(-3px);
  }
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.calc-value-badge {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-blue);
  background: rgba(29, 97, 231, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.calc-value-badge-input {
  border: 1.5px solid rgba(29, 97, 231, 0.3);
  text-align: center;
  width: 145px;
  max-width: 100%;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
  cursor: text;
  box-sizing: border-box;
}

#val-rate.calc-value-badge-input {
  width: 95px;
}

#val-tenure.calc-value-badge-input {
  width: 225px;
  max-width: 100%;
}

.calc-value-badge-input:hover {
  background: rgba(29, 97, 231, 0.15);
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(29, 97, 231, 0.15);
}

.calc-value-badge-input:focus {
  background: #FFFFFF;
  border-color: var(--primary-blue);
  color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(29, 97, 231, 0.25);
}

.tenure-label-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tenure-toggle-group {
  display: flex;
  background: #E2E8F0;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.tenure-toggle-btn {
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.tenure-toggle-btn.active {
  background: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(29, 97, 231, 0.25);
}

.tenure-toggle-btn:hover:not(.active) {
  color: var(--primary-navy);
}

.range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #CBD5E1;
  outline: none;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.calc-result-box {
  background: var(--primary-navy);
  color: var(--bg-white);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(15, 44, 89, 0.25);
}

.calc-emi-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  font-weight: 700;
}

.calc-emi-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #60A5FA;
  margin-bottom: 24px;
}

.calc-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.breakdown-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.breakdown-item h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-white);
}

/* ==========================================================================
   OUR SIMPLE PROCESS SECTION
   ========================================================================== */
.process-section {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.process-section .section-title {
  color: var(--bg-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.process-connector-line {
  position: absolute;
  top: 50px;
  left: 12%;
  right: 12%;
  height: 2px;
  border-top: 2px dashed rgba(255, 255, 255, 0.25);
  z-index: 1;
}

.process-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -16px;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 0 4px var(--primary-navy);
}

.step-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.process-step-card:hover .step-icon-wrapper {
  transform: scale(1.1);
  background: #EDF4FF;
}

.step-icon-wrapper svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--bg-white);
}

.step-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  max-width: 220px;
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #16366F 100%);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: #60A5FA;
}

.about-intro-section {
  padding: 80px 0;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-img-box {
  position: relative;
}

.about-main-img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-experience-badge h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge p {
  font-size: 0.85rem;
  font-weight: 600;
}

.about-text-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-text-content p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.value-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid var(--border-color);
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  background: #081326;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 70px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-about img {
  width: 260px;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
}

.footer-col-about p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 6px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  fill: #60A5FA;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-bar-grid,
  .stats-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-bar-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 16px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .process-connector-line {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .feature-bar-grid,
  .stats-grid,
  .services-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LOAN APPLICATION MODAL POPUP FORM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 27, 56, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-container {
  background: var(--bg-white);
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--bg-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   SERVICES & PRODUCTS CTA BANNER ("Need Help Understanding Results?")
   ========================================================================== */
.services-cta-banner {
  background: var(--primary-navy, #0F2C59);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 36px 48px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(15, 44, 89, 0.15);
  gap: 24px;
}

.services-cta-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.services-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
  flex-shrink: 0;
}

.services-cta-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.services-cta-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.services-cta-text p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-talk-expert {
  background: var(--primary-blue, #1D61E7);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(29, 97, 231, 0.4);
}

.btn-talk-expert:hover {
  background: var(--primary-blue-hover, #144CB8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 97, 231, 0.5);
  color: #FFFFFF;
}

.btn-check-eligibility {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-check-eligibility:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #FFFFFF;
}

@media (max-width: 992px) {
  .services-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .services-cta-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn-talk-expert,
  .btn-check-eligibility {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SITE FOOTER (Full Responsiveness & Modern Aesthetics)
   ========================================================================== */
.site-footer {
  background: var(--primary-navy, #0F2C59);
  color: #FFFFFF;
  padding: 50px 0 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  width: 300px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: none;
}

.footer-about-text {
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icon-btn:hover {
  background: var(--primary-blue, #1D61E7);
  border-color: var(--primary-blue, #1D61E7);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(29, 97, 231, 0.4);
}

.footer-col-title {
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #60A5FA;
  padding-left: 4px;
}

.footer-contact-item {
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.footer-contact-item a {
  color: #60A5FA;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'proxima-nova', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer-text {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* Footer Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }

  .footer-col-about {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 0 24px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-col-about {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col-about {
    grid-column: span 1;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .footer-legal-links {
    gap: 12px;
  }
}

/* ==========================================================================
   GLOBAL RESPONSIVE ENGINE (Covers All Pages & Breakpoints)
   ========================================================================== */

/* 1. Global Viewport Overflow Guard */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

img,
iframe,
video {
  max-width: 100%;
}

/* 2. Responsive Header & Navigation Drawer (Tablet / Mobile < 992px) */
@media (max-width: 992px) {
  .site-header {
    padding: 12px 0;
  }

  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }

  .mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-navy, #0F2C59);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-navy, #0F2C59);
    padding: 20px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--primary-blue, #1D61E7);
    z-index: 1000;
  }

  .main-nav.active {
    display: block;
    animation: drawerSlideDown 0.3s ease forwards;
  }

  @keyframes drawerSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  .nav-list {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-link {
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    padding: 8px 0;
  }

  .header-cta {
    display: none;
  }
}

/* 3. Hero Grids (Index, Products, Services, About) */
@media (max-width: 992px) {

  .hero-grid,
  .tools-hero-grid,
  .services-hero-grid,
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-title,
  .tools-hero-title,
  .services-hero-title,
  .about-hero-title {
    font-size: 2.3rem;
    line-height: 1.32;
  }

  .hero-title-accent {
    padding-bottom: 14px;
  }

  .hero-title-accent::after {
    bottom: 0;
  }

  .hero-desc,
  .tools-hero-desc,
  .services-hero-desc,
  .about-hero-desc {
    margin: 0 auto 24px auto;
  }
}

@media (max-width: 576px) {

  .hero-title,
  .tools-hero-title,
  .services-hero-title,
  .about-hero-title {
    font-size: 1.85rem;
    line-height: 1.35;
  }

  .hero-title-accent {
    padding-bottom: 14px;
  }

  .hero-title-accent::after {
    bottom: 0;
  }
}

/* 4. Feature Cards & Products Grids */
@media (max-width: 992px) {

  .services-grid,
  .features-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tools-grid-4,
  .tools-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-bar-item {
    border-right: none;
    padding: 0;
  }

  .health-calc-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
    padding: 24px 20px;
  }

  .health-calc-img {
    height: 160px;
    margin: 0 auto;
    max-width: 240px;
  }

  .health-calc-info {
    text-align: left;
  }

  .health-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
  }

  .health-checklist li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

  .health-checklist li svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue, #1D61E7);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .why-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .why-tool-item {
    border-right: none;
  }
}

@media (max-width: 640px) {

  .services-grid,
  .features-grid,
  .values-grid,
  .team-grid,
  .tools-grid-4,
  .tools-grid-3,
  .feature-bar-grid,
  .why-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 5. Contact Page Responsive Grid (< 992px) */
@media (max-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-left-card {
    padding: 24px 18px;
  }

  .contact-map-column {
    min-height: 360px;
  }

  .contact-map-column iframe {
    min-height: 360px;
  }
}

@media (max-width: 640px) {

  .form-row-2col,
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 6. Interactive Calculator Modal & Page Calculator Mobile Responsiveness */
@media (max-width: 992px) {
  .calc-modal-overlay {
    padding: 12px 8px;
  }

  .calc-modal-container {
    padding: 18px 14px;
    max-height: 94vh;
    border-radius: 18px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .calc-modal-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .calc-modal-title {
    font-size: 1.15rem;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .calc-result-box {
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
  }

  .calc-emi-amount {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .calc-breakdown {
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .calc-modal-overlay {
    padding: 8px 4px;
  }

  .calc-modal-container {
    padding: 14px 10px;
    border-radius: 14px;
    max-height: 96vh;
  }

  .calc-modal-title {
    font-size: 1.02rem;
    gap: 6px;
  }

  .calc-modal-title svg {
    width: 20px;
    height: 20px;
  }

  .calc-tab-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .calc-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .calc-tab-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 20px;
  }

  .calc-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .calc-value-badge {
    font-size: 0.9rem;
    padding: 3px 10px;
    align-self: flex-start;
  }

  .tenure-label-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .calc-controls h2.calc-title {
    font-size: 1.35rem;
  }

  .calc-controls p {
    font-size: 0.84rem;
  }

  .calc-result-box {
    padding: 20px 12px;
  }

  .calc-emi-amount {
    font-size: 1.85rem;
  }

  .breakdown-item h5 {
    font-size: 1.02rem;
  }

  /* Range input touch thumb enhancement */
  .range-input {
    height: 10px;
    margin: 8px 0;
  }

  .range-input::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    background: var(--primary-blue, #1D61E7);
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

/* 7. Homepage Stats Counter Bar Mobile Optimization (2x2 Grid) */
@media (max-width: 768px) {
  .stats-bar {
    padding: 32px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
  }

  .stat-item {
    border-right: none !important;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px 10px !important;
    box-shadow: 0 4px 14px rgba(15, 44, 89, 0.05);
    border: 1px solid #F1F5F9;
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .stat-icon-wrapper {
    width: 46px !important;
    height: 46px !important;
    margin: 0 auto !important;
  }

  .stat-icon-wrapper svg {
    width: 22px !important;
    height: 22px !important;
  }

  .stat-number {
    font-size: 1.45rem !important;
  }

  .stat-label {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
  }
}

@keyframes slideInToast {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}