/* ========================================
   WestBridge RCM - Main Stylesheet
   Production-ready CSS for westbridgercm.com
   ======================================== */

/* ========== 1. CSS VARIABLES ========== */
:root {
  /* Colors */
  --color-primary: #0066CC;
  --color-primary-dark: #0052a3;
  --color-secondary: #3B82F6;
  --color-dark-blue: #1E3A8A;
  --color-dark-blue-deep: #0f1f4b;
  --color-white: #FFFFFF;
  --color-light-gray: #F3F4F6;
  --color-surface-gray: #F8FAFC;
  --color-medium-gray: #6B7280;
  --color-dark-gray: #1F2937;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 80px;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Container */
  --container-width: 1200px;
}

/* ========== 2. RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== 3. TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark-blue);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }       /* 48px */
h2 { font-size: 2.25rem; }    /* 36px */
h3 { font-size: 1.75rem; }    /* 28px */
h4 { font-size: 1.375rem; }   /* 22px */
h5 { font-size: 1.125rem; }   /* 18px */
h6 { font-size: 1rem; }       /* 16px */

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark-gray);
}

p.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
}

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

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

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section-gray {
  background-color: var(--color-light-gray);
}

.section-dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--spacing-xl);
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
}

.section-dark .section-tag {
  background-color: rgba(255, 255, 255, 0.15);
  color: #93C5FD;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

/* Flexbox utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ========== 5. HEADER & NAVIGATION ========== */
.site-header {
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.top-bar {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 8px 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.top-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.top-left a {
  color: rgba(255, 255, 255, 0.9);
}
.top-left a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.top-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.social-icons-small {
  display: flex;
  gap: 12px;
}

.social-icons-small a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: var(--transition);
}

.social-icons-small a:hover {
  color: var(--color-white);
  transform: translateY(-1px);
}

.main-header {
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Brand Logo - Animated WB Monogram with Medical ECG Heartbeat */
.wb-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.wb-logo-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.wb-brand-logo:hover .wb-logo-mark {
  transform: scale(1.05);
}

.wb-emblem-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.15));
  fill: none !important;
}

.wb-emblem-svg path {
  fill: none !important;
}

.wb-brand-copy {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  white-space: nowrap;
}

.wb-brand-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wb-brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
  line-height: 1;
  white-space: nowrap;
}

/* ECG Pulse & Checkmark Animations */
.wb-ecg-pulse {
  stroke-dasharray: 100;
  animation: wbEcgPulse 2.4s ease-in-out infinite;
}

.wb-checkmark {
  animation: wbCheckPulse 2.4s ease-in-out infinite;
}

@keyframes wbEcgPulse {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.25;
  }
  30% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: -100;
    opacity: 0.25;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0.15;
  }
}

@keyframes wbCheckPulse {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
    transform-origin: center;
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    transform-origin: center;
  }
}

/* Nav Menu - Always strictly single line */
.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: clamp(10px, 1.4vw, 24px);
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav li {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.main-nav a {
  color: var(--color-dark-gray);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  word-break: keep-all;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

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

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.has-dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-xl);
  min-width: 270px;
  padding: 12px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--color-dark-gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--color-light-gray);
  color: var(--color-primary);
  padding-left: 18px;
}

.dropdown-menu a::after {
  display: none;
}

/* Header CTA - Always single line */
.btn-header-cta {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-header-cta:hover {
  background-color: var(--color-dark-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-header-cta::after {
  display: none !important;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-dark-blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

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

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-dark-gray);
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.mobile-menu li {
  margin-bottom: 12px;
}

.mobile-menu a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
}

/* ========== 6. BUTTONS & FORMS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-dark-blue);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #F8FAFC;
  color: var(--color-dark-blue) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white-outline {
  background-color: transparent;
  color: var(--color-white) !important;
  border-color: var(--color-white);
}

.btn-white-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-sm);
  text-align: left;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-dark-gray);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

input.error,
select.error,
textarea.error {
  border-color: var(--color-error);
  background-color: #FEF2F2;
}

.error-message {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--color-dark-gray);
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-success-banner {
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

/* ========== 7. CARDS & UI COMPONENTS ========== */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #BFDBFE;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  background: rgba(0, 102, 204, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 8px;
}

.card-description {
  color: var(--color-medium-gray);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.card-link {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

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

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-badge-item i {
  color: #38BDF8;
  font-size: 1.25rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.94) 0%, rgba(0, 102, 204, 0.88) 100%),
              url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--color-white);
  padding: var(--spacing-3xl) 0 var(--spacing-3xl);
  overflow: hidden;
}

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

.hero-subtitle-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #BAE6FD;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

/* Page Hero for secondary pages */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: 12px;
}

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

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-white);
}

/* Statistics Counter Section */
.stats-section {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: #60A5FA;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* How It Works Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: var(--spacing-xl) auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: #E2E8F0;
  z-index: 1;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.timeline-step {
  text-align: center;
  padding: 0 10px;
}

.timeline-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-step:hover .timeline-badge {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  line-height: 1.5;
}

/* Testimonial Carousel */
.testimonials-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  display: none;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

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

.testimonial-stars {
  color: #FBBF24;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-md);
}

.testimonial-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 2px;
}

.testimonial-author-title {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: var(--spacing-md);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-dark-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #D1D5DB;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--color-primary);
  width: 28px;
  border-radius: 6px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-blue) 100%);
  color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  margin: var(--spacing-xl) 0;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto var(--spacing-lg);
}

.cta-contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* AdSense Placements */
.ad-container {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
}

.ad-label {
  font-size: 11px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ad-placeholder {
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 0.85rem;
  margin: 0 auto;
}

.ad-horizontal .ad-placeholder {
  height: 90px;
  max-width: 728px;
}

.ad-sidebar .ad-placeholder {
  height: 250px;
  max-width: 300px;
}

.ad-responsive .ad-placeholder {
  height: 180px;
  width: 100%;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-white);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background-color: #EFF6FF;
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  font-weight: 600;
}

.comparison-table tr:hover td {
  background-color: #F8FAFC;
}

.comparison-table td i.fa-check-circle {
  color: var(--color-success);
  font-size: 1.15rem;
}

.comparison-table td i.fa-times-circle {
  color: #9CA3AF;
  font-size: 1.15rem;
}

/* Accordions */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--color-white);
  user-select: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark-blue);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: #F8FAFC;
  color: var(--color-primary);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  color: var(--color-primary);
}

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

.accordion-body {
  padding: 0 24px 20px;
  display: none;
  color: var(--color-dark-gray);
  line-height: 1.7;
}

.accordion.active .accordion-body {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* Cost Calculator */
.calculator-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid #BFDBFE;
}

.calc-result-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  border: 1px solid #93C5FD;
  text-align: center;
}

.calc-gain-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.1;
  margin: 8px 0;
}

/* Blog Styles */
.blog-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
}

.blog-card-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-medium-gray);
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark-blue);
  line-height: 1.35;
}

.blog-title a {
  color: var(--color-dark-blue);
}

.blog-title a:hover {
  color: var(--color-primary);
}

.blog-excerpt {
  color: var(--color-medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

/* Single Blog Post Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.blog-post-article {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.post-header {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--color-medium-gray);
  margin-bottom: 12px;
}

.post-featured-image {
  border-radius: var(--border-radius);
  margin: var(--spacing-md) 0 var(--spacing-lg);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.table-of-contents {
  background-color: #F8FAFC;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.table-of-contents h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: var(--color-dark-gray);
  font-size: 0.95rem;
}

.table-of-contents a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content h2 {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-sm);
  border-top: 1px solid #F1F5F9;
}

.post-content h3 {
  margin-top: var(--spacing-md);
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #374151;
}

.author-bio {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background-color: #F9FAFB;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--color-border);
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
}

.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white) !important;
}

.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.linkedin { background-color: #0A66C2; }
.share-btn.email { background-color: #4B5563; }

/* Legal Pages */
.legal-page-content {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin: var(--spacing-xl) 0;
}

.legal-page-content section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #F3F4F6;
}

.legal-date-meta {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  margin-bottom: var(--spacing-lg);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111827;
  color: var(--color-white);
  padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: none;
}

.cookie-banner-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E5E7EB;
}

.cookie-text a {
  color: #60A5FA;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  width: 90%;
  max-width: 580px;
  display: none;
}

.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
}

/* ========== 8. FOOTER ========== */
.site-footer {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  margin-top: auto;
}

.footer-main {
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr 1.4fr;
  gap: var(--spacing-xl);
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #BAE6FD;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-contact i {
  color: #60A5FA;
  margin-top: 4px;
}

.footer-social h5 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin: 16px 0 10px;
}

.footer-social .social-icons {
  display: flex;
  gap: 10px;
}

.footer-social .social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social .social-icons a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #60A5FA;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.legal-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Back to Top (Stacked cleanly above the floating live chat launcher) */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  font-size: 1rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

/* ===== Floating Live Chat Widget ===== */
.live-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-family: var(--font-body);
}

.chat-launcher-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.chat-prompt-tooltip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #1e293b;
  max-width: 260px;
  animation: fadeInRight 0.3s ease;
}

.chat-tooltip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-tooltip-text strong {
  display: block;
  color: var(--color-dark-blue);
  font-size: 0.82rem;
  line-height: 1.2;
}

.chat-tooltip-text span {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}

#closeChatTooltip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

#closeChatTooltip:hover {
  color: #475569;
}

.chat-launcher-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-primary) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px -5px rgba(0, 102, 204, 0.4), 0 8px 10px -6px rgba(0, 102, 204, 0.2);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 28px -5px rgba(0, 102, 204, 0.5), 0 10px 10px -5px rgba(0, 102, 204, 0.3);
}

.chat-launcher-btn .online-indicator {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.chat-launcher-btn .unread-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  border: 1.5px solid #ffffff;
}

/* Chat Modal Window */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 110px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.minimized {
  height: 60px !important;
}

.chat-window-header {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-primary) 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar-wrap {
  position: relative;
}

.agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.agent-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--color-dark-blue);
  border-radius: 50%;
}

.agent-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-online {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.agent-role {
  font-size: 0.72rem;
  color: #bae6fd;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-actions a,
.chat-header-actions button {
  background: none;
  border: none;
  color: #ffffff;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.chat-header-actions a:hover,
.chat-header-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-security-bar {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-bottom: 1px solid #d1fae5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-security-bar i {
  color: #059669;
  margin-right: 4px;
}

.chat-reply-time {
  background: #d1fae5;
  color: #047857;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* Chat Messages Stream */
.chat-messages-body {
  flex: 1;
  padding: 14px;
  background: #f8fafc;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat-bubble-msg.assistant {
  align-self: flex-start;
}

.chat-bubble-msg.user {
  align-self: flex-end;
}

.chat-bubble-msg .msg-content {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-bubble-msg.assistant .msg-content {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
}

.chat-bubble-msg.user .msg-content {
  background: var(--color-primary);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.chat-bubble-msg .msg-time {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 4px;
  padding: 0 4px;
}

.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-chip {
  background: #ffffff;
  color: var(--color-dark-blue);
  border: 1px solid #bfdbfe;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.chat-chip:hover {
  background: #eff6ff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Chat Footer & Input */
.chat-window-footer {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.chat-input-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.84rem;
  outline: none;
  background: #f8fafc;
  transition: border 0.15s ease, background 0.15s ease;
}

.chat-input-form input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.chat-input-form button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.chat-input-form button:hover {
  background: var(--color-dark-blue);
}

.chat-footer-call {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 6px;
  padding: 0 2px;
}

.chat-footer-call a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
