/* ========================================
   FINANCIA UNION - MODERN & RESPONSIVE CSS
   ======================================== */

/* CSS Variables */
:root {
  --primary-dark: #1a2b3c;
  --primary-light: #2c3e50;
  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c158;
  --text-dark: #1a2b3c;
  --text-light: #666666;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --border-light: #e0e0e0;
  --shadow: 0 4px 15px rgba(26, 43, 60, 0.1);
  --shadow-hover: 0 12px 30px rgba(26, 43, 60, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ========================================
   PRELOADER STYLES
   ======================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 43, 60, 0.95) 0%,
    rgba(44, 62, 80, 0.95) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  animation: fadeInScale 0.6s ease;
}

.preloader-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(212, 175, 55, 0.15);
  border-top: 6px solid var(--accent-gold);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 0 auto 30px;
}

.preloader-text {
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-weight: 500;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
}

p {
  color: var(--text-light);
  font-size: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
}

.thanks-container {
  text-align: center;
  padding: 100px 20px;
}

.thanks-container h1 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.thanks-container p {
  color: #333333;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ========================================
   NAVBAR / HEADER
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 43, 60, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.14);
}

.navbar-wrapper {
  padding: 0.85rem 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 60px;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo a:hover .logo-img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  right: 0.95rem;
  bottom: 0.35rem;
  left: 0.95rem;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover::before {
  width: calc(100% - 1.9rem);
}

.lang-selector {
  position: relative;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.lang-toggle:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--accent-gold);
}

.lang-flag {
  font-size: 1.3rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-code {
  font-size: 0.85rem;
  letter-spacing: 0;
}

.lang-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-selector.active .lang-chevron {
  transform: rotate(180deg);
}

.lang-selector.active .lang-flag {
  transform: scale(1.08);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  min-width: 200px;
  border: 1px solid rgba(26, 43, 60, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(26, 43, 60, 0.16);
  list-style: none;
  padding: 0.55rem;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.lang-selector.active .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  list-style: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lang-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-option:hover {
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold);
  padding-left: 1.15rem;
}

.lang-option:hover::before {
  transform: scaleY(1);
}

.lang-option.active {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  font-weight: 700;
}

.lang-option.active::before {
  transform: scaleY(1);
}

.lang-option span:first-child {
  font-size: 1.2rem;
  display: inline-block;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.mobile-toggle:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  display: block;
  margin: 0 auto;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .navbar-wrapper {
    padding: 0.65rem 0;
  }

  .navbar-content {
    position: relative;
    min-height: 54px;
  }

  .logo-img {
    height: 44px;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    background: rgba(26, 43, 60, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    padding: 0;
    pointer-events: none;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.35s ease;
  }

  .nav-menu.active {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    padding: 0.8rem;
    pointer-events: auto;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.2rem;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    padding: 0.85rem 0.95rem;
    border-radius: 8px;
  }

  .nav-link::before {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .lang-selector {
    width: 100%;
    margin-left: 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lang-menu {
    position: static;
    width: 100%;
    max-height: 0;
    min-width: 0;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    border: 0;
    opacity: 0;
    overflow: hidden;
    transform: none;
    transition:
      max-height 0.3s ease,
      opacity 0.25s ease,
      margin-top 0.3s ease,
      padding 0.3s ease;
  }

  .lang-selector.active .lang-menu {
    max-height: 420px;
    padding: 0.45rem;
    margin-top: 0.55rem;
    opacity: 1;
    transform: none;
  }

  .lang-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
  }

  .lang-flag {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .navbar-wrapper {
    padding: 0.55rem 0;
  }

  .logo-img {
    height: 40px;
  }

  .lang-toggle {
    font-size: 0.85rem;
  }

  .lang-flag {
    font-size: 1rem;
  }

  .lang-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-gold);
}

.cta-button:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* ========================================
   HERO SLIDER STYLES
   ======================================== */
.hero {
  background: #000;
  color: var(--white);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 400px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

/* Individual Slide */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

/* Slide Overlay - Gradient sombre pour la lisibilité */
.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 43, 60, 0.7) 0%,
    rgba(44, 62, 80, 0.5) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

/* Slide Content */
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
  animation: slideContentIn 0.8s ease-out;
}

.hero-slide.active .hero-slide-content {
  animation: slideContentIn 0.8s ease-out;
}

/* Animation d'entrée du contenu */
@keyframes slideContentIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Titre du Slide */
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

/* Sous-titre du Slide */
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.4;
}

/* Contrôles du Carrousel */
/* Indicateurs de Slides (Points de Navigation) */
.hero-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.hero-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-indicator.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  width: 32px;
  border-radius: 6px;
}

/* Animation des indicateurs */
@keyframes indicatorPulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-gold);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.hero-indicator.active {
  animation: indicatorPulse 2s infinite;
}

/* ========================================
   INTERNAL PAGE HERO & LEGAL CONTENT
   ======================================== */
.page-hero {
  background:
    linear-gradient(135deg, rgba(26, 43, 60, 0.88), rgba(44, 62, 80, 0.78)),
    url("assets/business-owner-in-a-meeting.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 110px 0 90px;
}

.page-hero-content {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-gold-hover);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.legal-content {
  padding: 80px 0;
  background-color: var(--background-light);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  text-align: left;
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-light);
}

.legal-card p + p,
.legal-card ul + p,
.legal-card ol + p {
  margin-top: 1rem;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.25rem;
}

.legal-card li {
  margin-bottom: 0.6rem;
}

.legal-intro {
  border-left: 4px solid var(--accent-gold);
}

.legal-updated {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: 80px 0;
  background-color: var(--background-light);
}

.services h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Service Card */
.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.08) 100%
  );
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 24px rgba(26, 43, 60, 0.12);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background-color: var(--accent-gold);
  transform: scale(1.08);
}

.service-icon img,
.service-icon .icon-svg {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: var(--transition);
  stroke: var(--accent-gold);
  color: var(--accent-gold);
}

.service-card:hover .icon-svg {
  stroke: var(--primary-dark);
  color: var(--primary-dark);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.service-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-features li:before {
  content: "✓ ";
  color: var(--accent-gold);
  font-weight: bold;
  margin-right: 0.5rem;
}

.service-card:hover .service-features li {
  color: var(--primary-dark);
  padding-left: 0.5rem;
}

/* ========================================
   CREDIT EXAMPLES SECTION
   ======================================== */
.credit-examples {
  padding: 80px 0;
  background-color: var(--white);
}

.credit-examples h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Tabs Navigation */
.credit-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.credit-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.credit-tab-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--white);
  transform: translateY(-2px);
}

.credit-tab-btn.active {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow);
}

.credit-tab-btn svg {
  stroke: currentColor;
}

/* Tab Contents */
.credit-tabs-content {
  margin-top: 3rem;
}

.credit-tab-content {
  display: none;
  animation: fadeInTab 0.5s ease-in-out;
}

.credit-tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Credit Example Grid */
.credit-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.credit-example-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.15);
}

.credit-example-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Credit Details */
.credit-example-details h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.credit-example-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.credit-example-item:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.credit-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.credit-value {
  font-size: 1.3rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-align: right;
}

.credit-value.highlight {
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-gold-hover)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
}

.credit-description {
  margin: 1.5rem 0;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ========================================
   CREDIT SIMULATOR SECTION
   ======================================== */
.credit-simulator {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-light) 100%
  );
}

.credit-simulator h2 {
  color: var(--white);
}

.credit-simulator .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.simulator-panel {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  animation: fadeInSimulator 0.7s ease-out both;
}

@keyframes fadeInSimulator {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.simulator-controls,
.simulator-results {
  min-width: 0;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem;
}

.simulator-type-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.35rem;
  border-radius: var(--border-radius);
  background-color: var(--background-light);
}

.simulator-type-btn {
  min-height: 46px;
  padding: 0.7rem 0.75rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--text-dark);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.simulator-type-btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background-color: var(--white);
}

.simulator-type-btn.active {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}

.simulator-field {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0.9rem;
}

.simulator-field-header {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.simulator-field label {
  color: var(--primary-dark);
  font-weight: 700;
}

.simulator-value-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 128px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  background-color: var(--background-light);
  color: var(--accent-gold);
  font-weight: 800;
  max-width: 100%;
}

.simulator-value-input input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  text-align: right;
}

.simulator-range {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.simulator-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    rgba(212, 175, 55, 0.2)
  );
}

.simulator-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(26, 43, 60, 0.25);
  -webkit-appearance: none;
}

.simulator-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.25);
}

.simulator-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(26, 43, 60, 0.25);
}

.simulator-results {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.simulator-results::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(212, 175, 55, 0.14),
    transparent 55%
  );
  pointer-events: none;
}

.simulator-result-orb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 58%, transparent 59%),
    conic-gradient(
      var(--accent-gold) var(--payment-ratio, 42%),
      rgba(212, 175, 55, 0.18) 0
    );
  transition: transform 0.35s ease;
}

.simulator-results.is-updating .simulator-result-orb {
  transform: scale(1.03);
}

.simulator-result-orb span {
  color: var(--primary-dark);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.simulator-result-orb small {
  margin-top: 0.35rem;
  color: var(--text-light);
  font-weight: 700;
}

.simulator-result-list {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.simulator-result-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-light);
}

.simulator-result-item span {
  color: var(--text-light);
  font-weight: 600;
}

.simulator-result-item strong {
  min-width: 0;
  color: var(--primary-dark);
  text-align: right;
  overflow-wrap: anywhere;
}

.simulator-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

.simulator-cta:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--background-light) 0%,
    var(--white) 100%
  );
}

.testimonials h2 {
  margin-bottom: 0.5rem;
}

/* Testimonials Slider Wrapper */
.testimonials-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 1.5rem;
}

/* Testimonials Slider */
.testimonials-slider {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border-radius: var(--border-radius);
  min-width: 0;
}

/* Testimonial Slide */
.testimonial-slide {
  display: none;
  opacity: 0;
  animation: fadeInTestimonial 0.8s ease-in-out forwards;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

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

/* Testimonials Grid - 3 cards per slide */
.testimonials-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

/* Testimonial Card */
.testimonial-card {
  width: 100%;
  min-width: 0;
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--background-light) 100%
  );
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 15px 40px rgba(26, 43, 60, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  box-shadow: 0 25px 60px rgba(26, 43, 60, 0.18);
  transform: translateY(-5px);
}

/* Quote Icon - Simple text style */
.testimonial-quote-icon {
  font-size: 3.5rem;
  color: var(--accent-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
  animation: bounceQuote 2s ease-in-out infinite;
}

@keyframes bounceQuote {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Stars */
.stars {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.star {
  color: var(--accent-gold);
  font-size: 1.2rem;
  display: inline-block;
  animation: starGlow 0.5s ease-out;
}

@keyframes starGlow {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.star:nth-child(1) {
  animation-delay: 0.1s;
}

.star:nth-child(2) {
  animation-delay: 0.2s;
}

.star:nth-child(3) {
  animation-delay: 0.3s;
}

.star:nth-child(4) {
  animation-delay: 0.4s;
}

.star:nth-child(5) {
  animation-delay: 0.5s;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  min-height: 70px;
  overflow-wrap: break-word;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: slideUpAuthor 0.8s ease-out 0.4s both;
}

@keyframes slideUpAuthor {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-author strong {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Navigation Arrows */
.testimonials-prev,
.testimonials-next {
  background: var(--primary-dark);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonials-prev {
  grid-column: 1;
  grid-row: 1;
}

.testimonials-next {
  grid-column: 3;
  grid-row: 1;
}

.testimonials-prev:hover,
.testimonials-next:hover {
  background: var(--accent-gold);
  transform: scale(1.1);
}

.testimonials-prev svg,
.testimonials-next svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Testimonials Indicators */
.testimonials-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.testimonials-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.4);
  border: 2px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.testimonials-indicator:hover {
  background-color: rgba(212, 175, 55, 0.7);
  transform: scale(1.15);
}

.testimonials-indicator.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  width: 32px;
  border-radius: 6px;
  animation: indicatorPulseTestimonial 2s infinite;
}

@keyframes indicatorPulseTestimonial {
  0% {
    box-shadow: 0 0 0 0 var(--accent-gold);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* ========================================
   REQUEST FORM SECTION
   ======================================== */
.request-form-section {
  padding: 80px 0;
  background: linear-gradient(
    145deg,
    var(--primary-dark) 0%,
    var(--primary-light) 58%,
    #20364b 100%
  );
  color: var(--white);
  overflow: hidden;
}

.request-form-section h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.request-form-section .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.request-form-shell {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.request-form-assurance,
.request-form {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.request-form-assurance {
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.assurance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background-color: rgba(212, 175, 55, 0.16);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.request-form-assurance h3 {
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.request-form-assurance p {
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  overflow-wrap: break-word;
}

.request-form-assurance ul {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.request-form-assurance li {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  overflow-wrap: break-word;
}

.request-form-assurance li::before {
  content: "✓";
  color: var(--accent-gold);
  font-weight: 900;
  margin-right: 0.65rem;
}

.request-form {
  width: 100%;
  min-width: 0;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background-color: rgba(255, 255, 255, 0.97);
  color: var(--text-dark);
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--background-light);
  color: var(--primary-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  background-color: var(--white);
}

.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid,
.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #c94b4b;
}

.field-error,
.field-hint {
  min-height: 1.15rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.field-error {
  color: #b83d3d;
  font-weight: 700;
}

.field-hint {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox Group */
.form-group.checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  flex-direction: row;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form-group.checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-group.checkbox label {
  margin: 0;
  cursor: pointer;
  line-height: 1.55;
  color: var(--text-dark);
}

.form-group.checkbox a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration-color: var(--accent-gold);
}

.form-group.checkbox .field-error {
  grid-column: 2;
}

.form-security-note {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--border-radius);
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Submit Button */
.submit-button {
  width: 100%;
  min-height: 54px;
  padding: 1rem 2rem;
  background-color: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--primary-dark);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.submit-button:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.submit-button:active {
  transform: translateY(-1px);
}

.submit-button.is-loading {
  opacity: 0.76;
  cursor: wait;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
}

.form-status.success {
  color: #2f7d4f;
}

.form-status.error {
  color: #b83d3d;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: 80px 0;
  background-color: var(--white);
}

.contact h2 {
  margin-bottom: 0.5rem;
}

/* Contact Cards Grid */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  width: 100%;
}

/* Contact Card */
.contact-card {
  min-width: 0;
  padding: 2rem;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.contact-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background-color: var(--accent-gold);
}

.contact-icon .icon {
  width: 28px;
  height: 28px;
  stroke: var(--accent-gold);
  transition: var(--transition);
}

.contact-card:hover .contact-icon .icon {
  stroke: var(--primary-dark);
}

.contact-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.contact-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.contact-card a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: 3rem;
    margin-bottom: 0.9rem;
    line-height: 1.2;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
  }

  .hero-slide-content {
    padding: 35px 20px;
  }

  .page-hero {
    padding: 80px 0 65px;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .legal-content {
    padding: 60px 0;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .legal-card h2 {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .credit-tabs-nav {
    gap: 1rem;
  }

  .credit-tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .credit-example-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .credit-value {
    text-align: left;
  }

  .simulator-panel {
    grid-template-columns: 1fr;
  }

  .testimonials-slider-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem auto;
  }

  .testimonials-slider {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .testimonials-prev,
  .testimonials-next {
    justify-self: center;
  }

  .testimonials-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .testimonials-next {
    grid-column: 2;
    grid-row: 2;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0.75rem;
  }

  .testimonial-card-inner {
    padding: 2rem;
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .request-form-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .request-form {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services,
  .credit-simulator,
  .testimonials,
  .request-form-section,
  .contact {
    padding: 60px 0;
  }
}

/* Mobile (480px) */
/* Mobile Large (600px) */
@media (max-width: 600px) {
  .thanks-container {
    padding: 60px 15px;
  }

  .thanks-container h1 {
    font-size: 1.75rem;
  }

  .thanks-container p {
    font-size: 1rem;
  }

  .credit-simulator {
    overflow: hidden;
  }

  .request-form-section {
    overflow: hidden;
  }

  .hero {
    min-height: 420px;
  }

  .hero-title {
    font-size: 3rem;
    margin-bottom: 0.7rem;
    line-height: 1.2;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-slide-content {
    padding: 30px 20px;
  }

  .cta-button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 2rem 0;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .request-form-shell {
    width: 100%;
    max-width: calc(100vw - 40px);
    margin-top: 2rem;
  }

  .request-form-assurance,
  .request-form {
    max-width: 100%;
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    overflow: hidden;
  }

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

  .simulator-panel {
    gap: 0rem;
    margin-top: 2rem;
    max-width: calc(100vw - 40px);
    padding: 0.4rem;
  }

  .simulator-controls {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.2rem 2.5rem 1.2rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
  }

  .simulator-results {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.2rem 2.5rem 1.2rem;
    overflow: hidden;
    border-radius: 0px 0px 8px 8px;
  }
  .simulator-type-group {
    grid-template-columns: 1fr;
  }

  .simulator-field-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .simulator-value-input {
    min-width: 0;
    width: 100%;
  }

  .simulator-result-orb {
    max-width: 220px;
  }

  .simulator-cta {
    width: 100%;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
  }

  .hero-slide-content {
    padding: 22px 12px;
    max-width: 100%;
  }

  .hero-indicators {
    bottom: 15px;
    gap: 8px;
  }

  .hero-indicator {
    width: 10px;
    height: 10px;
  }

  .hero-indicator.active {
    width: 28px;
  }

  .cta-button {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
  }

  .credit-tabs-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .credit-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .credit-example-grid {
    padding: 1rem;
    gap: 1.5rem;
  }

  .credit-example-details h3 {
    font-size: 1.4rem;
  }

  .credit-example-item {
    grid-template-columns: 1fr;
    padding: 0.8rem 0;
  }

  .credit-value {
    text-align: left;
  }

  .simulator-result-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .simulator-result-item strong {
    text-align: left;
  }

  .testimonials-prev,
  .testimonials-next {
    width: 40px;
    height: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0.75rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-quote-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    min-height: auto;
    margin-bottom: 1rem;
  }

  .star {
    font-size: 1rem;
  }

  .testimonials-indicators {
    gap: 6px;
  }

  .testimonials-indicator {
    width: 8px;
    height: 8px;
  }

  .testimonials-indicator.active {
    width: 24px;
  }
}

/* Mobile Small (375px) */
@media (max-width: 375px) {
  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.25;
  }

  .hero-slide-content {
    padding: 18px 10px;
  }

  .page-hero {
    padding: 65px 0 50px;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .legal-card {
    padding: 1.25rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .cta-button:hover {
    transform: translateY(-2px);
  }

  .bar-content {
    padding: 0.5rem 0;
  }

  .service-card,
  .testimonial-card {
    padding: 1rem;
  }

  .testimonials-slider-wrapper {
    gap: 0.75rem;
  }

  .testimonials-prev,
  .testimonials-next {
    width: 36px;
    height: 36px;
  }

  .testimonials-prev svg,
  .testimonials-next svg {
    width: 20px;
    height: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.75rem 0.5rem;
  }

  .testimonial-quote-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .testimonial-text {
    font-size: 0.85rem;
    min-height: auto;
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }

  .testimonial-author strong {
    font-size: 0.9rem;
  }

  .testimonial-author span {
    font-size: 0.7rem;
  }

  .star {
    font-size: 0.8rem;
  }

  .request-form {
    padding: 1.5rem;
  }

  .request-form-assurance,
  .request-form {
    padding: 2rem 1rem 1rem 1rem;
  }

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

  .request-form-assurance h3 {
    font-size: 1.35rem;
  }

  .form-group.checkbox {
    gap: 0.7rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .services,
  .credit-simulator,
  .testimonials,
  .request-form-section,
  .contact {
    padding: 40px 0;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Large screens (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .services-grid {
    gap: 2.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-toggle,
  .submit-button {
    display: none;
  }

  body {
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
