@import "https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700&display=swap";

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  /* Saudi Arabia Colors */
  --primary-color: #006c35;
  --primary-dark: #004d26;
  --primary-light: #00843d;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --accent-gold: #d4af37;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family:
    "Alexandria",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  gap: var(--spacing-lg);
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--primary-color);
}

.nav-links a:not(.btn).active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-base);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

/* Navigation CTA Button */
.nav-cta {
  padding: 0.625rem 1.5rem !important;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-cta svg {
  width: 18px;
  height: 18px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-2xl) + 60px) 0 var(--spacing-2xl);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 108, 53, 0.05) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  z-index: -1;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 108, 53, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero-background::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content {
  text-align: right;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 108, 53, 0.1);
  color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(0, 108, 53, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  line-height: 1.8;
  font-weight: 900;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
  direction: rtl;
}

/* Hero Statistics */
.hero-stats {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
  direction: rtl;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  background: white;
  padding: var(--spacing-sm);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stat-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Illustration */
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-card {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.illustration-card svg,
.illustration-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Sections */
section {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Why Us */
.why-us {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
}

.feature-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}
.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: linear-gradient(
    135deg,
    rgba(0, 108, 53, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.product-icon svg {
  width: 40px;
  height: 40px;
}

.product-type {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Pricing */
.pricing {
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.pricing-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 3px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-5px);
}

.featured-badge {
  position: absolute;
  top: -15px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-dark)
  );
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.pricing-card h3 {
  font-size: 22px;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.pricing-price {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.pricing-price .currency {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
}

.pricing-price .period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* Claims */
.claims-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.claim-step {
  text-align: center;
  padding: var(--spacing-md);
  position: relative;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

/* Connecting line between steps */
.claim-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -50%;
  width: 50%;
  height: 4px;
  background: var(--primary-color);
  z-index: 0;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.claim-step p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Quote Section Redesign */
.quote-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #004d26 0%, #006c35 100%);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Info Side */
.quote-info {
  color: white;
  text-align: right;
}

.quote-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: white !important;
  line-height: 1.2;
}

.quote-intro {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-2xl);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  flex-direction: row;
}

.contact-item:hover {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-white);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-details {
  text-align: right;
}

.contact-details h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-bottom: 2px;
  color: white !important;
}

.contact-details p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Form Side */
.quote-form-wrapper {
  background: white;
  padding: var(--spacing-md);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.quote-form h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.form-group {
  margin-bottom: var(--spacing-md);
  text-align: right;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  margin-right: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xl);
}

.form-actions .btn {
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 108, 53, 0.3);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover,
.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.form-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-lg);
  line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .quote-info {
    text-align: center;
  }

  .contact-item {
    justify-content: flex-start;
  }

  .contact-details {
    text-align: right;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: none;
  border: none;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  transition: all var(--transition-base);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.footer-brand p {
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    gap: var(--spacing-md);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: var(--spacing-sm) 0;
  }

  .hero {
    min-height: 80vh;
    padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-xl);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-illustration {
    order: 1;
  }

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
  }
  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid,
  .products-grid,
  .pricing-grid,
  .claims-steps {
    grid-template-columns: 1fr;
  }

  /* Hide connecting lines on mobile */
  .claim-step:not(:last-child)::after {
    display: none;
  }

  /* Quote Section - Stack vertically on mobile */
  .quote-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .quote-info {
    text-align: center;
  }

  .contact-item {
    flex-direction: row;
    justify-content: center;
  }

  .contact-details {
    text-align: left;
  }

  /* Form Row - Stack vertically on mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 var(--spacing-sm);
  }
  section {
    padding: var(--spacing-xl) 0;
  }
}

/* Animations */
/* Multi-step Form Styles */
.form-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding: 0 var(--spacing-md);
}

.form-steps-indicator::before {
  content: "";
  position: absolute;
  top: 15px;
  left: var(--spacing-xl);
  right: var(--spacing-xl);
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.step-indicator {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.step-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-indicator.active .step-num {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1);
}

.step-indicator.active .step-text {
  color: var(--primary-color);
}

.step-indicator.completed .step-num {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.payment-method {
  cursor: pointer;
}

.payment-method input {
  display: none;
}

.method-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.method-card img {
  max-width: 100%;
  height: 24px;
  object-fit: contain;
}

.payment-method input:checked + .method-card {
  border-color: var(--primary-color);
  background: rgba(0, 108, 53, 0.05);
  box-shadow: 0 4px 12px rgba(0, 108, 53, 0.1);
}

/* Form Actions adjustment for multi-step */
.form-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

.btn-secondary.prev-step {
  background: #f1f5f9;
  color: var(--text-primary);
  border: none;
  font-size: 1.1rem;
}

.btn-secondary.prev-step:hover {
  background: #e2e8f0;
}

@media (max-width: 576px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .step-text {
    display: none;
  }
  .form-steps-indicator::before {
    top: 15px;
  }
}
/* Validation Styles */
.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-group input.error:focus,
.form-group select.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
  display: block;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Price List Cards (Step 3) */
.selected-product-summary {
  background: rgba(0, 108, 53, 0.05);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border-right: 4px solid var(--primary-color);
  font-size: 1.1rem;
}

.company-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.company-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.company-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px dashed var(--border-color);
}

.company-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.insurance-type-display {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.company-logo-placeholder {
  background: var(--bg-light);
  width: 80px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.feature-item:hover {
  background: rgba(0, 108, 53, 0.05);
}

.feature-item.mandatory {
  cursor: default;
  opacity: 0.8;
}

.feature-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.feature-name {
  flex: 1;
  font-size: 0.95rem;
}

.feature-price {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.total-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.total-price .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.total-price .price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
}

.total-price .currency {
  font-weight: 600;
  color: var(--primary-color);
}

.select-company {
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
}

/* Order Summary (Step 4) */
.order-summary-card {
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.order-summary-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.summary-row span {
  color: var(--text-secondary);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--bg-light);
  font-size: 1.25rem;
}

.summary-total strong {
  color: var(--primary-color);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .card-footer {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
    text-align: center;
  }

  .total-price {
    justify-content: center;
  }
}
/* Insurance Type Toggle (Step 3) */
.insurance-type-toggle {
  display: flex;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.toggle-option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-option span {
  display: block;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.toggle-option input:checked + span {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.toggle-option:hover span:not(input:checked + span) {
  background: rgba(0, 108, 53, 0.05);
  color: var(--primary-color);
}

/* Loading Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

.loader-overlay.active {
  display: flex;
}

.loader-content {
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

.premium-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 108, 53, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 108, 53, 0.1);
}

.loader-content p {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
