/* ============================================
   ASG COURTAGE - MORTGAGE BROKER WEBSITE
   Design System & Core Styles
   ============================================ */

/* ============================================
   IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - COLOR PALETTE
   ============================================ */
:root {
  /* Primary Colors - From ASG Logo */
  --navy-blue: #3A5BA0;
  --navy-dark: #2A4580;
  --navy-light: #4A6BB0;
  --champagne-gold: #C5B8A5;
  --champagne-dark: #B5A895;
  --champagne-light: #D5C8B5;

  /* Neutral Colors */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --medium-gray: #6C757D;
  --dark-text: #1A2332;
  --black: #000000;

  /* Semantic Colors */
  --success: #28A745;
  --warning: #FFC107;
  --error: #DC3545;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.16);
  --shadow-xl: 0 16px 48px rgba(26, 35, 50, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
}

a {
  color: var(--navy-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--navy-dark);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: var(--container-wide);
}

section {
  padding: var(--spacing-3xl) 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--champagne-dark), var(--champagne-gold));
}

.btn-secondary {
  background: var(--navy-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--navy-blue);
  border: 2px solid var(--navy-blue);
}

.btn-outline:hover {
  background: var(--navy-blue);
  color: var(--white);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1300px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.12);
  transition: all var(--transition-base);
  padding: 1.2rem 2rem;
  min-height: 90px;
  display: flex;
  align-items: center;
}

header.scrolled {
  box-shadow: 0 12px 48px rgba(26, 35, 50, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 52px;
  width: auto;
  display: block;
}

.tagline {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-left: 2px solid var(--champagne-gold);
  padding-left: 1rem;
}

.tagline span {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--navy-blue);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--navy-blue);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-new {
  background: var(--champagne-gold);
  color: var(--white);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
}


.nav-links a:hover {
  color: var(--navy-blue);
}

/* Dropdown Styles */
.nav-item {
  position: relative;
}

.has-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-icon {
  font-size: 0.625rem;
  transition: transform var(--transition-fast);
}

.has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.15);
  padding: var(--spacing-sm);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all var(--transition-base);
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--dark-text);
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  color: var(--white);
  transform: translateX(4px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--spacing-xs);
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-blue);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  max-height: 1100px;
  /* Cap for ultra-tall screens */
  display: flex;
  align-items: flex-start;
  /* Ensure title is at top */
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-dark) 100%);
  overflow: hidden;
  padding-top: 180px;
  /* Strong padding to clear header */
  padding-bottom: 8rem;
  /* Space for absolute marquee */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/hero_family_ultra_hd.jpg') center/cover;
  opacity: 0.2;
  /* Reduced opacity as requested */
  z-index: 0;
}

/* Hero Content Constraints */
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  /* Removed max-width here, will apply to .hero-text specifically */
}

/* Typography Adjustments */
.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  /* Reduced from lg */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.5rem, 5vw, 4rem);
  /* Explicit clamp for better scaling */
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  /* Reduced from 1.5rem max */
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  line-height: 1.6;
  max-width: none;
  /* Let text fill the container */
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Gradient Text Highlight */
.text-highlight {
  background: linear-gradient(135deg, var(--champagne-gold) 0%, var(--champagne-light) 50%, var(--champagne-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: none;
  /* No shadow on gradient text */
}

/* ============================================
   HERO FORM (Typeform Style)
   ============================================ */

/* Layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Balanced 50/50 split */
  gap: var(--spacing-xl);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.75rem;
}

.card h3 {
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--medium-gray);
  margin-bottom: 0;
}

/* ============================================
   FEATURE BLOCKS
   ============================================ */
.feature-block {
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.feature-block h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
  color: var(--champagne-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--medium-gray);
  font-size: 1.125rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-blue);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--champagne-gold);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--champagne-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {

  /* Header adjustments for mobile */
  header {
    top: var(--spacing-sm);
    width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
    border-radius: 50px;
  }

  /* Mobile Navigation */
  /* Mobile Navigation - Premium Full Screen Overlay */
  /* Mobile Navigation - Premium Full Screen Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* Left Align */
    padding: 120px 2rem 2rem 2rem;
    box-shadow: none;
    border-radius: 0;
    gap: 1rem;
    /* Tighter gap */
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  /* Header stays on top of menu */
  header {
    z-index: 1000;
  }

  .nav-links a.nav-link {
    font-size: 1.4rem;
    /* Unified Main Title Size */
    font-family: var(--font-heading);
    color: var(--navy-dark);
    padding: 0.75rem 0;
    text-align: left;
    /* Left Align */
    width: 100%;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Visual Frame */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Button inside menu */
  .nav-links .btn {
    width: 100%;
    min-width: 200px;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
  }

  /* Dropdown Container */
  .has-dropdown .dropdown-menu {
    display: none;
    width: 100%;
    padding-left: 1rem;
    /* Indentation */
    padding-top: 0.5rem;
    background: transparent;
    border-left: 2px solid var(--champagne-gold);
    /* Visual Guide */
    margin-left: 0.5rem;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  /* Sub-menu Links - Clean Text */
  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    display: block;
    font-size: 1rem !important;
    /* Reduced for long titles */
    color: var(--dark-text) !important;
    font-weight: 400 !important;
    padding: 0.5rem 0.5rem !important;
    text-align: left;
    background: transparent;
    border-radius: 4px;
    margin: 0;
    width: 100%;
    white-space: normal;
    /* Allow wrapping */
    line-height: 1.3;
  }

  .dropdown-menu a:hover {
    background: rgba(58, 91, 160, 0.05) !important;
    color: var(--navy-blue) !important;
    transform: translateX(5px);
  }

  .has-dropdown .dropdown-icon {
    margin-left: auto;
    /* Push arrow to right */
  }

  .has-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
  }

  /* Staggered Animation for Links */
  .nav-links.active a.nav-link {
    animation: slideInLeft 0.5s ease forwards;
  }

  .nav-links.active .nav-item:nth-child(1) a.nav-link {
    animation-delay: 0.1s;
  }

  .nav-links.active .nav-item:nth-child(2) a.nav-link {
    animation-delay: 0.2s;
  }

  .nav-links.active .nav-item:nth-child(3) a.nav-link {
    animation-delay: 0.3s;
  }

  .nav-links.active .nav-item:nth-child(4) a.nav-link {
    animation-delay: 0.4s;
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }

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

  .menu-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero {
    padding-top: 100px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Grid Adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Spacing */
  section {
    padding: var(--spacing-2xl) 0;
  }
}

/* ============================================
   RATES SECTION
   ============================================ */
#taux-actuels {
  /* Luxury Champagne Gradient (Feature Block Style) */
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  color: var(--white);
  position: relative;
  padding: var(--spacing-3xl) 0;
  overflow: hidden;
}

/* Shape Divider Top */
.shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.shape-divider-top .shape-fill {
  fill: var(--white);
  /* Match section above (usually white) */
}

/* Shape Divider Bottom */
.shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.shape-divider-bottom .shape-fill {
  fill: var(--white);
  /* Match section below */
}

/* Rates Table Card */
.rates-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.rates-header {
  background: var(--navy-blue);
  color: var(--white);
  padding: 1rem var(--spacing-md);
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) 1fr 1fr 1fr;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-items: center;
}

.rates-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) 1fr 1fr 1fr;
  padding: 1.25rem var(--spacing-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  background: white;
  color: var(--dark-text);
}

/* First Column (Durée) Style */
.rates-row>div:first-child {
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 1.05rem;
  text-align: left;
  padding-left: 0.5rem;
}

/* Header First Column */
.rates-header>div:first-child {
  text-align: left;
  padding-left: 0.5rem;
}

.rates-row:last-child {
  border-bottom: none;
}

/* Enhanced Hover Effect */
.rates-row:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
  border-radius: var(--radius-sm);
  border-color: transparent;
}

/* Highlight "Excellent" Column */
.rates-row>div:nth-child(2) {
  color: var(--navy-dark);
  font-weight: 800;
  background-color: rgba(58, 91, 160, 0.05);
  /* Subtle blue tint */
  margin: -1rem 0;
  /* Stretch to fill full height including padding */
  padding: 1rem 0;
}

.rates-header>div:nth-child(2) {
  background-color: rgba(255, 255, 255, 0.1);
  /* Subtle highlight in header too */
  margin: -1rem 0;
  padding: 1rem 0;
}

.rate-value {
  color: var(--navy-dark);
  font-weight: 600;
}

/* Best Rate Badge */
.best-rate-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #FFD700, #FDB931);
  color: var(--navy-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 15;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1s;
  opacity: 0;
  transform: scale(0);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered Animation Base */
.rates-row.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Rates CTA Card */
.rates-cta-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  /* Larger padding */
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {

  .rates-header,
  .rates-row {
    grid-template-columns: 0.8fr 1fr 1fr;
    /* Hide one column on mobile if needed */
    font-size: 0.85rem;
    padding: var(--spacing-sm);
  }

  .rates-header>div:nth-child(4),
  .rates-row>div:nth-child(4) {
    display: none;
    /* Hide 'Bon' column on very small screens? Or just scroll */
  }

  .rates-cta-card {
    padding: var(--spacing-xl);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   REASSURANCE BANNER
   ============================================ */
#reassurance-banner {
  background-color: var(--navy-dark);
  padding: 1rem 0;
  /* Thinner strip padding */
  color: var(--white);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reassurance-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reassurance-icon-wrapper {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--champagne-gold);
  border: 1px solid rgba(197, 184, 165, 0.3);
  flex-shrink: 0;
}

.reassurance-text h4 {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.reassurance-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.stars {
  color: #FFD700;
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

.banner-logos {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 15px;
  border-radius: 30px;
}

.banner-logo {
  height: 35px;
  width: auto;
  /* filter: brightness(0) invert(1);  Removed to fix visibility issues */
  opacity: 0.9;
  transition: opacity 0.3s;
  background: white;
  /* Add white background for better visibility if transparent */
  padding: 2px;
  border-radius: 4px;
}

.banner-logo:hover {
  opacity: 1;
}

@media (max-width: 992px) {
  .reassurance-content {
    justify-content: center;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  #reassurance-banner {
    padding: var(--spacing-md) 0;
  }

  .reassurance-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .reassurance-item {
    width: 100%;
  }

  .banner-logos {
    margin-top: 5px;
    background: none;
    padding: 0;
  }
}

/* ============================================
   AGENCY CARDS
   ============================================ */
.agency-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.agency-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.agency-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.agency-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.agency-card:hover .agency-image {
  transform: scale(1.05);
}

.agency-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 20px;
  color: white;
}

.agency-city-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--champagne-gold);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.agency-details {
  padding: var(--spacing-lg);
}

.agency-details h3 {
  color: var(--navy-blue);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.agency-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.agency-info-icon {
  color: var(--champagne-gold);
  margin-top: 4px;
}

/* ============================================
   PREMIUM CALCULATOR STYLES V2
   ============================================ */
.premium-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(58, 91, 160, 0.08);
  /* Soft Navy Shadow */
  padding: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .calc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Inputs Styling */
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Changed from flex-end */
  margin-bottom: 0.8rem;
}

.calc-label-row label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--medium-gray);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* New Editable Input Styles */
.input-with-suffix {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.premium-input-xl {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-blue);
  background: transparent;
  border: 1px solid transparent;
  /* Invisible border by default */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  /* Subtle underline */
  width: 140px;
  text-align: right;
  padding: 0 4px;
  transition: all 0.2s;
  border-radius: 4px;
}

.premium-input-xl:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid var(--champagne-gold);
  color: var(--navy-dark);
}

.suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-blue);
  pointer-events: none;
}

/* Remove Arrows/Spinners from number input */
.premium-input-xl::-webkit-outer-spin-button,
.premium-input-xl::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.premium-input-xl {
  -moz-appearance: textfield;
}

.range-wrapper {
  padding: 10px 0;
}

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 6px solid var(--champagne-gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(197, 184, 165, 0.4);
  transition: transform 0.2s, border-color 0.2s;
  margin-top: -10px;
  /* Align check */
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  border-color: var(--navy-blue);
}

.hidden-input {
  display: none;
  /* We rely on slider for V2 elegance */
}

/* Right Section: Visuals */
.calc-visual-section {
  background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.chart-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem;
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.monthly-label {
  display: block;
  font-size: 0.85rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.monthly-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  /* Adjusted for fit */
  font-weight: 700;
  color: var(--navy-blue);
  line-height: 1;
}

.calc-breakdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--champagne-gold);
  color: var(--champagne-gold);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--champagne-gold);
  color: white;
}

/* Amortization Table Override */
.amortization-section {
  margin-top: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: none;
  /* Hidden by default */
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.amortization-header {
  background: var(--navy-dark);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-responsive {
  max-height: 500px;
  overflow-y: auto;
}

.amortization-table {
  width: 100%;
  border-collapse: collapse;
}

.amortization-table th {
  background: #f4f5f7;
  color: var(--navy-blue);
  font-weight: 600;
  padding: 1rem;
  text-align: right;
  position: sticky;
  top: 0;
  z-index: 10;
}

.amortization-table th:first-child {
  text-align: center;
}

.amortization-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--dark-gray);
}

.amortization-table td:first-child {
  text-align: center;
  font-weight: 500;
  color: var(--medium-gray);
}

.amortization-table tr:hover td {
  background-color: rgba(58, 91, 160, 0.03);
}

/* ============================================
   HERO FORM (Typeform Style)
   ============================================ */

/* Layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Balanced 50/50 split */
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 1400px;
  /* Widened for better flow */
  margin: 0 auto;
}

.hero-text {
  min-width: 0;
  /* Prevents grid/flex blowout */
  position: relative;
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .hero-text {
    margin-bottom: var(--spacing-md);
  }

  .hero-cta.desktop-only {
    display: none;
  }

  .hero-form-wrapper {
    margin-top: var(--spacing-md);
  }
}

/* CSS for hero form wrapper */
.hero-form-wrapper {
  width: 100%;
  /* Ensure it fills the grid cell */
}

/* Glass Card */
.glass-form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  /* For progress bar */
  min-height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  /* Force expansion */
}

/* Progress Bar */
.form-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--champagne-gold), var(--champagne-dark));
  transition: width 0.4s ease;
  border-radius: 0 4px 4px 0;
}

/* Form Steps */
.form-step {
  display: none;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.form-step.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form-step h3 {
  color: var(--navy-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Option Cards */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.option-card {
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--dark-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.option-card i {
  font-size: 1.5rem;
  color: var(--champagne-gold);
  margin-bottom: 5px;
}

.option-card:hover {
  transform: translateY(-3px);
  border-color: var(--champagne-gold);
  box-shadow: 0 6px 15px rgba(58, 91, 160, 0.08);
  background: linear-gradient(to bottom, #fff, #fffaf0);
}

.option-card.selected {
  border-color: var(--navy-blue);
  background: var(--navy-blue);
  color: white;
}

.option-card.selected i {
  color: var(--champagne-gold);
}

/* Inputs */
.inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
  max-width: 100%;
  /* Allow full width */
  margin: 0 auto 1.5rem;
}

.premium-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.premium-input-lg {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-align: center;
  background: #f9f9f9;
}

.premium-input:focus,
.premium-input-lg:focus {
  outline: none;
  border-color: var(--champagne-gold);
  background: white;
  box-shadow: 0 4px 12px rgba(197, 184, 165, 0.15);
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-text-back {
  background: none;
  border: none;
  color: var(--medium-gray);
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.btn-text-back:hover {
  color: var(--navy-blue);
  text-decoration: underline;
}

.btn-gold-sm {
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(197, 184, 165, 0.4);
}

.btn-gold-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(197, 184, 165, 0.5);
}

/* Success Icon */
.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   FLOATING MARQUEE BANNER
   ============================================ */
.marquee-wrapper {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  z-index: 10 !important;
  /* Ensure it floats above others */
}

.marquee-track {
  display: flex;
  gap: 2rem;
  /* Spacing between groups */
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
  /* Adjust speed here */
}

/* Pause on hover for better UX */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 2rem;
  /* Spacing between individual items */
  align-items: center;
  padding: 1rem 2rem;

  /* Floating Glass Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.marquee-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  /* Filter needed for dark mode contrast? Or white bg? Let's add partial opacity background */
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.marquee-logo:hover {
  transform: scale(1.1);
}

/* Mini Text Styles for Compact Look */
.mini-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.8rem !important;
  background: rgba(197, 184, 165, 0.2) !important;
  border-color: rgba(197, 184, 165, 0.4) !important;
  color: var(--champagne-gold) !important;
}

.mini-title {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--white);
  line-height: 1.1;
}

.mini-subtitle {
  font-size: 0.7rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-stars {
  font-size: 0.65rem;
  color: #FFD700;
  line-height: 1;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.33%);
    /* Scroll exactly one group width (since we have 3 groups) */
  }
}

/* Responsive adjust */
@media (max-width: 768px) {
  .marquee-group {
    gap: 2rem;
    padding: 0.75rem 1.5rem;
  }

  .marquee-track {
    animation-duration: 30s;
    /* Faster on mobile */
  }
}

/* ============================================
   SIMULATOR & FORMS (Modern Update) 
   ============================================ */
.simulator-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy-blue);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--navy-dark);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  background: var(--white);
  border-color: var(--navy-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 36, 99, 0.1);
}

/* Autocomplete Fix */
.position-relative {
  position: relative !important;
}

.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  /* Matches parent width */
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.95rem;
  color: var(--navy-dark);
  transition: background 0.15s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #F8FAFC;
  color: var(--navy-blue);
  font-weight: 500;
}

/* Result Card Enhancement */
.result-card {
  background: white;
  /* clearer background */
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
}

.result-card .text-navy {
  color: var(--navy-blue) !important;
}

.result-card .display-3 {
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
}

.details-list {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  color: var(--navy-dark);
  /* Ensure text is visible */
}

.details-list div {
  padding: 0.75rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.details-list div:last-child {
  border-bottom: none;
}

@keyframes pulseHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(198, 168, 124, 0.7);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(198, 168, 124, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(198, 168, 124, 0);
  }
}

.highlight-pulse {
  animation: pulseHighlight 0.6s ease-out;
  border-color: var(--champagne-gold) !important;
}

/* TESTIMONIALS CAROUSEL */
.testimonials-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  /* Space for buttons */
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.testimonial-card {
  /* DEFAULT: 3 items desktop */
  flex: 0 0 calc(33.333% - 13.33px);
  /* (100% - 2*20px gap) / 3 */
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content .stars {
  color: var(--champagne-gold);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--medium-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdfbf7, #f3e9d9);
  color: var(--navy-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(197, 184, 165, 0.3);
}

.testimonial-author h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-dark);
  font-weight: 700;
}

.testimonial-author p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--medium-gray);
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--light-gray);
  color: var(--navy-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: var(--navy-blue);
  color: white;
  border-color: var(--navy-blue);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--champagne-gold);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 10px);
    /* 2 items -> (100% - 20px) / 2 */
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
    /* 1 item */
  }

  .testimonials-carousel-wrapper {
    padding: 0 0px;
    /* On mobile, maybe hide buttons or overlay them? Let's keep padding small or overlay */
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
  }

  .prev-btn {
    left: -10px;
  }

  .next-btn {
    right: -10px;
  }
}

/* PARTNERS CAROUSEL */
.partners-carousel-section {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
}

.partners-marquee-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
  /* Fade effect on sides */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee-track {
  display: flex;
  gap: 4rem;
  /* Space between logos */
  width: max-content;
  animation: scroll 40s linear infinite;
  /* Adjust speed here */
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  /* Fixed width for consistency */
  height: 80px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* Move half the track (since it's duplicated) */
  }
}

/* Specific Logo Adjustments if needed */
.partner-logo img[alt="BNP Paribas"] {
  transform: scale(1.1);
}

.partner-logo img[alt="Société Générale"] {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .partners-marquee-track {
    gap: 2rem;
    animation-duration: 30s;
    /* Faster on mobile? */
  }

  .partner-logo {
    width: 100px;
    height: 60px;
  }
}

/* --- APPOINTMENT MODAL STYLES --- */
.appointment-modal-content {
  max-width: 500px;
}

/* Choice Cards (Step 1) */
.appointment-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.choice-card:hover {
  background: white;
  border-color: var(--champagne-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.choice-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-primary);
  color: var(--champagne-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.choice-icon-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  flex-shrink: 0;
}

.app-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.choice-card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy-dark);
  font-weight: 700;
}

.choice-card p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #666;
}

.choice-arrow {
  margin-left: auto;
  color: #ccc;
  transition: color 0.3s ease;
}

.choice-card:hover .choice-arrow {
  color: var(--champagne-gold);
}

/* Step 2 Header */
.back-link {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0;
}

.back-link:hover {
  color: var(--navy-primary);
}

/* Extracted Callback Modal Styles */
.btn-callback-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--champagne-gold), #d4a556);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(197, 184, 165, 0.5);
  animation: pulse-gold 2s infinite;
}

.btn-callback-hero:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(197, 184, 165, 0.7);
}

.badge-urgence {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  animation: bounce-badge 1s infinite;
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(197, 184, 165, 0.5);
  }

  50% {
    box-shadow: 0 4px 30px rgba(197, 184, 165, 0.9), 0 0 60px rgba(197, 184, 165, 0.4);
  }
}

@keyframes bounce-badge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Callback Modal */
.callback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.callback-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.callback-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.callback-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--light-gray);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.callback-modal-close:hover {
  background: #e74c3c;
  color: white;
}

.callback-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.callback-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--champagne-gold), #d4a556);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.callback-modal-header h3 {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.callback-modal-header p {
  color: #666;
  font-size: 0.95rem;
}

.callback-form-group {
  margin-bottom: 1.5rem;
}

.callback-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy-dark);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
  border-color: var(--champagne-gold);
}

.phone-prefix {
  background: var(--light-gray);
  padding: 1rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.phone-input-wrapper input {
  flex: 1;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  outline: none;
}

.callback-checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.callback-checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.callback-checkbox-group label {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.callback-checkbox-group a {
  color: var(--champagne-gold);
  text-decoration: underline;
}

.btn-callback-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--navy-blue), var(--navy-dark));
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s;
}

.btn-callback-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58, 91, 160, 0.4);
}

.btn-callback-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.callback-success {
  text-align: center;
  padding: 2rem;
}

.callback-success i {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 1rem;
}

.callback-success h4 {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.callback-success p {
  color: #666;
}

/* Reassurance badges */
.callback-reassurance {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.callback-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #27ae60;
  font-weight: 500;
}

.callback-reassurance i {
  font-size: 0.75rem;
}

/* Social proof */
.callback-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #fdf9f3, #f8f4ee);
  border-radius: 10px;
  border: 1px solid rgba(197, 184, 165, 0.3);
}

.social-proof-stars {
  display: flex;
  gap: 0.15rem;
}

.social-proof-stars i {
  color: #f1c40f;
  font-size: 0.9rem;
}

.callback-social-proof>span {
  font-size: 0.85rem;
  color: #555;
}

.callback-social-proof strong {
  color: var(--navy-dark);
}

/* Form Header CTA */
.form-header-cta {
  text-align: center;
  margin-bottom: 1.25rem;
}

.form-header-cta h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.form-social-proof-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #2e7d32;
}

.form-social-proof-banner i {
  color: #27ae60;
}

.form-social-proof-banner strong {
  font-weight: 700;
}

/* Micro-reassurance under form */
.form-micro-reassurance {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-micro-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #27ae60;
  font-weight: 500;
}

.form-micro-reassurance i {
  font-size: 0.7rem;
}

/* Fix Success Screen Alignment */
.callback-success {
  display: none;
  /* Hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1rem;
  height: 100%;
  min-height: 300px;
  /* Ensure vertical centering */
}

.success-icon-wrapper {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 0.5rem;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.callback-success h4 {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin: 0;
  font-weight: 700;
}

.callback-success p {
  color: #666;
  font-size: 1rem;
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.5;
}

.callback-success .btn {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
}

/* --- APPOINTMENT SECTION (HOME) - CHAMPAGNE THEME --- */
.appointment-section {
  padding: 6rem 0;
  /* Luxury Champagne Gradient (Feature Block Style) */
  background: linear-gradient(135deg, var(--champagne-gold), var(--champagne-dark));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background accent (subtle pattern) */
.appointment-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.appointment-header {
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.appointment-header h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.appointment-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  /* Muted Navy for subtext */
}

.appointment-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.appointment-card-home {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 40px rgba(42, 69, 128, 0.05);
}

.appointment-card-home:hover {
  transform: translateY(-5px);
  border-color: var(--champagne-gold);
  box-shadow: 0 20px 50px rgba(42, 69, 128, 0.1);
}

.card-home-icon {
  width: 72px;
  height: 72px;
  background: rgba(197, 184, 165, 0.15);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.appointment-card-home:hover .card-home-icon {
  transform: scale(1.1);
  background: var(--navy-dark);
  color: var(--champagne-gold);
}

.appointment-card-home h3 {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.appointment-card-home p {
  color: var(--medium-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.card-home-detail {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--navy-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.visio-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.visio-logos img,
.visio-logos svg {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.visio-logos span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-text);
  font-weight: 600;
}

.visio-separator {
  color: var(--light-gray);
  font-size: 1.2rem;
  margin: 0 0.25rem;
}

/* Ensure SVG in Visio card behaves */
.visio-logos .app-icon {
  width: 24px;
  height: 24px;
}

/* --- NOTARY SIMULATOR STYLES --- */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }
}

.simulator-form-card,
.simulator-result-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

#notaireForm {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.result-footer {
  margin-top: auto;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.form-header,
.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-icon {
  width: 50px;
  height: 50px;
  background: var(--navy-light);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.simulator-form-card h3,
.simulator-result-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--navy-dark);
}

.result-subtitle {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-top: 0.25rem;
}

/* Segment Control */
.segment-control {
  display: flex;
  background: #f0f2f5;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
  margin-top: 0.5rem;
}

.segment-control input[type="radio"] {
  display: none;
}

.segment-control label {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  margin: 0 !important;
  /* Override generic margin */
  font-size: 0.95rem;
}

.segment-control input[type="radio"]:checked+label {
  background: white;
  color: var(--navy-blue);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--navy-blue);
}

/* Result Styles */
.main-result {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
}

.result-amount {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--navy-blue);
  line-height: 1;
}

.result-breakdown {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.breakdown-item:last-child {
  margin-bottom: 0;
}

.breakdown-item .value {
  font-weight: 600;
  color: var(--navy-dark);
}

.total-project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 1.1rem;
}

.total-project-value {
  font-size: 1.4rem;
  color: var(--champagne-gold);
}

.result-footer .disclaimer {
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
}

.info-tooltip {
  color: #ccc;
  margin-left: 5px;
  cursor: help;
  font-size: 0.9rem;
}