/**
 * UFS Mortgages - Premium Financial Design System
 * Built on Bootstrap 5.3 with Bespoke Financial Styling
 */

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

:root {
  /* Color Palette */
  --ufs-navy-950: #07111e;
  --ufs-navy-900: #0b1a2f;
  --ufs-navy-800: #112542;
  --ufs-navy-700: #193863;
  --ufs-navy-600: #254d85;

  /* Secondary Accent Color - Vibrant Modern Cyan (#00B2E3) */
  /* To revert back to Gold:
     --ufs-gold-600: #b88628;
     --ufs-gold-500: #c99738;
     --ufs-gold-400: #dfb259;
     --ufs-gold-100: #fef8ee;
     --ufs-gold-50:  #fffcf7;
     --ufs-shadow-gold: 0 10px 25px rgba(201, 151, 56, 0.28);
  */
  --ufs-gold-600: #008eb5;  /* Deep Rich Cyan (Hover) */
  --ufs-gold-500: #00B2E3;  /* Core Modern Cyan Accent */
  --ufs-gold-400: #38cbf0;  /* Bright Cyan Highlight */
  --ufs-gold-100: #e0f7fc;  /* Ice Cyan Tint */
  --ufs-gold-50:  #f0fbfe;  /* Crisp Cyan Surface */

  --ufs-slate-900: #0f172a;
  --ufs-slate-800: #1e293b;
  --ufs-slate-700: #334155;
  --ufs-slate-600: #475569;
  --ufs-slate-500: #64748b;
  --ufs-slate-400: #94a3b8;
  --ufs-slate-200: #e2e8f0;
  --ufs-slate-100: #f1f5f9;
  --ufs-slate-50:  #f8fafc;

  /* Warm Sand & Cream Editorial Palette (Quick Mortgages inspired) */
  --ufs-sand:        #F2EEE6;
  --ufs-sand-soft:   #F7F4EE;
  --ufs-cream:       #FBFAF8;
  --ufs-line-warm:   #E7E2DA;
  --ufs-ink:         #2B2620;

  --ufs-emerald-600: #059669;
  --ufs-emerald-500: #10b981;
  --ufs-emerald-50:  #ecfdf5;

  /* Typography */
  --bs-body-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ufs-font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Elevation Shadows */
  --ufs-shadow-sm: 0 2px 4px rgba(11, 26, 47, 0.04);
  --ufs-shadow-md: 0 6px 16px rgba(11, 26, 47, 0.08);
  --ufs-shadow-lg: 0 16px 36px rgba(11, 26, 47, 0.12);
  --ufs-shadow-xl: 0 24px 60px rgba(11, 26, 47, 0.16);
  --ufs-shadow-gold: none;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--ufs-slate-700);
  background-color: var(--ufs-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--ufs-font-heading);
  color: var(--ufs-navy-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Utilities & Accents */
.text-white { color: #ffffff !important; }
.text-gold { color: var(--ufs-gold-500) !important; }
.bg-gold { background-color: var(--ufs-gold-500) !important; color: #fff; }
.text-navy { color: var(--ufs-navy-900) !important; }
.bg-navy { background-color: var(--ufs-navy-900) !important; color: #fff; }
.bg-navy-dark { background-color: var(--ufs-navy-950) !important; color: #fff; }
.bg-navy-soft { background-color: var(--ufs-navy-800) !important; color: #fff; }
.bg-surface { background-color: var(--ufs-sand) !important; }
.bg-sand { background-color: var(--ufs-sand) !important; }
.bg-cream { background-color: var(--ufs-cream) !important; }
.border-warm { border-color: var(--ufs-line-warm) !important; }

/* Top Announcement Bar */
.top-bar {
  background: var(--ufs-navy-950);
  color: #ffffff;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.top-bar a:hover {
  color: var(--ufs-gold-400);
}
.phone-number-big {
  font-family: var(--ufs-font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}
.phone-number-big:hover {
  color: var(--ufs-gold-400) !important;
  transform: translateY(-1px);
}
.phone-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 178, 227, 0.2);
  color: var(--ufs-gold-400);
  border: 1px solid rgba(0, 178, 227, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Glassmorphism Header */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 26, 47, 0.08);
}

.navbar-brand {
  font-family: var(--ufs-font-heading);
  color: var(--ufs-navy-900);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.navbar-brand:hover img {
  transform: scale(1.03);
}
.brand-badge {
  background: linear-gradient(135deg, var(--ufs-navy-900), var(--ufs-navy-700));
  color: var(--ufs-gold-400);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(11, 26, 47, 0.2);
  border: 1px solid rgba(201, 151, 56, 0.3);
}

.site-header .nav-link,
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: #071220 !important;
  padding: 0.45rem 0.65rem !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ufs-gold-600) !important;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .nav-link,
  .navbar-nav .nav-link {
    font-size: 0.83rem;
    padding: 0.4rem 0.45rem !important;
  }
}

.dropdown-menu {
  border: 1px solid var(--ufs-slate-200);
  box-shadow: var(--ufs-shadow-lg);
  border-radius: 12px;
  padding: 12px;
  min-width: 320px;
}
.dropdown-item {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ufs-navy-900);
  transition: all 0.15s ease;
}
.dropdown-item:hover {
  background-color: var(--ufs-gold-100);
  color: var(--ufs-gold-600);
}
.dropdown-item .desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ufs-slate-500);
  margin-top: 2px;
}

/* Unified Mortgages & Insurance Mega Menus */
@media (min-width: 1200px) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .site-header .navbar {
    position: relative;
  }
  .nav-item.dropdown.mega-dropdown {
    position: static;
  }
  /* Invisible hover bridge so moving mouse downward never leaves the hover zone */
  .nav-item.dropdown.mega-dropdown::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 25px;
    background: transparent;
    pointer-events: auto;
    z-index: 1045;
  }
  /* Keep open on hover, when .is-hovered or .show is applied */
  .nav-item.dropdown:hover > .dropdown-menu,
  .nav-item.dropdown.is-hovered > .dropdown-menu,
  .nav-item.dropdown > .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: megaMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .mega-menu-unified {
    position: absolute;
    top: 100% !important;
    margin-top: 0 !important;
    left: 50%;
    transform: translateX(-50%);
    width: 1140px;
    max-width: 96vw;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(11, 26, 47, 0.16);
    z-index: 1050;
  }
  /* Invisible hover bridge spanning upwards from the mega menu to completely seal any gap */
  .mega-menu-unified::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    pointer-events: auto;
  }
  .border-start-lg, .border-start-xl {
    border-left: 1px solid #e2e8f0;
  }
}

@keyframes megaMenuFadeIn {
  0% { opacity: 0; transform: translateY(6px) translateX(-50%); }
  100% { opacity: 1; transform: translateY(0) translateX(-50%); }
}

@media (max-width: 1199.98px) {
  .mega-menu-unified {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-top: 8px !important;
    background: #f8fafc !important;
  }
  .border-start-lg, .border-start-xl {
    border-left: none !important;
    border-top: 2px solid #e2e8f0 !important;
    padding-top: 16px !important;
    margin-top: 8px !important;
  }
  .navbar-collapse {
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 24px;
  }
}

.mega-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ufs-navy-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-item-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  color: var(--ufs-navy-900);
  margin-bottom: 4px;
}
.mega-item-link:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}
.mega-item-link i {
  color: #00B2E3;
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mega-item-link .title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ufs-navy-900);
  line-height: 1.25;
}
.mega-item-link:hover .title {
  color: var(--ufs-gold-600);
}
.mega-item-link .desc {
  font-size: 0.74rem;
  color: var(--ufs-slate-500);
  line-height: 1.35;
  display: block;
}
.mega-menu-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Custom Buttons - Clean Flat Crisp Design (No Drop Shadows) */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible {
  box-shadow: none !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--ufs-gold-500) 0%, var(--ufs-gold-600) 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  box-shadow: none !important;
  transition: all 0.25s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--ufs-gold-400) 0%, var(--ufs-gold-500) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none !important;
}
.btn-navy {
  background: var(--ufs-navy-900);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  box-shadow: none !important;
  transition: all 0.25s ease;
}
.btn-navy:hover {
  background: var(--ufs-navy-800);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none !important;
}
.btn-outline-navy {
  border: 1.5px solid var(--ufs-navy-900);
  color: var(--ufs-navy-900);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  background: transparent;
  box-shadow: none !important;
  transition: all 0.25s ease;
}
.btn-outline-navy:hover {
  background: var(--ufs-navy-900);
  color: #ffffff;
  box-shadow: none !important;
}

/* Hero Section - Clean Pure White Editorial Style */
.hero-section {
  position: relative;
  background: #ffffff; /* Clean Pure White */
  color: var(--ufs-navy-900);
  padding: 70px 0 95px;
  overflow: hidden;
  border-bottom: 1px solid var(--ufs-line-warm);
}
.hero-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 178, 227, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ufs-sand-soft);
  border: 1px solid var(--ufs-line-warm);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--ufs-navy-900);
}
.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ufs-navy-900);
  margin-top: 1rem;
}
.hero-title-light {
  font-weight: 400;
  color: var(--ufs-slate-700);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ufs-slate-600);
  max-width: 540px;
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ufs-sand-soft);
  border: 1px solid var(--ufs-line-warm);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ufs-navy-900);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.03);
}
.hero-img-wrap {
  position: relative;
  border-radius: 36px 16px 36px 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(10, 37, 64, 0.10);
  border: 1px solid var(--ufs-line-warm);
}
.hero-img-wrap .carousel-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.hero-img-wrap:hover .carousel-item.active img {
  transform: scale(1.03);
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
}
.carousel-indicators .active {
  background-color: var(--ufs-gold-500);
  width: 24px;
  border-radius: 10px;
}
.google-badge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.google-star {
  color: #ea4335;
}
.floating-stat-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ufs-line-warm);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--ufs-navy-900);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.10);
  z-index: 12;
}
.stat-pill {
  text-align: center;
}
.stat-pill .num {
  font-family: var(--ufs-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ufs-navy-900);
  line-height: 1;
}
.stat-pill .label {
  font-size: 0.72rem;
  color: var(--ufs-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  font-weight: 600;
}

/* Indicative Rates Bar */
.rates-ticker-bar {
  background: var(--ufs-sand);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.08);
  border: 1px solid var(--ufs-line-warm);
  padding: 26px 28px;
  margin-top: -36px;
  position: relative;
  z-index: 20;
}
.rate-item-box {
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--ufs-line-warm);
  transition: all 0.25s ease;
  height: 100%;
}
.rate-item-box:hover {
  background: #ffffff;
  border-color: var(--ufs-gold-500);
  box-shadow: var(--ufs-shadow-md);
  transform: translateY(-3px);
}
.rate-percent {
  font-family: var(--ufs-font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--ufs-navy-900);
  line-height: 1;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--ufs-slate-200);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ufs-gold-500), var(--ufs-gold-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ufs-shadow-lg);
  border-color: rgba(201, 151, 56, 0.4);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--ufs-gold-100);
  color: var(--ufs-gold-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--ufs-gold-500);
  color: #ffffff;
  transform: rotate(-5deg) scale(1.05);
}

/* ==============================================================================
   Calculator Suite Tabs Navigation & Active State Legibility
   ============================================================================== */
#calculatorTabs.nav-pills {
  background: #ffffff !important;
  border: 1px solid var(--ufs-slate-200);
  box-shadow: 0 4px 16px rgba(11, 26, 47, 0.06);
  padding: 6px !important;
  gap: 8px;
}

#calculatorTabs .nav-item {
  flex: 1 1 auto;
}

/* Inactive Tab - Dark Slate High Contrast */
#calculatorTabs .nav-link {
  color: #1e293b !important;
  background-color: transparent !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease-in-out;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#calculatorTabs .nav-link i {
  color: #c99738 !important;
  font-size: 1.15rem;
  transition: color 0.2s ease;
}

/* Inactive Hover */
#calculatorTabs .nav-link:hover {
  background-color: #f1f5f9 !important;
  color: #0b1a2f !important;
  border-color: #e2e8f0 !important;
}

#calculatorTabs .nav-link:hover i {
  color: #b45309 !important;
}

/* Active Tab - High-Contrast Deep Navy with Pure Crisp White Font */
#calculatorTabs .nav-link.active {
  background-color: #0b1a2f !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(11, 26, 47, 0.3) !important;
  border-color: #0b1a2f !important;
}

#calculatorTabs .nav-link.active i {
  color: #fbbf24 !important; /* Bright Gold Icon */
}

/* Repayment Method Radio Button Group in Calculator */
.btn-group .btn-outline-navy {
  color: #0b1a2f !important;
  background-color: #ffffff;
  border: 1.5px solid #0b1a2f;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-group .btn-outline-navy:hover {
  background-color: #f1f5f9 !important;
  color: #0b1a2f !important;
}

.btn-check:checked + .btn-outline-navy,
.btn-check:checked + .btn-outline-navy:hover,
.btn-outline-navy.active {
  background-color: #0b1a2f !important;
  color: #ffffff !important;
  border-color: #0b1a2f !important;
  box-shadow: 0 2px 8px rgba(11, 26, 47, 0.25) !important;
}

.btn-check:checked + .btn-outline-navy i,
.btn-outline-navy.active i {
  color: #fbbf24 !important;
}

/* Mortgage Calculator Section */
.calculator-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--ufs-shadow-xl);
  border: 1px solid var(--ufs-slate-200);
  overflow: hidden;
}
.calc-header {
  background: var(--ufs-navy-900);
  color: #fff;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.calc-body {
  padding: 35px 30px;
}
.range-slider-wrap {
  margin-bottom: 28px;
}
.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ufs-navy-900);
}
.range-val-badge {
  font-family: var(--ufs-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ufs-gold-600);
  background: var(--ufs-gold-100);
  padding: 4px 12px;
  border-radius: 8px;
}
input[type=range].form-range {
  height: 7px;
  border-radius: 5px;
  accent-color: var(--ufs-gold-500);
}
input[type=range].form-range::-webkit-slider-thumb {
  background: var(--ufs-gold-500);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  width: 22px;
  height: 22px;
  transition: transform 0.1s ease;
}
input[type=range].form-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Calculation Results Box */
.calc-result-box {
  background: linear-gradient(145deg, var(--ufs-navy-950) 0%, var(--ufs-navy-900) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--ufs-shadow-lg);
}
.result-payment-figure {
  font-family: var(--ufs-font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--ufs-gold-400);
  line-height: 1;
}
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}
.calc-summary-row:last-child {
  border-bottom: none;
}

/* Process Timeline / How It Works */
.process-step-card {
  position: relative;
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--ufs-slate-200);
  height: 100%;
  transition: all 0.3s ease;
}
.process-step-card:hover {
  border-color: var(--ufs-gold-400);
  transform: translateY(-4px);
  box-shadow: var(--ufs-shadow-md);
}
.step-number-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ufs-navy-900);
  color: var(--ufs-gold-400);
  font-family: var(--ufs-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* Testimonial Cards */
.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--ufs-slate-200);
  box-shadow: var(--ufs-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.star-rating {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.saved-badge {
  background: var(--ufs-emerald-50);
  color: var(--ufs-emerald-600);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 10px;
}

/* Worth a Read / Article Cards */
.article-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--ufs-line-warm);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--ufs-gold-500);
  box-shadow: 0 16px 36px rgba(11, 26, 47, 0.08);
}
.article-thumb-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--ufs-navy-900);
}
.article-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-thumb-wrapper img {
  transform: scale(1.05);
}
.article-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 26, 47, 0.88);
  backdrop-filter: blur(8px);
  color: var(--ufs-gold-400);
  border: 1px solid rgba(0, 178, 227, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-meta {
  font-size: 0.8rem;
  color: var(--ufs-slate-500);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-title {
  font-family: var(--ufs-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ufs-navy-900);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.article-card:hover .article-title {
  color: var(--ufs-gold-600);
}
.article-excerpt {
  color: var(--ufs-slate-600);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}
.article-footer {
  padding-top: 14px;
  border-top: 1px solid var(--ufs-slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ufs-navy-900);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-read-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ufs-gold-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}
.article-read-btn:hover {
  color: var(--ufs-navy-900);
  gap: 8px;
}

/* Interactive Wizard / Multi-Step Modal */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}
.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ufs-slate-200);
  transform: translateY(-50%);
  z-index: 1;
}
.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  background: var(--ufs-gold-500);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.3s ease;
}
.wizard-step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--ufs-slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ufs-slate-500);
  position: relative;
  z-index: 3;
  transition: all 0.25s ease;
}
.wizard-step-node.active {
  border-color: var(--ufs-gold-500);
  background: var(--ufs-gold-500);
  color: #fff;
  box-shadow: 0 0 0 4px var(--ufs-gold-100);
}
.wizard-step-node.completed {
  border-color: var(--ufs-emerald-500);
  background: var(--ufs-emerald-500);
  color: #fff;
}

.option-select-box {
  border: 2px solid var(--ufs-slate-200);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}
.option-select-box:hover {
  border-color: var(--ufs-gold-400);
  background-color: var(--ufs-gold-50);
}
.option-select-box.selected {
  border-color: var(--ufs-gold-500);
  background-color: var(--ufs-gold-100);
}

/* FAQ Accordion Styling */
.accordion-mortgage .accordion-item {
  border: 1px solid var(--ufs-slate-200);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-mortgage .accordion-button {
  font-family: var(--ufs-font-heading);
  font-weight: 700;
  color: var(--ufs-navy-900);
  font-size: 1.05rem;
  padding: 18px 22px;
  background: #ffffff;
}
.accordion-mortgage .accordion-button:not(.collapsed) {
  background: var(--ufs-slate-50);
  color: var(--ufs-gold-600);
  box-shadow: none;
}
.accordion-mortgage .accordion-button:focus {
  box-shadow: none;
  border-color: var(--ufs-gold-400);
}
.accordion-mortgage .accordion-body {
  padding: 18px 22px;
  color: var(--ufs-slate-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   PREMIUM CTA, REGULATORY NOTICE & MODERN FOOTER
   ========================================================================== */

/* Modern Call To Action (CTA) */
.premium-cta-section {
  background-color: var(--ufs-sand-soft);
  position: relative;
  overflow: hidden;
  padding: 85px 0;
  border-top: 1px solid var(--ufs-line-warm);
}
.premium-cta-card {
  background: linear-gradient(135deg, #07111e 0%, #0b1a2f 50%, #10233d 100%);
  border: 1px solid rgba(0, 178, 227, 0.3);
  border-radius: 26px;
  padding: 55px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(11, 26, 47, 0.2);
}
.premium-cta-card .cta-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 178, 227, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-title-white {
  color: #ffffff !important;
  font-family: var(--ufs-font-heading) !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.btn-cta-call {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.6rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
}
.btn-cta-call:hover {
  background: #ffffff !important;
  color: var(--ufs-navy-950) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}
.btn-cta-call:hover i {
  color: var(--ufs-gold-600) !important;
}
.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #f1f5f9;
  font-weight: 500;
}

/* Modern Regulatory Card */
.regulatory-card-modern {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 28px;
  margin-top: 45px;
  margin-bottom: 30px;
}
.regulatory-card-modern .warning-headline {
  font-family: var(--ufs-font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Modern Premium Global Footer */
.site-footer {
  background: #060e19;
  color: var(--ufs-slate-400);
  padding: 70px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.2s ease;
}
.footer-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 178, 227, 0.4);
}
.footer-col-title {
  color: #ffffff;
  font-family: var(--ufs-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer-clean-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-clean-links li {
  margin-bottom: 12px;
}
.footer-clean-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-clean-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.footer-office-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}
.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
}

/* Micro-animations */
@keyframes pulseSubtle {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}
.pulse-badge {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* Floating Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 16px;
  right: 16px;
  max-width: 1080px;
  margin: 0 auto;
  z-index: 1055;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-inner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ufs-line-warm);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: 0 20px 50px rgba(11, 26, 47, 0.22);
}
.cookie-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ufs-gold-100);
  color: var(--ufs-gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Page Premium Styling */
.contact-hero-banner {
  background: radial-gradient(circle at 80% 20%, rgba(0, 178, 227, 0.12) 0%, transparent 60%),
              linear-gradient(135deg, #07111e 0%, #0b1a2f 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-channel-card {
  background: #ffffff;
  border: 1px solid var(--ufs-line-warm);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.contact-channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--ufs-gold-400);
  box-shadow: 0 14px 30px rgba(11, 26, 47, 0.08);
}
.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ufs-navy-900);
  color: var(--ufs-gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--ufs-line-warm);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 45px rgba(11, 26, 47, 0.06);
}

/* What Happens After You Get In Touch - 4 Steps */
.process-step-card {
  background: #ffffff;
  border: 1px solid var(--ufs-line-warm);
  border-radius: 20px;
  padding: 32px 26px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--ufs-gold-400);
  box-shadow: 0 16px 36px rgba(0, 178, 227, 0.12);
}
.process-step-number {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1a2f 0%, #152e4d 100%);
  color: var(--ufs-gold-400);
  font-family: var(--ufs-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 178, 227, 0.3);
}
.process-step-card:hover .process-step-number {
  background: var(--ufs-gold-500);
  color: #07111e;
  border-color: transparent;
}
.process-step-title {
  font-family: var(--ufs-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ufs-navy-900);
  margin-bottom: 12px;
}
.process-step-text {
  color: var(--ufs-slate-600);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Modern Form Controls on Contact Form */
.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1.5px solid var(--ufs-line-warm);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--ufs-navy-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--ufs-gold-500);
  box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.15);
}
.contact-form-card .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ufs-navy-900);
  margin-bottom: 6px;
}

/* Branch Partner Styles */
.branch-hero-badge {
  background: #ffffff;
  border: 1px solid rgba(0, 178, 227, 0.45);
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 178, 227, 0.12);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.branch-hero-badge:hover {
  transform: translateY(-2px);
  border-color: #00B2E3;
  box-shadow: 0 6px 20px rgba(0, 178, 227, 0.22);
}
.branch-opportunity-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  height: 100%;
}
.branch-opportunity-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #00B2E3;
  transform: translateY(-4px);
}
.earning-step-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #00B2E3;
  color: #07111e;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Dedicated Branch Opportunity Page Components */
.branch-hero-glow {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 178, 227, 0.18) 0%, rgba(11, 26, 47, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.trajectory-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.trajectory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(11, 26, 47, 0.12);
  border-color: #00B2E3;
}
.trajectory-card.featured {
  background: linear-gradient(145deg, #07111e 0%, #0d223f 100%);
  border: 2px solid #00B2E3;
  color: #ffffff;
}
.trajectory-card.featured .text-navy {
  color: #ffffff !important;
}
.trajectory-card.featured .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

.partner-persona-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.partner-persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(11, 26, 47, 0.1);
  border-color: #00B2E3;
}

.persona-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(0, 178, 227, 0.1);
  color: #00B2E3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.roadmap-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  transition: all 0.25s ease;
}
.roadmap-step-card:hover {
  border-color: #00B2E3;
  transform: translateY(-3px);
}
.roadmap-badge {
  width: 38px;
  height: 38px;
  background: var(--ufs-navy-900);
  color: #00B2E3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
  border: 2px solid rgba(0, 178, 227, 0.4);
}

.branch-form-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 40px -15px rgba(11, 26, 47, 0.08);
}




