/* =========================================
   Splash Screen & Preloader
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader-content {
  text-align: center;
  position: relative;
}

.preloader-logo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  overflow: hidden;
}

.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8);
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whipped-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  background-color: var(--white);
  z-index: 2;
}

.preloader-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  opacity: 0;
  transform: translateY(20px);
  margin-top: 10px;
  transition: all 0.8s ease 0.5s;
}

.preloader-progress {
  width: 150px;
  height: 3px;
  background: #edf2f7;
  margin: 30px auto 0;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gold-color);
  transition: width 4s linear;
}

/* Splash Animations */
.loading #preloader .preloader-logo {
  opacity: 1;
  transform: scale(1);
}

.loading #preloader .preloader-title {
  opacity: 1;
  transform: translateY(0);
}

.loading #preloader .preloader-progress {
  opacity: 1;
}

/* Whipped Slide Effect */
@keyframes whipedSlide {
  0% {
    left: -100%;
  }

  50% {
    left: 0%;
  }

  100% {
    left: 100%;
  }
}

.whipped-anim {
  animation: whipedSlide 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

body.loading {
  overflow: hidden;
}

/* Logo Transition State */
.logo-transition-active {
  position: fixed !important;
  z-index: 10000 !important;
  transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1) !important;
  pointer-events: none;
}

:root {
  --primary-color: #064e3b; /* Deep Forest Green */
  --primary-light: #10b981; /* Vibrant Emerald */
  --gold-color: #c5a059;
  --gold-hover: #b38e4a;
  --accent-color: #ecfdf5; /* Very Light Mint */
  --text-color: #1a2e26; /* Dark Greenish Charcoal */
  --text-light: #4b6358;
  --bg-light: #f7fdfa; /* Off-white Mint tint */
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --box-shadow: 0 20px 40px rgba(6, 78, 59, 0.08);
  --box-shadow-hover: 0 30px 60px rgba(6, 78, 59, 0.15);
  --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --green-gradient: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", "Tajawal", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography Helpers */
.gold-text {
  color: var(--gold-color);
}

.text-center {
  text-align: center !important;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background-color: var(--gold-color);
  margin: 0 auto 30px auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  /* Oval Design */
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 8px;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

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

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

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

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

.btn-navy {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 25, 47, 0.3);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  padding: 14px 35px;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: rgba(255, 255, 255, 0.88);
  /* Not pure white, slightly translucent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 100px;
  /* Perfect Pill */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* More pronounced shadow */
}

.navbar.scrolled {
  top: 10px;
  width: 85%;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.navbar.scrolled .nav-links li a,
.navbar.scrolled .nav-actions .btn-login,
.navbar.scrolled .logo-text {
  color: var(--primary-color) !important;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  /* Changed from white to slate */
}

.nav-links li a {
  color: var(--primary-color);
  /* Changed from white to slate */
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--white);
  /* Changed from primary-color */
  min-width: 250px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 20px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  border: 1px solid rgba(197, 160, 89, 0.1);
}

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

.dropdown-menu li a {
  padding: 12px 25px;
  display: block;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f7fafc;
  color: var(--gold-color);
  padding-right: 35px;
}

.dropdown-header {
  padding: 8px 20px 5px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-color);
  text-transform: uppercase;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.dropdown-header {
  padding: 5px 20px 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
}

.dropdown-divider {
  height: 1px;
  background-color: #eee;
  margin: 10px 0;
}

.dropdown-scroll-list {
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-scroll-list::-webkit-scrollbar {
  width: 6px;
}

.dropdown-scroll-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.dropdown-scroll-list::-webkit-scrollbar-thumb {
  background: var(--gold-color);
  border-radius: 10px;
}

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

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color) !important;
  /* Deep Navy for brand visibility */
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--primary-color) !important;
  font-weight: 700;
  position: relative;
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--gold-color) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-actions .btn-outline-light {
  background-color: var(--primary-color) !important;
  /* Deep Forest Green */
  border-color: var(--primary-color) !important;
  color: white !important;
}

.nav-actions .btn-outline-light:hover {
  background-color: var(--gold-color) !important;
  border-color: var(--gold-color) !important;
}

.hamburger {
  display: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--white);
  overflow: hidden;
}

.hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/libya-hero-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
  backdrop-filter: blur(8px);
  /* Increased "مضابة" (blur) */
  -webkit-backdrop-filter: blur(8px);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title {
  font-size: 3.8rem;
  /* Slightly smaller than 4.5rem */
  font-weight: 900;
  color: #ffffff;
  /* Whitened as requested */
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  /* Premium effect */
  animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 45px;
  font-weight: 400;
  max-width: 550px;
  animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

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

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

/* =========================================
   Why Us Section
   ========================================= */
.why-us {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  padding: 45px 35px;
  border-radius: 40px;
  /* Oval Design */
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  border: 1px solid rgba(197, 160, 89, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--gold-color), #f3e5c9);
  transition: var(--transition);
  opacity: 0.05;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-light);
  box-shadow: var(--box-shadow-hover);
}

.feature-card:hover::before {
  height: 100%;
  opacity: 0.1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background: var(--green-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

/* =========================================
   Services Section
   ========================================= */
.services {
  padding: 100px 0;
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  border-radius: 35px;
  /* Oval Design */
  overflow: hidden;
  height: 350px;
  display: block;
}

.service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(26, 54, 93, 0.9) 0%,
      rgba(26, 54, 93, 0.3) 100%);
  transition: var(--transition);
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-card:hover .service-overlay {
  background: linear-gradient(to top,
      rgba(6, 78, 59, 0.95) 0%,
      rgba(16, 185, 129, 0.4) 100%);
}

.service-content {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 30px;
  color: var(--white);
  z-index: 2;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-5px);
}

.service-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  max-width: 90%;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.service-card:hover .read-more {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   All Insurances Section
   ========================================= */
.all-insurances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 50px auto 0;
}

.insurance-item {
  padding: 30px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.insurance-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-color);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.insurance-item i {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.insurance-item:hover i {
  transform: scale(1.1);
}

.insurance-item h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================
   Health Insurance
   ========================================= */
.health-insurance {
  padding: 100px 0;
  background-color: var(--white);
}

.health-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.health-content {
  flex: 1;
}

.tag {
  display: inline-block;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--gold-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.health-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.health-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.health-features {
  margin-bottom: 40px;
}

.health-features li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-color);
  font-weight: 500;
}

.health-features li i {
  color: var(--gold-color);
  font-size: 1.2rem;
}

/* =========================================
   Health Packages Section
   ========================================= */
.health-packages {
  padding: 120px 0;
  background-color: #f8fafc;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
}

.package-card {
  background: var(--white);
  padding: 60px 40px;
  border-radius: 40px;
  text-align: center;
  border: 1px solid rgba(197, 160, 89, 0.1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.package-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-color: var(--gold-color);
}

.package-card.popular {
  transform: scale(1.08);
  border: 2px solid var(--gold-color);
  z-index: 2;
}

.package-card.popular:hover {
  transform: scale(1.08) translateY(-15px);
}

.package-tag {
  position: absolute;
  top: 30px;
  right: -35px;
  background: var(--gold-color);
  color: var(--white);
  padding: 8px 45px;
  transform: rotate(45deg);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.package-icon {
  width: 85px;
  height: 85px;
  background: #fdf2f2;
  color: var(--gold-color);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 35px;
  transition: all 0.5s ease;
}

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

.package-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.package-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.package-list {
  text-align: right;
  margin-bottom: 40px;
  padding: 0;
  display: block;
  /* Ensure it behaves as a container */
}

.package-list li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.package-list li i {
  color: #38a169;
  font-size: 1rem;
}

/* =========================================
   App / Mobile Mockup Section
   ========================================= */
.app-section {
  padding: 100px 0;
  background-color: var(--bg-light);
  overflow: hidden;
}

.app-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.app-info {
  flex: 1;
  padding-right: 20px;
}

.app-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b8089;
  /* Teal like color from image */
  line-height: 1.4;
  margin-bottom: 20px;
}

.app-subtitle {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 40px;
  font-weight: 700;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.app-feature-item h4 {
  font-size: 1.2rem;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-weight: 700;
}

.app-feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* The Mockup Frame */
.app-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 320px;
  height: 650px;
  background: #ffffff;
  border-radius: 55px;
  /* Premium Oval */
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px #edf2f7,
    0 40px 100px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  border: 1px solid #e2e8f0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 45px;
  overflow: hidden;
  position: relative;
  border: 1px solid #f1f5f9;
  /* Basic subtle background styling matching the app */
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(242, 247, 255, 1) 100%);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(40px);
}

.phone-screen::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(50px);
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: black;
  border-radius: 20px;
  z-index: 20;
}

.app-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 110px 20px 30px;
  display: flex;
  flex-direction: column;
  z-index: 15;
}

.app-logo-small {
  text-align: center;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 20;
  margin-top: 40px;
}

.app-logo-small i {
  color: var(--accent-blue);
  display: block;
  font-size: 2rem;
  margin-bottom: 5px;
}

.doc-status {
  background: #f0fdf4;
  color: #16a34a;
  text-align: center;
  padding: 8px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1px solid #bbf7d0;
  position: absolute;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
}

.form-mockup {
  flex: 1;
}

.form-group.row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.form-group.row-flex label {
  font-size: 0.75rem;
  color: #333;
  font-weight: 600;
}

.input-line {
  flex: 1;
  height: 26px;
  border: 1px solid #94a3b8;
  border-radius: 13px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.app-slogan {
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 20px;
}

.app-slogan small {
  font-size: 0.6rem;
  font-weight: normal;
  color: #64748b;
}

.mockup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
}

.m-btn {
  flex: 1;
  padding: 10px 5px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}

.btn-blue {
  background: var(--primary-color) !important;
  /* Deep Navy */
  color: white !important;
  border: none;
}

.btn-blue:hover {
  background: var(--gold-color) !important;
  transform: translateY(-2px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(197, 160, 89, 0.4);
  top: 50px;
  right: -50px;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(10, 25, 47, 0.2);
  bottom: -20px;
  left: 20px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 100px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--gold-color);
  transform: translateY(-3px);
}

.footer h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--gold-color);
}

.footer-contact h3 {
  color: var(--white);
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--gold-color);
  padding-right: 5px;
}

.contact-info li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--white);
  align-items: flex-start;
}

.contact-info i {
  color: var(--gold-color);
  font-size: 1.2rem;
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  transition: var(--transition);
  color: #cbd5e1;
}

.footer-bottom-links a:hover {
  color: var(--gold-color) !important;
}

/* =========================================
   Floating Buttons
   ========================================= */
.floating-btn {
  position: fixed;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.chatbot-btn {
  bottom: 30px;
  background-color: var(--gold-color);
}

.chatbot-btn:hover {
  background-color: var(--gold-hover);
}

.report-btn {
  bottom: 100px;
  background-color: #e63946;
  /* Red for accident report */
}

.report-btn:hover {
  background-color: #d62828;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero {
    padding-top: 140px;
    /* Prevent header overlap on mobile */
  }

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

  .health-flex,
  .app-container {
    flex-direction: column;
  }

  .app-info {
    padding-right: 0;
    text-align: center;
  }

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

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
    /* simple hidden for mobile, can add JS menu later */
  }

  .hamburger {
    display: block;
  }

  .features-grid,
  .services-grid,
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .package-card.popular {
    transform: none;
    margin: 20px 0;
  }

  .package-card.popular:hover {
    transform: translateY(-10px);
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .app-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding-top: 120px !important;
  }
}

/* =========================================
   Quote Request Modal (App-like)
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 55, 72, 0.2);
  /* Light navy tinted backdrop */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.modal-content {
  width: 90%;
  max-width: 500px;
  background: #ffffff;
  padding: 45px;
  border-radius: 40px;
  /* Oval Modal */
  position: relative;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.quote-modal {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(50px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  position: relative;
}

.modal-overlay.active .quote-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  /* Fixed for RTL */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: #fdf2f2;
  color: #e53e3e;
  /* Red for close */
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(229, 62, 62, 0.2);
  border-color: rgba(229, 62, 62, 0.2);
}

.modal-header {
  background: var(--white);
  padding: 40px 30px 20px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.modal-header h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-color);
}

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

.modal-close {
  left: 20px;
  top: 20px;
  width: 35px;
  height: 35px;
  background: #f7fafc;
  border: 1px solid #edf2f7;
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-body {
  padding: 40px;
  max-height: 75vh;
  overflow-y: auto;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fcfdfd;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--gold-color);
  border-radius: 10px;
}

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

.app-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.app-input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.app-input:focus {
  outline: none;
  border-color: var(--gold-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

textarea.app-input {
  resize: vertical;
  min-height: 100px;
}

select.app-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 15px center;
  /* RTL friendly */
  background-size: 15px;
  padding-left: 40px;
}

.btn-submit-app {
  width: 100%;
  padding: 16px;
  background: var(--gold-color);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Accident Modal Buttons Refinement */
.btn-location {
  background: #f8fafc;
  color: var(--primary-color);
  border: 2px solid #e2e8f0;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-location:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 54, 93, 0.2);
}

.btn-submit-report {
  width: 100%;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.btn-submit-report:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.4);
  filter: brightness(1.1);
}

.upload-area {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: #f1f5f9;
}

.upload-area i {
  font-size: 2.5rem;
  color: #64748b;
  margin-bottom: 12px;
  display: block;
}

.upload-text {
  color: #475569;
  font-weight: 500;
}

.success-message {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-message i {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 15px;
}

.success-message h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.honeypot-field {
  display: none !important;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 140px !important;
  }
}

/* Chatbot Popup */
.chatbot-popup {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 320px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 2000;
  overflow: hidden;
  animation: chatbotFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-popup.active {
  display: flex;
}

.chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chatbot-body {
  padding: 20px;
  text-align: center;
}

.chatbot-message {
  background: #f1f5f9;
  padding: 20px;
  border-radius: 15px;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

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

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

@media (max-width: 576px) {
  .chatbot-popup {
    left: 20px;
    right: 20px;
    width: auto;
    bottom: 90px;
  }
}