/* 
 * TourAdviser - Main Stylesheet
 * A clean, modern website for medical tourism
 */

/* Import language switcher styles */
@import url('./language-switcher.css');

/* ===== Base Styles ===== */
:root {
  /* Colors */
  --primary: #1e6bb8;
  --primary-dark: #155a9d;
  --secondary: #f5a623;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-gray: #f2f2f2;
  --border-color: #eeeeee;
  --success: #4caf50;
  --error: #f44336;
  
  /* Typography */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Other */
  --border-radius: 4px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset and base setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--white);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::after {
  display: none;
}

body.nav-open .navbar-collapse {
  z-index: 1001;
}

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

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

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

ul {
  list-style: none;
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Mobile typography */
h1 {
  font-size: 1.75rem; /* 28px - smaller on mobile */
}

h2 {
  font-size: 1.5rem; /* 24px */
}

h3 {
  font-size: 1.25rem; /* 20px */
}

h4 {
  font-size: 1.125rem; /* 18px */
}

p {
  font-size: 1rem; /* 16px base */
  margin-bottom: 1rem;
  line-height: 1.6; /* Better readability on mobile */
}

/* Tablet typography */
@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem; /* 36px */
  }
  
  h2 {
    font-size: 1.875rem; /* 30px */
  }
  
  h3 {
    font-size: 1.5rem; /* 24px */
  }
  
  p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
  }
}

/* Desktop typography */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem; /* 40px */
    line-height: 1.1;
  }
  
  h2 {
    font-size: 2rem; /* 32px */
    line-height: 1.2;
  }
  
  h3 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.3;
  }
  
  p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    max-width: 65ch; /* Optimal reading length */
  }
  
  /* Enhanced section spacing */
  section {
    padding: 4rem 0;
  }
}

/* Layout - Mobile First */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem; /* 16px - smaller on mobile */
}

/* Mobile: 375px+ */
@media (min-width: 375px) {
  .container {
    padding: 0 1.25rem; /* 20px */
  }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem; /* 32px */
    max-width: 768px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

/* Large Desktop: 1200px+ */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

section {
  padding: 2rem 0; /* Smaller padding on mobile */
}

@media (min-width: 768px) {
  section {
    padding: 3rem 0; /* Larger padding on tablet+ */
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

/* Placeholder Styles */
.logo-placeholder {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  padding: 0.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
}

.image-placeholder {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-weight: bold;
}

/* Page Header */
.page-header {
  background-color: var(--light-gray);
  padding: var(--spacing-xl) 0;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.page-header h1 {
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Page Header */
.contact-page .page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-page .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.contact-page .page-header .container {
  position: relative;
  z-index: 2;
}

.contact-page .page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-page .page-header p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
}

/* Bitrix24 Form Integration */
.contact-form .b24-form {
  width: 100%;
}

.contact-form .b24-form-container {
  background: transparent;
  border: none;
  padding: 0;
}

.contact-form .b24-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.contact-form .b24-form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form .b24-form-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form .b24-form-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.contact-form .b24-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

/* Ensure Bitrix24 form respects mobile layout */
@media (max-width: 767px) {
  .contact-form .b24-form-control {
    font-size: 16px; /* Prevent zoom on input focus on iOS */
  }
  
  .contact-form .b24-form-btn {
    padding: 14px 24px;
  }
}

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    gap: 4rem;
  }
  
  .contact-form {
    padding: 3rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid rgba(30, 107, 184, 0.1);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 16px;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 6px rgba(30, 107, 184, 0.1);
  }
  
  .contact-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
  }
  
  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }
}

.contact-form {
  background-color: var(--light-gray);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 107, 184, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-card {
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
}

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

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

.contact-social .social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.contact-social .social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-social .social-links a:hover {
  background-color: var(--light-gray);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-social .social-links img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-social .social-links span {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

/* Ensure contact social links are always horizontal */
.contact-section .contact-social .social-links {
  display: flex !important;
  flex-direction: row !important;
  gap: var(--spacing-md) !important;
  flex-wrap: wrap;
}

.contact-section .contact-social .social-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

/* About Section */
.about-section {
  padding: 4rem 0;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
}

.about-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.about-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .service-card {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .service-card:hover::before {
    transform: scaleX(1);
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
  }
}

.service-card {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.advantages-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.advantages-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 50%;
}

.advantages-list strong {
  font-weight: 600;
  color: #222;
}

.commitment-block {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  border-left: 4px solid var(--primary);
}

.commitment-block h2 {
  margin-top: 0;
}

/* Buttons - Mobile First */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 44px; /* iOS touch target */
  gap: 8px;
}

/* Tablet and up */
@media (min-width: 768px) {
  .btn {
    padding: 12px 24px;
    font-size: 1rem;
    min-height: auto;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 107, 184, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 107, 184, 0.3);
  color: var(--white);
}

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

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

/* Header / Navigation - Mobile First */
.header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  background: #ffffff;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

/* Mobile-first navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  min-height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.logo {
  height: 36px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Mobile hamburger menu */
.navbar-toggler {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  z-index: 1002;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-toggler:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
}

.navbar-toggler-icon span,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #334155;
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 1px;
}

.navbar-toggler-icon::before {
  top: 0;
}

.navbar-toggler-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggler-icon::after {
  bottom: 0;
}

body.nav-open .navbar-toggler-icon::before {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .navbar-toggler-icon span {
  opacity: 0;
  transform: scale(0);
}

body.nav-open .navbar-toggler-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu panel */
.navbar-collapse {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: #ffffff;
  padding: 88px 28px 28px;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1001;
  overflow-y: auto;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

.navbar-collapse.active {
  right: 0;
}

/* Mobile backdrop */
body.nav-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Mobile navigation */
.navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 8px;
}

.nav-item {
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  transform: translateX(-2px);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.5px 5px;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* Mobile dropdown */
.dropdown-menu {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin: 8px 0;
  padding: 8px 0;
}

.dropdown.mobile-open .dropdown-menu {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  visibility: visible;
  position: static;
  transform: none;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  margin-top: 8px;
  padding: 8px 0;
}

.dropdown-item {
  display: block;
  padding: 3.5px 5px 3.5px 9px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.01em;
}

.dropdown-item:hover {
  background: #ffffff;
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 10px;
}



/* Mobile CTA buttons */
.navbar-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  margin-top: auto;
}

.navbar-cta .btn {
  width: 100%;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Language switcher mobile */
#language-switcher {
  margin-top: 5px;
}

.language-switcher {
  display: flex;
  gap: 4px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 6px;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.language-switcher .lang-btn {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 50px;
  justify-content: center;
  letter-spacing: 0.01em;
}

.language-switcher .lang-btn:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: #e2e8f0;
}

.language-switcher .lang-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(30, 107, 184, 0.2);
}

.language-switcher .lang-flag {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  object-fit: cover;
}

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

/* Tablet Navigation: 768px+ */
@media (min-width: 768px) {
  .navbar {
    padding: 20px 0;
    min-height: 80px;
    justify-content: flex-start;
    align-items: center;
  }
  
  .logo {
    height: 42px;
  }
  
  .navbar-toggler {
    display: none;
  }
  
  .navbar-collapse {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    transition: none;
    z-index: auto;
    overflow-y: visible;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: none;
  }
  
  body.nav-open::after {
    display: none;
  }
  
  .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    order: 1;
    flex: 1;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 1rem;
  }
  
  .nav-item {
    background: none;
    border: none;
    border-radius: 8px;
    margin-bottom: 0;
    overflow: visible;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .nav-item:hover {
    background: #f8fafc;
    transform: none;
  }
  
  .nav-link {
    padding: 4px 5px;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
  }
  
  .nav-link:hover {
    color: var(--primary);
    background: #f8fafc;
  }
  
  /* Desktop dropdown */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    margin: 0;
    animation: none;
  }
  
  /* Add invisible hover buffer for better UX */
  .dropdown-menu::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: transparent;
    z-index: -1;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    display: block;
  }
  
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
  }
  
  .dropdown-item {
    padding: 12px 24px;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
  }
  
  .dropdown-item:hover {
    background-color: #f8fafc;
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: 28px;
  }
  
  .dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 6px;
    flex-shrink: 0;
  }
  
  .dropdown:hover .dropdown-toggle::after,
  .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  

  
  /* Tablet CTA - Hidden on desktop, show only on mobile */
  .navbar-cta {
    display: none;
  }
  
  .navbar-cta .btn {
    width: auto;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
  }
  
  .navbar-cta .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(30, 107, 184, 0.25);
  }
  
  .navbar-cta .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 107, 184, 0.35);
  }
  
  /* Tablet language switcher */
  #language-switcher {
    order: 4;
    margin-left: 20px;
    margin-top: 0;
    display: flex;
    align-items: center;
  }
  
  .language-switcher {
    background: #f8fafc;
    border-radius: 6px;
    padding: 3px;
    border: 1px solid #e2e8f0;
    justify-content: flex-start;
    gap: 3px;
  }
  
  .language-switcher .lang-btn {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: auto;
    justify-content: center;
    letter-spacing: 0.01em;
  }
  
  .language-switcher .lang-flag {
    width: 12px;
    height: 9px;
  }
}

/* Enhanced Desktop Experience */
@media (min-width: 1024px) {
  /* Enhanced Navigation Layout */
  .navbar {
    padding: 24px 0;
    min-height: 88px;
    justify-content: flex-start;
    align-items: center;
  }
  
  .navbar-brand {
    margin-right: 3rem;
    flex-shrink: 0;
  }
  
  .navbar-collapse {
    flex: 1;
    max-width: none;
  }
  
  .navbar-nav {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 2rem;
    gap: 0;
  }
  
  .logo {
    height: 48px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  }
  
  /* Enhanced Header Background */
  .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: -1;
  }
  
  /* Enhanced Navigation Items */
  .nav-link {
    padding: 4.5px 6px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .nav-link:hover::after,
  .nav-item.current-page .nav-link::after {
    width: 100%;
  }
  
  /* Enhanced Dropdown System */
  .dropdown-menu {
    min-width: 280px;
    padding: 4px 0;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    background: #ffffff;
  }
  
  .dropdown-menu::before {
    width: 16px;
    height: 16px;
    top: -8px;
  }
  
  .dropdown-item {
    padding: 3.5px 7px;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid transparent;
  }
  
  .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(30, 107, 184, 0.1), transparent);
    transition: width 0.3s ease;
  }
  
  .dropdown-item:hover::before {
    width: 100%;
  }
  
  .dropdown-item::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 16px;
    opacity: 0;
    transition: all 0.2s ease;
    transform: scale(0);
  }
  
  .dropdown-item:hover::after {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Enhanced Search Bar */

  

  
  /* Language Switcher Enhancement */
  .language-switcher {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .language-switcher:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  /* Active Page Indicator */
  .nav-item.current-page .nav-link {
    background: #f8fafc;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid #e2e8f0;
  }
  
  /* Accessibility Enhancements */
  .nav-link:focus,
  .dropdown-item:focus,
  .navbar-cta .btn:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
  }
  
  /* Enhanced Animations */
  .dropdown:hover .dropdown-menu,
  .dropdown.show .dropdown-menu {
    animation: dropdownFadeIn 0.3s ease-out;
  }
  
  @keyframes dropdownFadeIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(-12px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }
  
  /* Hover States for Navigation */
  .navbar-nav:hover .nav-item:not(:hover) .nav-link {
    opacity: 0.7;
    transform: scale(0.98);
  }
  
  .navbar-nav .nav-item:hover .nav-link {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Enhanced Large Desktop Experience */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
  
  .navbar {
    padding: 24px 0;
    justify-content: flex-start;
  }
  
  .navbar-brand {
    margin-right: 3rem;
  }
  
  .navbar-nav {
    margin-left: auto;
    margin-right: 2.5rem;
  }
  
  .logo {
    height: 50px;
  }
  

  
  .navbar-cta .btn {
    padding: 3.5px 8px;
    font-size: 16px;
  }
  
  h1 {
    font-size: 3rem; /* 48px */
  }
  
  h2 {
    font-size: 2.25rem; /* 36px */
  }
  
  section {
    padding: 5rem 0;
  }
  
  .destinations-grid,
  .services-grid {
    gap: 3rem;
  }
  
  .service-card:hover {
    transform: translateY(-12px);
  }
  
  .destination-card:hover {
    transform: translateY(-10px) scale(1.03);
  }
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-gray);
}

/* Ensure hero section and all its content is always visible and not affected by animations */
.hero,
.hero *,
.hero-content,
.hero-title,
.hero-text,
.hero-buttons,
.hero-image {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

/* Prevent text flickering during translation loading */
.hero-content [data-i18n] {
  opacity: 1 !important;
  transition: opacity 0.2s ease-in-out;
}

/* Show content once translations are ready */
.translations-ready .hero-title,
.translations-ready .hero-text,
.translations-ready [data-i18n] {
  opacity: 1 !important;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
  
  .hero .container {
    gap: 6rem;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  
  .hero-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
  }
  
  .hero-image img {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
  }
  
  .hero-image img:hover {
    transform: scale(1.02);
  }
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.hero-text {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Destinations Section */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

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

@media (min-width: 768px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .destinations-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
  }
  
  .destination-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
  }
  
  .destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 107, 184, 0.02), rgba(30, 107, 184, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }
  
  .destination-card:hover::before {
    opacity: 1;
  }
  
  .destination-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

.destination-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.destination-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.destination-flag {
  width: 40px;
  height: 30px;
  background-size: cover;
  background-position: center;
  margin-right: var(--spacing-md);
  border-radius: 2px;
}

.destination-name {
  margin-bottom: 0;
}

.destination-content {
  padding: var(--spacing-md);
}

.destination-spec,
.destination-advantages {
  margin-bottom: var(--spacing-md);
}

.destination-content h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-light);
}

.destination-content p {
  margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
  background-color: var(--light-gray);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }
}

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

.footer-logo {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.footer-logo img {
  height: auto;
  max-height: 40px;
  max-width: 160px;
  width: auto;
}

.footer-tagline {
  color: var(--text-light);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.footer-nav h4,
.footer-contact h4 {
  margin-bottom: var(--spacing-sm);
}

.footer-nav ul,
.footer-contact ul {
  margin-bottom: var(--spacing-md);
}

.footer-nav li,
.footer-contact li {
  margin-bottom: var(--spacing-xs);
}

.footer-nav a,
.footer-contact a {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--white);
  border-radius: 50%;
}

.social-links img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Additional Mobile Optimizations */
@media (max-width: 767px) {
  /* Hero image ordering on mobile */
  .hero-image {
    order: -1;
  }
  
  /* Form inputs optimized for mobile */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on input focus on iOS */
  }
  
  /* Contact page mobile adjustments */
  .contact-info {
    margin-top: 2rem;
  }
  
  /* Social links mobile layout - general rule */
  .social-links {
    flex-direction: column;
    gap: 12px;
  }
  
  /* Contact page social links - force horizontal layout */
  .contact-section .contact-social .social-links {
    flex-direction: row !important;
    gap: var(--spacing-md) !important;
    flex-wrap: wrap;
  }
  
  /* Ensure contact social links stay horizontal and properly sized */
  .contact-section .contact-social .social-links a {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .social-button {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* Contact page header mobile adjustments */
  .contact-page .page-header h1 {
    font-size: 2.5rem;
  }
  
  .contact-page .page-header p {
    font-size: 1.1rem;
  }
}

/* Overview with Image Section */
.overview-with-image {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.overview-text {
  flex: 1;
}

.overview-image {
  flex: 1;
}

  .overview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .overview-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }

@media (min-width: 768px) {
  .overview-with-image {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  
  .overview-text {
    flex: 2;
    padding-right: 1.5rem;
  }
  
  .overview-image {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
  }
  
  .overview-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
  }
}

@media (min-width: 1200px) {
  .overview-with-image {
    gap: 3rem;
  }
  
  .overview-text {
    padding-right: 2rem;
  }
  
  .overview-image {
    min-width: 350px;
    max-width: 50%;
  }
  
  .overview-image img {
    max-height: 500px;
  }
}

/* Contact Page Styles */
.contact-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.map-link {
  margin-top: 8px;
}

.map-link a {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.map-link a::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e6bb8'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.social-button {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.social-button:hover {
  background-color: var(--light-gray);
  transform: translateY(-2px);
}

.social-button img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.social-button span {
  font-weight: 500;
  color: var(--text-dark);
}

/* Prices Page Styles */

/* Price Calculator Section */
.price-calculator {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 3rem 0;
}

.calculator-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  max-width: 800px;
  margin: 0 auto;
}

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

.calculator-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.calculator-header p {
  color: #64748b;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(3, 1fr) auto;
  }
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 107, 184, 0.1);
}

.calculate-btn {
  height: fit-content;
  padding: 12px 24px;
  white-space: nowrap;
  font-weight: 600;
}

.calculation-result {
  margin-top: 2rem;
}

.result-card {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 2rem;
}

.result-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #bae6fd;
}

.cost-item:last-of-type {
  border-bottom: none;
}

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid #0ea5e9;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0c4a6e;
}

.cost-label {
  color: #0f172a;
}

.cost-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.result-disclaimer {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Treatment Packages Section */
.treatment-packages {
  padding: 4rem 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Package Card */
.package-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #f1f5f9;
  position: relative;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #e2e8f0;
}

.package-card.featured {
  border: 2px solid #fbbf24;
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.package-card.premium {
  border: 2px solid #8b5cf6;
  background: linear-gradient(135deg, #faf5ff, #ffffff);
}

.package-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.package-card.premium .package-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.package-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.package-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  color: #ffffff;
}

.package-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.package-price {
  margin-bottom: 1.5rem;
}

.price-range {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.price-note {
  font-size: 0.875rem;
  color: #64748b;
}

.package-includes, .package-countries {
  padding: 0 2rem 1.5rem;
}

.package-includes h4, .package-countries h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-includes li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #4b5563;
  position: relative;
  padding-left: 1.5rem;
}

.package-includes li:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.package-includes li:last-child {
  border-bottom: none;
}

.country-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.country-option .flag {
  font-size: 1.25rem;
}

.country-option .country {
  flex: 1;
  font-weight: 500;
  color: #374151;
}

.country-option .country-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

.package-actions {
  padding: 0 2rem 2rem;
  display: flex;
  gap: 1rem;
}

.package-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
}

/* Pricing Comparison Table */
.pricing-comparison {
  background: #f8fafc;
  padding: 4rem 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table th:first-child {
  border-top-left-radius: 12px;
}

.comparison-table th:last-child {
  border-top-right-radius: 12px;
}

.treatment-name {
  font-weight: 600;
  color: #1f2937;
  background: #f8fafc;
}

.price-cell {
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

.comparison-table tr:hover {
  background: #f1f5f9;
}

.table-note {
  margin-top: 1.5rem;
  text-align: center;
}

.table-note p {
  color: #64748b;
  font-size: 0.875rem;
  max-width: 600px;
  margin: 0 auto;
}

/* What's Included Section */
.whats-included {
  padding: 4rem 0;
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.included-item {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.included-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.included-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.included-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.included-item p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Financing Options */
.financing-options {
  background: #f8fafc;
  padding: 4rem 0;
}

.financing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .financing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.financing-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.financing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #e2e8f0;
}

.financing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.financing-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.financing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.financing-card li {
  padding: 0.5rem 0;
  color: #4b5563;
  font-size: 0.875rem;
  position: relative;
  padding-left: 1.5rem;
}

.financing-card li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .calculator-card {
    padding: 1.5rem;
  }
  
  .form-row {
    gap: 1rem;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .package-card {
    border-radius: 12px;
  }
  
  .package-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .package-includes, .package-countries {
    padding: 0 1.5rem 1rem;
  }
  
  .package-actions {
    padding: 0 1.5rem 1.5rem;
    flex-direction: column;
  }
  
  .comparison-table-wrapper {
    margin: 2rem -1rem 0;
  }
  
  .included-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .financing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .financing-card {
    padding: 1.5rem;
  }
}

/* Loading and Animation States */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.package-card {
  animation: fadeInUp 0.6s ease-out;
}

.package-card:nth-child(1) { animation-delay: 0.1s; }
.package-card:nth-child(2) { animation-delay: 0.2s; }
.package-card:nth-child(3) { animation-delay: 0.3s; }
.package-card:nth-child(4) { animation-delay: 0.4s; }
.package-card:nth-child(5) { animation-delay: 0.5s; }
.package-card:nth-child(6) { animation-delay: 0.6s; }

/* Calculator Animation */
.calculation-result {
  animation: fadeInUp 0.5s ease-out;
}

/* Responsive Table Styling */
@media (max-width: 1024px) {
  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .price-cell {
    font-size: 0.8rem;
  }
}

/* Enhanced Hero Section Styles */

/* Enhanced Button Styles */
.btn.enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.btn.enhanced .btn-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.btn.enhanced .btn-subtext {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 2px;
  font-weight: 400;
}

.btn.enhanced.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  box-shadow: 0 8px 20px rgba(30, 107, 184, 0.3);
}

.btn.enhanced.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 107, 184, 0.4);
}

.btn.enhanced.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn.enhanced.btn-primary:hover::before {
  left: 100%;
}

/* Trust Indicators */
.hero-trust-indicators {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  gap: 1rem;
}

@media (max-width: 767px) {
  .hero-trust-indicators {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.trust-indicator {
  text-align: center;
  flex: 1;
}

.trust-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}



/* Enhanced Hero Layout */
@media (min-width: 1024px) {
  .hero .container {
    position: relative;
  }
  
  .hero-image {
    position: relative;
  }
  

}

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

/* Mobile Optimizations for Enhanced Hero */
@media (max-width: 767px) {
  .btn.enhanced {
    padding: 14px 20px;
    min-width: auto;
    width: 100%;
  }
  
  .btn.enhanced .btn-text {
    font-size: 0.9rem;
  }
  
  .btn.enhanced .btn-subtext {
    font-size: 0.7rem;
  }
  
  .trust-number {
    font-size: 1.75rem;
  }
  
  .hero-trust-indicators {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

/* Live Chat Widget Styles */
.live-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.live-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.live-chat-button.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.live-chat-button.pulse-animation {
  animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

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

.chat-icon {
  color: white;
  width: 28px;
  height: 28px;
}

.chat-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
}

.live-chat-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.live-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

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

.chat-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px 15px 0 0;
}

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

.agent-avatar {
  position: relative;
  width: 40px;
  height: 40px;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid white;
}

.agent-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.agent-status {
  font-size: 12px;
  opacity: 0.9;
}

.chat-controls {
  display: flex;
  gap: 8px;
}

.chat-minimize,
.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.chat-minimize:hover,
.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  max-width: 80%;
}

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

.chat-message.bot {
  align-self: flex-start;
}

.message-content {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
}

.chat-message.user .message-content {
  background: #007bff;
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.bot .message-content {
  border-bottom-left-radius: 6px;
}

.message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}

.chat-quick-replies {
  padding: 15px 20px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eee;
}

.quick-reply {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-reply:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.chat-input-area {
  padding: 15px 20px 20px;
  border-top: 1px solid #eee;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-container input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.chat-input-container input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.chat-send {
  background: #007bff;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send:hover:not(:disabled) {
  background: #0056b3;
  transform: scale(1.05);
}

.chat-send:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #6c757d;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  background: #6c757d;
  border-radius: 50%;
  animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile responsiveness for chat */
@media (max-width: 768px) {
  .live-chat-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
  
  .live-chat-button {
    bottom: 20px;
    right: 20px;
  }
}

/* Chat window minimized state */
.live-chat-window.minimized .chat-messages,
.live-chat-window.minimized .chat-quick-replies,
.live-chat-window.minimized .chat-input-area {
  display: none;
}

/* Scrollbar styling for chat messages */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
} 

/* Mobile Accessibility Styles */
.mobile-accessibility-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: none;
}

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

.mobile-accessibility-toggle {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
}

.mobile-accessibility-toggle:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.mobile-accessibility-toggle:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}



/* Skip Links */
.skip-links {
  position: absolute;
  top: -200px;
  left: 0;
  z-index: 10000;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 0 0 5px 5px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode */
.high-contrast {
  filter: contrast(200%) brightness(150%);
}

.high-contrast * {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.high-contrast a {
  color: #ffff00 !important;
}

.high-contrast button {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

.high-contrast .btn-primary {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

/* Inverted Colors */
.invert-colors {
  filter: invert(1) hue-rotate(180deg);
}

.invert-colors img,
.invert-colors video {
  filter: invert(1) hue-rotate(180deg);
}

/* Large Cursor */
.large-cursor,
.large-cursor * {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M2 2l8 20 5-5 20-8z" fill="black"/><path d="M2 2l8 20 5-5 20-8z" fill="white" stroke="black" stroke-width="1"/></svg>') 2 2, auto !important;
}

/* Enhanced Focus Indicators */
.enhanced-focus *:focus {
  outline: 3px solid #007bff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.2) !important;
}

.enhanced-focus button:focus,
.enhanced-focus a:focus,
.enhanced-focus input:focus,
.enhanced-focus select:focus,
.enhanced-focus textarea:focus {
  outline: 3px solid #007bff !important;
  outline-offset: 2px !important;
  position: relative;
  z-index: 1;
}

/* Enhanced Keyboard Navigation */
.enhanced-keyboard-nav [tabindex="0"]:focus {
  background: rgba(0, 123, 255, 0.1) !important;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* Reduced Motion */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Simplified Layout */
.simple-layout {
  font-family: Arial, sans-serif !important;
}

.simple-layout * {
  background: white !important;
  color: black !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.simple-layout .destination-card,
.simple-layout .service-card,
.simple-layout .testimonial-card {
  border: 2px solid #000 !important;
  background: white !important;
  margin-bottom: 20px !important;
}

.simple-layout img {
  display: none !important;
}

.simple-layout .hero {
  background: white !important;
}

/* Improved Form Accessibility */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group label [aria-label="required"] {
  color: #dc3545;
  margin-left: 3px;
}

.form-control:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control:invalid + .error-message {
  display: block;
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

.error-message {
  display: none;
}

/* ARIA Live Region */
#live-region {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Print Styles */
@media print {
  .live-chat-button {
    display: none !important;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 12px;
  }
}

/* Preference-based Media Queries */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --contrast-multiplier: 2;
  }
  
  * {
    border-width: 2px !important;
  }
  
  button, input, select, textarea {
    border: 2px solid currentColor !important;
  }
}

/* Appointment Booking System Styles */
.appointment-booking-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.booking-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  pointer-events: auto;
}

.booking-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: none;
  pointer-events: auto;
}

.booking-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: between;
  align-items: center;
}

.booking-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.booking-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.booking-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.booking-content {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.booking-step h3 {
  margin: 0 0 25px 0;
  font-size: 20px;
  color: #333;
}

/* Consultation Types */
.consultation-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.consultation-type {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.consultation-type:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.consultation-type.selected {
  border-color: #007bff;
  background: #f8f9ff;
}

.consultation-type.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #007bff;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.type-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.consultation-type h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

.consultation-type p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.type-duration {
  background: #e9ecef;
  color: #666;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

/* Calendar Styles */
.calendar-container {
  margin-bottom: 25px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: 20px;
}

.calendar-nav {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.calendar-nav:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.calendar-header h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
}

.calendar-day-header {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #666;
  font-size: 14px;
}

.calendar-day {
  padding: 12px;
  text-align: center;
  border: none;
  background: white;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover:not(.disabled) {
  background: #e3f2fd;
  color: #1976d2;
}

.calendar-day.selected {
  background: #007bff;
  color: white;
}

.calendar-day.disabled {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

/* Time Slots */
.time-slots-container {
  margin-top: 25px;
}

.time-slots-container h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #333;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.time-slot {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  text-align: center;
}

.time-slot:hover {
  background: #e3f2fd;
  border-color: #007bff;
  color: #007bff;
}

.time-slot.selected {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Form Styles */
.booking-form {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label a {
  color: #007bff;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Booking Summary */
.booking-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.summary-item strong {
  color: #333;
  font-weight: 600;
  margin-right: 15px;
}

.summary-item span {
  color: #666;
  text-align: right;
}

.confirmation-message {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #e8f5e8, #f1f8f1);
  border-radius: 12px;
  border: 2px solid #28a745;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.confirmation-message h4 {
  margin: 0 0 15px 0;
  color: #155724;
  font-size: 20px;
}

.confirmation-message p {
  margin: 0 0 10px 0;
  color: #155724;
  line-height: 1.5;
}

/* Footer */
.booking-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.booking-footer .btn {
  min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .booking-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .booking-header,
  .booking-content,
  .booking-footer {
    padding: 20px;
  }
  
  .consultation-types {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .calendar-grid {
    gap: 1px;
    padding: 5px;
  }
  
  .calendar-day {
    padding: 8px;
    min-height: 36px;
    font-size: 12px;
  }
  
  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }
  
  .time-slot {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .booking-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .booking-footer .btn {
    width: 100%;
  }
  
  .summary-item {
    flex-direction: column;
    gap: 5px;
  }
  
  .summary-item span {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .booking-header h2 {
    font-size: 20px;
  }
  
  .booking-step h3 {
    font-size: 18px;
  }
  
  .consultation-type {
    padding: 20px 15px;
  }
  
  .type-icon {
    font-size: 28px;
  }
  
  .consultation-type h4 {
    font-size: 16px;
  }
}

/* Print Styles */
@media print {
  .appointment-booking-container {
    display: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .booking-modal {
    border: 3px solid #000;
  }
  
  .consultation-type {
    border-width: 3px;
  }
  
  .calendar-day,
  .time-slot {
    border-width: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .booking-step.active {
    animation: none;
  }
  
  .consultation-type:hover {
    transform: none;
  }
  
  * {
    transition: none !important;
  }
}

/* =========================================================
 * RU Visual Design Polish (Tasks 41–50)
 * Scope: html[lang="ru"] priority, global safe enhancements
 * ======================================================= */

/* 41. RU typography and text flow */
html[lang="ru"] body {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Balance large headings where supported */
html[lang="ru"] h1,
html[lang="ru"] h2 {
  text-wrap: balance;
}

/* Keep optimal measure on large screens */
@media (min-width: 1024px) {
  html[lang="ru"] p {
    max-width: 65ch;
  }
}

/* 42. Header/nav polish and accessibility */
/* Allow wrapping of long labels without shifting layout */
.nav-link,
.dropdown-item {
  white-space: normal;
  line-height: 1.35;
}

/* Dropdown width constraints and better wrapping */
@media (min-width: 768px) {
  .dropdown-menu {
    min-width: 260px;
    max-width: 480px;
    word-wrap: break-word;
    white-space: normal;
  }
}

/* Reduce sticky header visual weight */
.header {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #e5e7eb;
}
.header.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  border-bottom-color: #dbe0e6;
}

/* Focus styles for keyboard users */
.header .nav-link:focus-visible,
.header .dropdown-item:focus-visible,
.btn:focus-visible,
.language-switcher button:focus-visible,
.language-switcher a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Animate caret based on aria-expanded */
@media (min-width: 768px) {
  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
}

/* 43. Language switcher placement refinement on header (desktop) */
@media (min-width: 768px) {
  .header #language-switcher {
    margin-left: auto;
  }
}

/* 44. Buttons system – ensure consistent sizes */
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.125rem;
  min-height: 48px;
}

/* Ensure enhanced CTA variant inherits base tokens */
.btn.enhanced.btn-primary {
  color: var(--white);
}

/* 45. Clinics/Hospitals card consistency (used on RU clinics) */
.clinics-page .clinics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .clinics-page .clinics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .clinics-page .clinics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.clinics-page .clinic-card {
  background: #fff;
  border: 1px solid #eaedf1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.clinics-page .clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  border-color: #e2e8f0;
}

.clinics-page .clinic-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.clinics-page .clinic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clinics-page .clinic-content {
  padding: 1.25rem 1.25rem 1.5rem;
}

.clinics-page .clinic-location {
  color: #64748b;
  margin: 0.25rem 0 0.75rem;
}

.clinics-page .specialty-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin: 4px 6px 0 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 47. Section headers accent */
.section-title {
  position: relative;
  margin-bottom: 1rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

/* 48. Stats section cards */
.stats-section {
  background: #f8fafc;
  padding: 2.5rem 0;
}
.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .stats-section .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.stats-section .stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.stats-section .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stats-section .stat-label {
  color: #475569;
  margin-top: 0.25rem;
}

/* 49. Accreditation badges */
.accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-right: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid #c7ddff;
}

/* 46. Country flags visual consistency */
.country-flag {
  width: 28px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* 50. Footer social links visuals */
.footer .footer-social {
  display: flex;
  gap: 12px;
}
.footer .footer-social .social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.footer .footer-social .social-link:hover,
.footer .footer-social .social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}
.footer .footer-social .social-link svg {
  width: 18px;
  height: 18px;
}

/* ===== How It Works Page Styles ===== */
.how-it-works-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.how-it-works-page .page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.how-it-works-page .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.how-it-works-page .page-header .container {
  position: relative;
  z-index: 2;
}

.how-it-works-page .page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.how-it-works-page .page-header p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Process Steps Section */
.process-steps {
  padding: 5rem 0;
  background: white;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, white);
  z-index: 1;
}

.process-steps .container {
  position: relative;
  z-index: 2;
}

.process-steps h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.step-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(30, 107, 184, 0.2);
}

.step-number {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(30, 107, 184, 0.3);
  z-index: 2;
}

.step-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.step-card ul {
  list-style: none;
  padding: 0;
}

.step-card li {
  color: var(--text-dark);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Services Overview Section */
.services-overview {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.services-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30,107,184,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.services-overview .container {
  position: relative;
  z-index: 2;
}

.services-overview h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 107, 184, 0.05), rgba(245, 166, 35, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(30, 107, 184, 0.2);
}

.service-item h4 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.service-item p {
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
  opacity: 0.3;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

.cta-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.cta-actions .btn-primary {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.cta-actions .btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-actions .btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .how-it-works-page .page-header h1 {
    font-size: 2.5rem;
  }
  
  .how-it-works-page .page-header p {
    font-size: 1.1rem;
  }
  
  .process-steps h2,
  .services-overview h2,
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    top: -15px;
    right: 15px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-card,
.service-item {
  animation: fadeInUp 0.6s ease forwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }
.step-card:nth-child(6) { animation-delay: 0.6s; }

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   NEWS SECTION
   ========================================== */
.news-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.news-section .section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  color: #1e6bb8;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card-date::before {
  content: "📅";
  font-size: 1rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-excerpt {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.news-card-link {
  color: #1e6bb8;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.news-card-link:hover {
  color: #155a94;
  gap: 0.75rem;
}

.news-card-link::after {
  content: "→";
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.news-card-link:hover::after {
  transform: translateX(3px);
}

.news-card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-card-category.company {
  background: #e3f2fd;
  color: #1976d2;
}

.news-card-category.medical {
  background: #f3e5f5;
  color: #7b1fa2;
}

.news-card-category.success {
  background: #e8f5e9;
  color: #388e3c;
}

/* Responsive News Section */
@media (max-width: 768px) {
  .news-section {
    padding: 60px 0;
  }
  
  .news-section .section-title {
    font-size: 2rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-card-image {
    height: 180px;
  }
}

/* ==========================================
   FLOATING CONTACT WIDGET
   ========================================== */
.floating-contact-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
  animation: slideInRight 0.5s ease;
}

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

.contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-btn::before {
  content: attr(aria-label);
  position: absolute;
  right: 70px;
  background: #2c3e50;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.contact-btn:hover::before {
  opacity: 1;
}

.contact-btn.whatsapp {
  background: #25d366;
}

.contact-btn.whatsapp:hover {
  background: #20ba5a;
}

.contact-btn.telegram {
  background: #0088cc;
}

.contact-btn.telegram:hover {
  background: #006699;
}

.contact-btn img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* Pulse animation for attention */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(37, 211, 102, 0.2);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.contact-btn.whatsapp {
  animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-contact-widget {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }
  
  .contact-btn {
    width: 50px;
    height: 50px;
  }
  
  .contact-btn img {
    width: 26px;
    height: 26px;
  }
  
  .contact-btn::before {
    display: none;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .floating-contact-widget {
    bottom: 25px;
    right: 25px;
  }
}

/* ==========================================
   HERO CAROUSEL / INFO BANNERS
   ========================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  background: white;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-height: 450px;
}

.carousel-slide.promotion {
  background: white;
  color: #2c3e50;
}

.carousel-slide.news {
  background: white;
  color: #2c3e50;
}

.carousel-slide.info {
  background: white;
  color: #2c3e50;
}

.carousel-image {
  flex: 1;
  max-width: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.carousel-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  object-fit: contain;
  object-position: center top;
  max-height: 400px;
}

.carousel-content {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 5%;
  box-sizing: border-box;
}

.carousel-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: #e3f2fd;
}

.carousel-slide.promotion .carousel-label {
  background: #f3e5f5;
  color: #7b1fa2;
}

.carousel-slide.news .carousel-label {
  background: #fce4ec;
  color: #c2185b;
}

.carousel-slide.info .carousel-label {
  background: #e1f5fe;
  color: #0277bd;
}

.carousel-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #2c3e50;
}

.carousel-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.carousel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: #1e6bb8;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.carousel-link:hover {
  background: #155a94;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 107, 184, 0.3);
}

.carousel-link::after {
  content: "→";
  font-size: 1.25rem;
}

/* Carousel Navigation Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 0;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #1e6bb8;
  width: 30px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: rgba(30, 107, 184, 0.6);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  border: 2px solid #e9ecef;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
  background: #1e6bb8;
  color: white;
  border-color: #1e6bb8;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: -20px;
}

.carousel-arrow.next {
  right: -20px;
}

/* Responsive Carousel */
@media (max-width: 968px) {
  .hero-carousel {
    overflow: hidden;
  }
  
  .carousel-slide {
    flex-direction: column;
    padding: 0;
    min-height: auto;
    gap: 0;
    position: relative;
  }
  
  .carousel-image {
    max-width: 100%;
    width: 100%;
    order: 1;
    position: relative;
    padding: 0 !important;
  }
  
  .carousel-image img {
    min-height: 250px;
    max-height: 280px;
    border-radius: 0;
    width: 100%;
    object-fit: cover;
  }
  
  .carousel-content {
    max-width: 100%;
    width: 100%;
    padding: 2rem 5%;
    order: 2;
  }
  
  .carousel-title {
    font-size: 1.5rem;
  }
  
  .carousel-arrow {
    display: none;
  }
  
  .carousel-dots {
    position: relative;
    bottom: auto;
    top: auto;
    left: auto;
    transform: none;
    background: transparent;
    padding: 1rem 0;
    border-radius: 0;
    order: 3;
  }
}

@media (max-width: 768px) {
  .carousel-content {
    padding: 1.5rem 4%;
  }
  
  .carousel-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }
  
  .carousel-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .carousel-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
  
  .carousel-link {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .carousel-image img {
    min-height: 180px;
    max-height: 200px;
  }
  
  .carousel-content {
    padding: 1.25rem 4%;
  }
  
  .carousel-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .carousel-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}