@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
/* Header Styles */
.header {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  height: var(--header-height);
  background-color: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 50px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
  margin: 0 15px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.dropdown-icon {
  margin-right: 0.3rem;
  width: 12px;
  height: 12px;
}

/* Fixed: corrected LTR/RTL for dropdown icon margins */
html[dir="ltr"] .dropdown-icon {
  margin-right: 0;
  margin-left: 0.3rem;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.language-switcher:hover {
  opacity: 0.8;
}

.language-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.language-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Fixed: language icon RTL/LTR margin handling */
html[dir="rtl"] .language-icon {
  margin-right: 0.5rem;
  margin-left: 0;
}

html[dir="ltr"] .language-icon {
  margin-right: 0.5rem;
  margin-left: 0;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.service-section {
  padding: 160px 20px 60px;
  background-color: #fdfdfd;
  color: #003b6f;
  position: relative;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.service-icon img {
  max-width: 180px;
}

.service-text {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 2;
  max-width: 60%; /* تحديد العرض الأقصى للنص لإفساح المجال للأيقونة */
}

/* توجيه النص حسب اتجاه الصفحة */
html[dir="rtl"] .service-text {
  margin-left: auto;
  margin-right: 0;
}

html[dir="ltr"] .service-text {
  margin-right: auto;
  margin-left: 0;
}

.service-text h2 {
  color: #00579d;
  font-size: 2rem;
  margin-bottom: 15px;
}

.service-text h3 {
  margin-top: 30px;
  font-size: 1.4rem;
  color: #00579d;
}

.service-text p,
.service-description {
  font-size: 1.05rem;
  line-height: 1.8;
}

.service-description {
  font-size: 22px;
  color: #0056b3;
  line-height: 1.9;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.service-list li {
  margin: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #003b6f;
  font-size: 1rem;
}

.service-list li::before {
  content: "☑";
  position: absolute;
  left: 0;
  color: #00579d;
  font-size: 1.1rem;
}

/* Fixed: text alignment based on document direction */
.lang-align {
  text-align: right;
}

html[dir="rtl"] .lang-align {
  text-align: right;
}

html[dir="ltr"] .lang-align {
  text-align: left;
}


/* Title alignment */
.service-title-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

/* Fixed: service title container alignment */
html[dir="rtl"] .service-title-container {
  justify-content: flex-start;
}

html[dir="ltr"] .service-title-container {
  justify-content: flex-start;
  flex-direction: row;
}

.checkbox-square {
  width: 35px;
  height: 35px;
  border: 2px solid #0056b3;
  flex-shrink: 0;
  display: block !important;
}

/* إضافة هامش عند الحاجة */
html[dir="rtl"] .checkbox-square {
  margin-left: 10px;
  margin-right: 0;
}

html[dir="ltr"] .checkbox-square {
  margin-left: 0;
  margin-right: 10px;
}

.service-title {
  font-size: 60px;
  font-weight: bold;
  color: #0056b3;
  margin: 0;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  min-height: 350px; /* إضافة ارتفاع أدنى للصف لاستيعاب الأيقونة */
}

/* Fixed: service-row text alignment */
html[dir="rtl"] .service-row {
  text-align: right;
}

html[dir="ltr"] .service-row {
  text-align: left;
}

.service-illustration {
  display: block;
  position: absolute;
  width: 350px;
  height: 350px;
  top: 0;
  z-index: 1;
  transition: all 0.5s ease;
  opacity: 1;
}

/* تعديل: تغيير موضع الأيقونة لتظهر في الجهة المقابلة للنص */
html[dir="ltr"] .service-illustration {
  right: 0;
  left: auto;
}

html[dir="rtl"] .service-illustration {
  left: 0;
  right: auto;
}

.service-bg-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Offers section - إصلاح نهائي */
.offers-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  width: 100%;
}

/* تعديل محاذاة عنوان "We Offer:" وتثبيته */
html[dir="rtl"] .offers-title-container {
  justify-content: flex-start;
  flex-direction: row;
  margin-right: 0;
  padding-right: 0;
}

html[dir="ltr"] .offers-title-container {
  justify-content: flex-start;
  flex-direction: row;
  margin-left: 0;
  padding-left: 0;
}

.offer-title {
  font-size: 36px;
  color: #0056b3;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}

.offers-list {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

/* تعديل محاذاة قائمة العروض */
html[dir="ltr"] .offers-list {
  text-align: left;
  padding-left: 10px;
}

html[dir="rtl"] .offers-list {
  text-align: right;
  padding-right: 10px;
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

/* ضبط اتجاه عناصر العروض */
html[dir="rtl"] .offer-item {
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="ltr"] .offer-item {
  flex-direction: row;
  justify-content: flex-start;
}

.offer-checkbox {
  width: 18px;
  height: 18px;
  background-color: #0056b3;
  flex-shrink: 0;
  display: block !important; /* ضمان ظهور المربعات في كل الحالات */
}

.offer-text {
  font-size: 20px;
  color: #0056b3;
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
    text-align: center;
  }

  .service-icon img {
    margin-bottom: 20px;
  }

  .service-list li {
    padding-left: 0;
    padding-right: 25px;
  }

  .service-list li::before {
    left: auto;
    right: 0;
  }

  .service-illustration {
    position: relative;
    margin: 0 auto 20px;
    width: 220px;
    height: 220px;
    display: none;
  }

  .service-title {
    font-size: 42px;
  }
  
  .service-title.req-text {
    font-size: 32px;
  }

  .offer-title {
    font-size: 28px;
  }

  .service-description,
  .offer-text {
    font-size: 18px;
  }
  
  /* إصلاحات إضافية للشاشات الصغيرة */
  .service-text {
    max-width: 100%;
  }
  
  .service-row {
    min-height: auto;
  }
  
  .checkbox-square {
    width: 25px;
    height: 25px;
  }
}

/* Footer */
.footer-section {
  background-color: #f9f9f9;
  padding: 50px 20px 30px;
  font-family: 'Cairo', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-title {
  color: #00579d;
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 8px 0;
}

.footer-column a {
  text-decoration: none;
  color: #00579d;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-column a:hover {
  color: #003b6f;
  text-decoration: underline;
}

.footer-icon {
  width: 18px;
  height: 18px;
}

.footer-logo {
  max-width: 110px;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 0.85rem;
  color: #555;
}

.bcaitech-section {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ccc;
}

.bcaitech-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.bcaitech-logo {
  height: 30px;
  margin-bottom: 5px;
}

.bcaitech-text {
  margin: 0;
  font-size: 0.9rem;
  color: #00579d;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 30px;
  }

  .footer-column a {
    justify-content: center;
  }
}
/* أنماط قسم قدّم طلبك الآن */
.request-now-section {
  padding: 50px 20px;
  background-color: #f5f8fb;
}

.request-box {
  max-width: 950px;
  margin: 0 auto;
  background: white;
  border: 1px solid #0056b3;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

.request-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

/* Fixed: request header direction for RTL/LTR */
html[dir="rtl"] .request-header {
  flex-direction: row;
}

html[dir="ltr"] .request-header {
  flex-direction: row-reverse;
}

.request-checkbox {
  width: 35px;
  height: 35px;
  border: 2px solid #0056b3;
  margin-left: 15px;
  margin-right: 15px;
  display: inline-block;
}

.request-title {
  font-size: 42px;
  color: #0056b3;
  font-weight: bold;
  margin: 0;
}

.request-steps {
  position: relative;
}

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

/* Fixed: step indicators direction for RTL/LTR */
html[dir="rtl"] .step-indicators {
  flex-direction: row;
}

html[dir="ltr"] .step-indicators {
  flex-direction: row-reverse;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #0056b3;
  color: #0056b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.step.active .step-number {
  background-color: #0056b3;
  color: white;
}

.step-name {
  font-size: 14px;
  color: #0056b3;
  text-align: center;
  white-space: nowrap;
}

.step-connector {
  flex: 1;
  height: 2px;
  background-color: #0056b3;
  margin: 0 8px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.request-action {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.request-button {
  display: flex;
  align-items: center;
  background-color: #0056b3;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.request-button:hover {
  background-color: #003d80;
}

.button-text {
  margin-left: 5px;
  margin-right: 5px;
}

.button-icon {
  font-size: 20px;
  font-weight: bold;
}

/* Fixed: button icon rotation for RTL */
html[dir="rtl"] .button-icon {
  transform: rotate(180deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .request-title {
    font-size: 30px;
  }
  
  .step-indicators {
    flex-wrap: wrap;
  }
  
  .step {
    flex: 0 0 45%;
    margin-bottom: 15px;
  }
  
  .step-connector {
    display: none;
  }
}

@media (max-width: 480px) {
  .request-box {
    padding: 20px 15px;
  }
  
  .request-title {
    font-size: 24px;
  }
  
  .step {
    flex: 0 0 100%;
  }
}

/* CSS لتصحيح محاذاة خطوات النموذج */
.step-form {
  max-width: 100%; /* زيادة العرض الأقصى لاستيعاب كل العناوين */
  direction: inherit; /* inherit direction from HTML tag */
}

/* ضبط عرض خطوات النموذج */
.step-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* منع التفاف العناصر */
  gap: 5px; /* مسافة صغيرة بين العناصر */
  overflow-x: auto; /* السماح بالتمرير الأفقي إذا لزم الأمر في الشاشات الصغيرة */
  margin-bottom: 20px;
  padding-bottom: 5px; /* إضافة مساحة أسفل للتمرير */
}

/* تعديل أسلوب العناوين لجعلها أكثر اتساقًا */
.step-header span {
  flex: 1; /* توزيع العرض المتاح بالتساوي */
  min-width: auto; /* إزالة العرض الأدنى */
  white-space: nowrap; /* منع التفاف النص */
  text-align: center; /* محاذاة النص في المنتصف */
  font-size: 14px; /* تصغير حجم الخط قليلاً لتناسب المساحة */
  padding: 8px 4px; /* تقليل الهوامش الجانبية */
}

/* للشاشات الصغيرة جدًا */
@media (max-width: 576px) {
  .step-header span {
    font-size: 12px; /* خط أصغر للشاشات الصغيرة */
    padding: 8px 2px;
  }
}

/* Fixed: properly handle direction in form elements */
html[dir="rtl"] .step-form,
html[dir="rtl"] .step-header {
  direction: rtl;
}

html[dir="ltr"] .step-form,
html[dir="ltr"] .step-header {
  direction: ltr;
}

/* Fixed: Don't hide checkboxes in Arabic, handle this in JS */
html[dir="rtl"] .checkbox-square,
html[dir="rtl"] .offer-checkbox {
  display: block;
}

/* Fix for buttons in the step form */
.step-form .btn-step {
  margin: 0 5px;
}

/* Alignment for form fields in RTL/LTR */
html[dir="rtl"] .form-control {
  text-align: right;
}

html[dir="ltr"] .form-control {
  text-align: left;
}
/* هذا الكود يمكن إضافته للتأكد من ظهور العناصر بشكل صحيح */

/* إصلاح عنوان "We Offer:" */
.offers-container {
  margin-top: 40px;
  width: 100%;
}

/* تأكد من أن عناصر العرض تظهر بشكل صحيح */
.offer-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* تنسيق المربعات الملونة */
.offer-checkbox {
  min-width: 18px;
  min-height: 18px;
  background-color: #0056b3;
  margin-right: 10px;
  display: block !important;
}

html[dir="ltr"] .offer-checkbox {
  margin-right: 0;
  margin-left: 10px;
}

/* تنظيف التنسيق للتأكد من عدم وجود تعارضات */
html[dir="rtl"] .checkbox-square,
html[dir="rtl"] .offer-checkbox {
  display: block !important;
}
/* إضافات لملف CSS لتصحيح حجم الخطوط في الهواتف المحمولة */

/* ضبط حجم العناوين للأجهزة المختلفة */
@media (max-width: 992px) {
  .offer-title {
    font-size: 28px !important;
  }
  
  .service-title {
    font-size: 40px;
  }
  
  .service-title.req-text {
    font-size: 36px;
  }
}

/* تخصيص الأجهزة الصغيرة والهواتف المحمولة */
@media (max-width: 768px) {
  .offer-title {
    font-size: 24px !important;
  }
  
  .service-title {
    font-size: 32px;
  }
  
  .service-title.req-text {
    font-size: 30px;
  }
  
  .service-description {
    font-size: 18px;
  }
  
  .offer-text {
    font-size: 16px;
  }
}

/* الهواتف المحمولة الصغيرة */
@media (max-width: 480px) {
  .offer-title {
    font-size: 22px !important;
  }
  
  .service-title {
    font-size: 28px;
  }
  
  .service-title.req-text {
    font-size: 26px;
  }
  
  .service-description {
    font-size: 16px;
  }
  
  .offer-text {
    font-size: 15px;
  }
  
  /* تحسين التباعد في الهواتف الصغيرة */
  .offer-item {
    margin-bottom: 12px;
  }
  
  .checkbox-square {
    width: 24px;
    height: 24px;
  }
  
  .offer-checkbox {
    width: 14px;
    height: 14px;
  }
}

/* تعديلات خاصة للهواتف شديدة الصغر */
@media (max-width: 375px) {
  .offer-title {
    font-size: 20px !important;
  }
  
  .service-title {
    font-size: 24px;
  }
  
  .service-title.req-text {
    font-size: 22px;
  }
}