/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-svg {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo i {
  font-size: 2rem;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn i {
  font-size: 0.8rem;
}

/* Flag Emojis */
.flag-emoji {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::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="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-message {
  margin-bottom: 3rem;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-quote {
  font-size: 1.3rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid #fff;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

.hero-cta {
  margin-top: 3rem;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cta-free {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.trust-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.1) 0%,
    rgba(102, 126, 234, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(78, 205, 196, 0.4);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.trust-badge:hover::before {
  opacity: 1;
}

.trust-badge i {
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.trust-badge span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ripple Effect */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.btn-service {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-service:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Statistics Section */
.statistics-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.statistics-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="stats-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23stats-pattern)"/></svg>');
  opacity: 0.5;
}

.statistics-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.statistics-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.statistics-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.statistics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.statistic-item {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.statistic-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.statistic-item:hover::before {
  transform: scaleX(1);
}

.statistic-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.statistic-item i {
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 1rem 0;
  line-height: 1;
}

.stat-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
}

/* Animation for statistics on scroll */
.statistic-item {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

.statistics-section.animate .statistic-item {
  animation: fadeInUp 0.6s ease-out forwards;
}

.statistics-section.animate .statistic-item:nth-child(1) {
  animation-delay: 0.1s;
}

.statistics-section.animate .statistic-item:nth-child(2) {
  animation-delay: 0.2s;
}

.statistics-section.animate .statistic-item:nth-child(3) {
  animation-delay: 0.3s;
}

.statistics-section.animate .statistic-item:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Responsive */
@media (max-width: 768px) {
  .statistics-header h2 {
    font-size: 2rem;
  }

  .statistics-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .statistic-item {
    padding: 2rem 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* Media Mentions Section (Медіа про нас) */
.media-section {
  padding: 80px 0;
  background: white;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.media-section .container {
  max-width: 100%;
  padding: 0;
}

.media-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 20px;
}

.media-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.media-header p {
  font-size: 1.2rem;
  color: #666;
}

.media-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.media-carousel-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  position: relative;
  padding: 10px 0;
  margin: -10px 0;
}

.media-carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

/* Градієнтні fade по краях для плавного ефекту */
.media-carousel-container::before,
.media-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px; /* Зменшено з 100px до 40px */
  z-index: 2;
  pointer-events: none;
}

.media-carousel-container::before {
  left: 0;
  /* Більш м'який градієнт щоб не перекривати контент */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.5) 50%,
    transparent
  );
}

.media-carousel-container::after {
  right: 0;
  /* Більш м'який градієнт щоб не перекривати контент */
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.5) 50%,
    transparent
  );
}

.media-carousel {
  display: flex;
  gap: 3rem;
  padding: 30px 40px;
}

/* Навігаційні кнопки */
.media-nav-btn {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.media-nav-btn:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.media-nav-btn:active {
  transform: scale(0.95);
}

.media-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.media-nav-btn.hidden {
  display: none;
}

.media-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  /* Темніший градієнтний фон для кращої видимості білих лого */
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  min-width: 200px;
  height: 120px;
  margin: 5px; /* Запобігає обрізці тіні */
  /* Запобігаємо обрізці контенту */
  overflow: visible;
  will-change: transform;
}

.media-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  /* При hover світлішає але залишається з контрастом */
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: rgba(106, 90, 205, 0.3);
  z-index: 1;
}

.media-item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  /* Запобігаємо обрізці під час transform */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.media-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .media-header h2 {
    font-size: 2rem;
  }

  .media-carousel-wrapper {
    padding: 20px 40px;
  }

  .media-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .media-item {
    min-width: 150px;
    height: 100px;
    padding: 1rem 1.5rem;
  }

  .media-item img {
    max-height: 60px;
  }

  .media-carousel {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .media-carousel-wrapper {
    padding: 20px 10px;
  }

  .media-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Auth Section */
.auth-section {
  padding: 80px 0;
  background: white;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  text-align: center;
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666;
  font-size: 1.1rem;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  background: white;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
  border-color: #4285f4;
  background: #f8f9ff;
}

.apple-btn:hover {
  border-color: #000;
  background: #f8f8f8;
}

.auth-btn i {
  font-size: 1.2rem;
}

.google-btn i {
  color: #4285f4;
}

.apple-btn i {
  color: #000;
}

/* Form Section */
.form-section {
  padding: 80px 0;
  background: white;
}

/* Terms and Privacy Policy */
.terms-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.terms-checkbox input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.terms-label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a5568;
  cursor: pointer;
  margin: 0;
}

.terms-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.terms-link:hover {
  color: #5a67d8;
  border-bottom-color: #5a67d8;
}

.terms-checkbox:has(input:checked) .terms-label {
  color: #2d3748;
}

.terms-checkbox:has(input:checked) .terms-link {
  color: #4c51bf;
}

/* Terms error state */
.terms-section.error {
  border-color: #e53e3e;
  background: #fef5f5;
}

.terms-section.error .terms-checkbox input[type="checkbox"] {
  accent-color: #e53e3e;
}

/* Final terms section styling */
.final-terms {
  background: #f0f9ff;
  border-color: #0ea5e9;
  margin-top: 2rem;
}

.final-terms .terms-label {
  font-weight: 500;
  color: #1e40af;
}

.final-terms .terms-link {
  color: #0ea5e9;
}

.final-terms .terms-link:hover {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

/* Final terms error state */
.final-terms.error {
  border-color: #e53e3e;
  background: #fef5f5;
}

.final-terms.error .terms-checkbox input[type="checkbox"] {
  accent-color: #e53e3e;
}

.form-container {
  max-width: 800px;
  margin: 100px auto 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  opacity: 0.9;
}

/* Progress Bar */
.progress-container {
  margin: 2rem 0;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
  border-radius: 4px;
  width: 14.28%; /* 1/7 */
  transition: width 0.5s ease;
}

.progress-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Step Navigation Dots */
.step-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.step-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.step-dot:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.step-dot.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.step-dot.completed {
  background: #4caf50;
  border-color: #4caf50;
}

.step-dot.completed i {
  color: white;
}

.step-dot i {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.step-dot.active i {
  color: white;
}

/* Auto-save Indicator */
.auto-save-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.auto-save-indicator.show {
  transform: translateY(0);
  opacity: 1;
}

.auto-save-indicator i {
  font-size: 1rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Form Steps */
.will-form {
  padding: 0;
}

.form-step {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
  display: block;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

/* Success Modal Animations */
@keyframes checkmarkCircle {
  0% {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
  }
  100% {
    stroke-dasharray: 166;
    stroke-dashoffset: 0;
  }
}

@keyframes checkmarkCheck {
  0% {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
  }
  100% {
    stroke-dasharray: 48;
    stroke-dashoffset: 0;
  }
}

.success-checkmark-circle {
  animation: checkmarkCircle 0.6s ease-in-out;
}

.success-checkmark-check {
  animation: checkmarkCheck 0.3s 0.6s ease-in-out forwards;
}

/* Success Modal Styles */
.success-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 999999 !important;
  animation: fadeIn 0.3s ease-in-out;
  pointer-events: auto !important;
}

.success-modal-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 600px;
  margin: 20px;
  animation: slideUp 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .success-modal-content {
    padding: 2rem;
    margin: 15px;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

.bounce {
  animation: bounce 1s;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Hide elements before animation starts */
body.js-loaded .scroll-animate:not(.animate) {
  opacity: 0;
  transform: translateY(30px);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f3f4;
}

.step-header h3 {
  font-size: 1.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-header h3 i {
  color: #667eea;
}

.step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
  color: #667eea;
}

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

/* Field Validation States */
.form-group.valid input,
.form-group.valid textarea {
  border-color: #4caf50;
  background: #f8fff8;
}

.form-group.valid::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #4caf50;
  font-size: 1rem;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #e74c3c;
  background: #fff8f8;
}

/* Character Counter */
.char-counter {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 0.8rem;
  color: #666;
}

.char-counter.warning {
  color: #f39c12;
}

.char-counter.error {
  color: #e74c3c;
}

/* Info Box */
.info-box {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.info-box p {
  margin: 0;
  color: #1976d2;
  font-size: 0.95rem;
}

/* Service Box */
.service-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #4ecdc4;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.service-info h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-info h4 i {
  color: #4ecdc4;
}

.service-info p {
  margin-bottom: 0.5rem;
  color: #555;
}

.service-note {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
}

/* Step Buttons */
.step-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e5e9;
}

/* FAQ Section */
.faq-section {
  background: #f8fafc;
  padding: 80px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.faq-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e1e5e9;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #667eea;
}

.faq-item.active {
  border-color: #667eea;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  gap: 1rem;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-item.active .faq-question {
  background: rgba(102, 126, 234, 0.05);
  border-bottom: 1px solid #e1e5e9;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  padding-right: 0.5rem;
}

.faq-question i {
  color: #667eea;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #5a67d8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Збільшено для більших відповідей */
  padding-top: 0.5rem;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-logo i {
  color: #4ecdc4;
  font-size: 1.8rem;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: #4ecdc4;
  color: #2c3e50;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: #4ecdc4;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.footer-column a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #4ecdc4;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copyright p {
  margin: 0;
  color: #bdc3c7;
  font-size: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.8rem !important;
  color: #95a5a6 !important;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #34495e;
  color: #bdc3c7;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #4ecdc4;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Header Mobile */
  .header .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.3rem;
    gap: 8px;
  }

  .logo-svg {
    width: 40px;
    height: 40px;
  }

  .logo i {
    font-size: 1.5rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }

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

  .hero-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .hero-quote {
    font-size: 1.1rem;
    padding: 1rem;
    margin: 1.5rem 0;
  }

  /* Trust Badges Mobile */
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .trust-badge {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .trust-badge i {
    font-size: 2rem;
  }

  /* Statistics Mobile */
  .statistics-section {
    padding: 60px 0;
  }

  .statistics-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .statistic-item {
    padding: 2rem 1rem;
    text-align: center;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-title {
    font-size: 1rem;
  }

  .stat-description {
    font-size: 0.9rem;
  }

  /* Auth Section Mobile */
  .auth-section {
    padding: 60px 0;
  }

  .auth-container {
    max-width: 100%;
    padding: 2rem;
    margin: 0 10px;
  }

  .auth-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }

  /* Form Mobile */
  .form-section {
    padding: 60px 0;
  }

  .form-container {
    margin: 20px 10px 0 10px;
    border-radius: 15px;
    max-width: none;
  }

  .form-header {
    padding: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .progress-container {
    margin: 1.5rem 0;
  }

  .step-dots {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .step-dot {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .step-dot i {
    font-size: 1rem;
  }

  .form-step {
    padding: 1.5rem;
  }

  .step-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .step-header h3 {
    font-size: 1.3rem;
  }

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

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

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea {
    padding: 12px 15px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }

  textarea {
    min-height: 100px;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1rem;
  }

  .info-box {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .service-box {
    padding: 1.5rem;
  }

  .terms-section {
    margin: 1.5rem 0;
  }

  .terms-label {
    font-size: 0.9rem;
  }

  /* FAQ Mobile */
  .faq-section {
    padding: 60px 0;
  }

  .faq-header h2 {
    font-size: 2rem;
  }

  .faq-header p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .faq-container {
    padding: 0 10px;
  }

  .faq-item {
    border-radius: 12px;
    margin-bottom: 0.8rem;
  }

  .faq-question {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .faq-question h3 {
    font-size: 1rem;
    line-height: 1.3;
    padding-right: 0.3rem;
  }

  .faq-question i {
    font-size: 1.1rem;
  }

  .faq-answer {
    padding: 0 1.2rem 1.2rem;
  }

  .faq-answer p {
    padding: 0 1.2rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .faq-item.active .faq-answer {
    max-height: 600px; /* Більше місця на мобіле */
  }

  /* Footer Mobile */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-social {
    order: -1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  /* Header Extra Mobile */
  .header {
    padding: 0.8rem 0;
  }

  .header .container {
    padding: 0 10px;
  }

  .logo {
    font-size: 1.1rem;
    gap: 6px;
  }

  .logo-svg {
    width: 35px;
    height: 35px;
  }

  .logo i {
    font-size: 1.3rem;
  }

  .logo span {
    display: inline; /* Показуємо текст на всіх екранах */
    font-size: 0.95rem; /* Трохи менший шрифт для дуже маленьких екранів */
  }

  /* Hero Extra Mobile */
  .hero {
    padding: 90px 0 50px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    padding: 0 5px;
  }

  .hero-text {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding: 0 5px;
  }

  .hero-quote {
    font-size: 1rem;
    padding: 0.8rem;
    margin: 1rem 5px;
  }

  .cta-text {
    font-size: 1rem;
    padding: 0 5px;
  }

  .cta-free {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Trust Badges Extra Mobile */
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .trust-badge {
    padding: 0.8rem;
  }

  /* Statistics Extra Mobile */
  .statistics-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .statistic-item {
    padding: 1.5rem 1rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-title {
    font-size: 0.9rem;
  }

  .stat-description {
    font-size: 0.8rem;
  }

  /* Auth Extra Mobile */
  .auth-container {
    padding: 1.5rem;
    margin: 0 5px;
  }

  .auth-header h2 {
    font-size: 1.3rem;
  }

  .auth-header p {
    font-size: 0.9rem;
  }

  /* Form Extra Mobile */
  .form-container {
    margin: 15px 5px 0 5px;
    border-radius: 12px;
  }

  .form-header {
    padding: 1rem;
  }

  .form-header h2 {
    font-size: 1.3rem;
  }

  .form-header p {
    font-size: 0.9rem;
  }

  .progress-text {
    font-size: 0.9rem;
  }

  .step-dots {
    margin-top: 1rem;
  }

  .step-dot {
    width: 35px;
    height: 35px;
  }

  .step-dot i {
    font-size: 0.9rem;
  }

  .form-step {
    padding: 1rem;
  }

  .step-header h3 {
    font-size: 1.1rem;
  }

  .step-number {
    font-size: 0.8rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea {
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 6px;
  }

  textarea {
    min-height: 80px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .info-box {
    padding: 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .service-box {
    padding: 1rem;
  }

  .service-box h4 {
    font-size: 1rem;
  }

  .service-box p {
    font-size: 0.85rem;
  }

  .btn-service {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .terms-section {
    margin: 1rem 0;
  }

  .terms-label {
    font-size: 0.8rem;
  }

  /* FAQ Extra Mobile */
  .faq-section {
    padding: 50px 0;
  }

  .faq-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .faq-header p {
    font-size: 0.9rem;
    padding: 0 5px;
  }

  .faq-container {
    padding: 0 5px;
  }

  .faq-item {
    margin-bottom: 0.6rem;
    border-radius: 10px;
  }

  .faq-question {
    padding: 1rem;
    gap: 0.6rem;
  }

  .faq-question h3 {
    font-size: 0.95rem;
    line-height: 1.25;
    padding-right: 0.2rem;
  }

  .faq-question i {
    font-size: 1rem;
    margin-top: 1px;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }

  .faq-answer p {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .faq-item.active .faq-answer {
    max-height: 700px; /* Ще більше місця на дуже маленьких екранах */
    padding-top: 0.3rem;
  }

  /* Footer Extra Mobile */
  .footer {
    padding: 30px 0 15px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
    font-size: 1.1rem;
  }

  .footer-description {
    font-size: 0.85rem;
  }

  .footer-badges {
    justify-content: center;
  }

  .badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .footer-links {
    margin-top: 1.5rem;
  }

  .footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .footer-column ul li a {
    font-size: 0.8rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
    text-align: center;
  }

  .footer-disclaimer {
    font-size: 0.75rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Success Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #4caf50;
  stroke-miterlimit: 10;
  margin: 0 auto;
  box-shadow: inset 0px 0px 0px #4caf50;
  animation:
    fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4caf50;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

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

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #4caf50;
  }
}

/* Language Switcher Responsive */
@media (max-width: 768px) {
  .language-switcher {
    gap: 0.25rem;
  }

  .lang-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .lang-btn span:not(.flag-emoji) {
    display: none;
  }

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

@media (max-width: 480px) {
  .header .container {
    padding: 0 10px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .language-switcher {
    gap: 0.2rem;
  }

  .lang-btn {
    padding: 5px 6px;
    font-size: 0.75rem;
  }

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

/* Mobile-specific styles for modals and interactive elements */
@media (max-width: 768px) {
  /* Modal Responsive */
  .modal-overlay {
    padding: 10px;
    align-items: flex-start;
    padding-top: 50px;
  }

  .modal-overlay > div {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 100px) !important;
    margin: 0 !important;
    border-radius: 15px !important;
  }

  /* Success Modal Mobile */
  .success-modal .success-checkmark {
    width: 60px;
    height: 60px;
  }

  .success-modal h2 {
    font-size: 1.3rem !important;
  }

  .success-modal p {
    font-size: 0.9rem !important;
  }

  .success-modal button {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Service Modal Mobile */
  .service-modal h2 {
    font-size: 1.3rem !important;
  }

  .service-modal p {
    font-size: 0.9rem !important;
  }

  .service-modal button {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Digitization Form Modal Mobile */
  .modal-overlay form {
    padding: 0 !important;
  }

  .modal-overlay form > div {
    margin-bottom: 1rem !important;
  }

  .modal-overlay form label {
    font-size: 0.9rem !important;
    margin-bottom: 0.3rem !important;
  }

  .modal-overlay form input,
  .modal-overlay form textarea {
    padding: 10px 12px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
  }

  .modal-overlay form button {
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }

  /* Toast Messages Mobile */
  .toast {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: calc(100vw - 20px) !important;
    padding: 12px 15px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
  }

  .toast i {
    font-size: 1.1rem !important;
  }

  /* Back to Top Button Mobile */
  .back-to-top {
    width: 45px !important;
    height: 45px !important;
    bottom: 15px !important;
    right: 15px !important;
    font-size: 1.1rem !important;
  }

  /* Auto Save Indicator Mobile */
  .auto-save-indicator {
    bottom: 15px !important;
    left: 15px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }

  /* Page Loader Mobile */
  .page-loader-content {
    padding: 2rem !important;
    max-width: 90vw !important;
  }

  .page-loader-text {
    font-size: 1.2rem !important;
  }

  .page-loader-subtext {
    font-size: 0.9rem !important;
  }

  .spinner {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens modal adjustments */
  .modal-overlay > div {
    padding: 1.5rem !important;
    font-size: 0.9rem !important;
  }

  .modal-overlay h2 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
  }

  .modal-overlay button {
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
  }

  /* Toast Extra Mobile */
  .toast {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }

  /* Back to Top Extra Mobile */
  .back-to-top {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
  /* Larger touch targets */
  .lang-btn,
  .btn-primary,
  .btn-secondary,
  .auth-btn,
  .step-dot,
  .faq-question {
    min-height: 44px; /* iOS recommendation */
  }

  /* FAQ Touch improvements */
  .faq-question {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    tap-highlight-color: rgba(102, 126, 234, 0.2);
  }

  .faq-question:active {
    background: #e2e8f0 !important;
    transform: scale(0.99);
  }

  /* Better touch response */
  .lang-btn:active,
  .btn-primary:active,
  .btn-secondary:active,
  .auth-btn:active {
    transform: scale(0.98);
  }

  /* Prevent text selection on buttons */
  .lang-btn,
  .btn-primary,
  .btn-secondary,
  .auth-btn,
  .step-dot {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  /* Better input focus styles */
  input:focus,
  textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
  }

  /* Smooth scrolling on iOS */
  * {
    -webkit-overflow-scrolling: touch;
  }
}
