/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

/* المتغيرات المخصصة */
:root {
    --primary-color: #3f51b5;
    --secondary-color: #2196f3;
    --accent-color: #ff5722;
    --light-color: #ffffff;
    --dark-color: #1a237e;
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --white: #FFFFFF;
    --gray: #f5f5f5;
    --dark-gray: #757575;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* تنسيق الصفحة بالكامل */
body {
  font-family: Tajawal, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;

  color: #333;
  line-height: 1.6;
  height: 100%;
  padding-bottom: 70px;
}

/* حاوية النموذج */
.contact-container {
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  padding: 20px;
  margin: 10px auto;
  /* margin: 10px 20px 30px 40px; /* الترتيب: أعلى، يمين، أسفل، يسار */
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  direction: rtl;  /* الاتجاه للغة العربية */
}

/* عنوان الحاوية */
.contact-container h2 {
  margin-bottom: 0px;
  color: #2189f7;
}

.contact-container p {
  margin-top: 8px;
  color: #4f7fb3;
}

  /* تنسيق الهيدر */
.header {
  position: relative;
  border-bottom: 2px solid #ddd; /* خط طويل فاصل تحت الهيدر */
  direction: rtl; /* الاتجاه للغة العربية */
  margin-bottom: 23px;
  text-align: center;
}

.header img {
  display: block;
  margin: 0 auto 0px;

}

.header h2 {
  margin-bottom: 0px;
  color: #1c88fa;
  margin-top: -9px;
  display: inline-block;
  position: relative;
  /* padding-left: 55px; /* مسافة بين النص والخط */
}
/*
.header h2::after {
  content: '';
  position: absolute;
  left: 0; /* الخط على اليسار * /
  top: 50%;
  width: 50px;
  height: 2px;
  background-color: #2189f7;
  transform: translateY(-50%);
}
*/

.header p {
  margin-top: 2px;
  color: #4f7fb3;
  font-size: 11px;
  font-weight: bold;
}

/* خط طويل فاصل تحت الهيدر */

/* تنسيق التسمية */
.form-group label {
  display: block;
  margin: 10px 0 5px;      /* مسافة علوية وسفلية */
  font-weight: bold;       /* خط عريض */
  text-align: right;       /* محاذاة للنص بالعربي */
  color: #0771e0;
}

.form-group-card label {
  display: block;
  margin: 10px 0 5px;      /* مسافة علوية وسفلية */
  font-weight: bold;       /* خط عريض */
  text-align: right;       /* محاذاة للنص بالعربي */
  color: #1454a7;
}

/* تنسيق الحقول */
.form-group input,
.form-group-card input,
.form-group select,
.form-group textarea,
.message-box textarea {
  font-family: Tajawal, sans-serif;
  font-size: 15px;
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;      /* مسافة تحت الحقل */
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: right;       /* بدء الكتابة من اليمين */
  direction: rtl;
  box-sizing: border-box;
}

/*   */
.form-group input::placeholder,
.form-group-card input::placeholder, 
.message-box textarea::placeholder {
  font-family: Tajawal, sans-serif;
  color: #aaa;           /* تغيير لون النص */
  font-weight: normal;  /* أو bold حسب الرغبة */
  font-size: unset;  /* تغيير حجم الخط */
}

/* عند التركيز على الحقل */
.form-group input:focus,
.form-group-card input:focus,
.message-box textarea:focus {
  background-color: #f2f9ff;
  font-family: Tajawal, sans-serif;
}


/* تنسيق الحقول المطلوبة والصحيحة */
input:required:valid,
textarea:required:valid {
  background-color: #e8f0fe;
}


/* تنسيق عنصر القائمة المنسدلة */
/* تنسيق عنصر القائمة المنسدلة باستخدام مكتبة Select2 */
.select2-container--default .select2-selection--single {
  width: 100%; /* عرض العنصر ليكون 100% من الحاوية */
  border: 1px solid #ddd; /* تحديد حدود العنصر */
  border-radius: 5px; /* إضافة زوايا مستديرة */
  background-color: #f8f9fa; /* لون خلفية العنصر */
  color: #333; /* لون النص */
  font-size: 16px; /* حجم الخط */
  direction: rtl; /* الاتجاه للغة العربية */
  text-align: right; /* محاذاة النص لليمين */
  box-sizing: border-box; /* تضمين الحواف والمسافات الداخلية في العرض والارتفاع */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333; /* لون النص */
  line-height: 28px; /* ارتفاع السطر */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 28px; /* ارتفاع السهم */
}

.select2-container--default .select2-results__option {
  color: #fff; /* لون النص */
  background-color: #2189f7; /* لون خلفية العنصر */
  font-size: 16px; /* حجم الخط */
  direction: rtl; /* الاتجاه للغة العربية */
  text-align: right; /* محاذاة النص لليمين */
  border-bottom: 1px solid #ddd; /* فاصل تحت كل خيار */
}

.select2-container--default .select2-results__option:last-child {
  border-bottom: none; /* إزالة الفاصل من الخيار الأخير */
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #2189f7;
}
/* زر الإرسال */
.send-button {
  width: 100%;
  padding: 10px;
  background-color: #3094ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}

.send-button:hover {
  background-color: #2a4ac0;
}

/* زر واتساب */
.whatsapp-button {
  display: block;
  margin-top: 15px;
  padding: 10px;
  background-color: #23c75f;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center; /* لتوسيط النص في زر الواتساب */
  font-weight: bold;
}

.whatsapp-button:hover {
  background-color: #218838;
}

/* تنسيقات للأقسام الديناميكية */
.dynamic-section {
  margin-top: 15px;
  padding-top: unset;
  border: 1px solid #ddd;
  border-radius: 5px;
  direction: rtl;        /* لضبط اتجاه المحتوى للعربية */
  text-align: right;     /* لمحاذاة النصوص لليمين */
}

.dynamic-section legend {
  font-size: 1.1em;
  font-weight: bold;
  color: #2576cb;
}

.dynamic-section p {
  margin-bottom: 10px;
  font-weight: bold;
}

/* تنسيق textarea إن وُجد */
.dynamic-section textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;      /* السماح بتغيير ارتفاع المربع */
  box-sizing: border-box;
}

/* التسمية داخل القسم الديناميكي */
.dynamic-section label {
  display: block;
  margin-bottom: 9px;
  margin-top: 10px;
  font-weight: normal;   /* أو bold حسب الرغبة */
}



label[for="name"]::after,
label[for="phone"]::after,
label[for="reason"]::after,
label[for="message"]::after,
label[for="legend"]::after,
label[for="card_name"]::after,
label[for="card_address"]::after,
label[for="card_phone"]::after,
label[for="card_section"]::after{
  content: " *";
  color: #f85252;
}

/* تنسيق زر الراديو أو أي حقل آخر */
.dynamic-section input[type="radio"] {
  margin-right: 5px;     /* مسافة بين الراديو والنص */
  position: absolute;
  left: 20px;
}

/* تنسيق مجموعة الراديو (الصناديق) */
.radio-box-group {
  flex-wrap: wrap;          /* يسمح بنقل العناصر لسطر جديد عند ضيق المساحة */
  justify-content: flex-start; /* أو center أو flex-end حسب رغبتك في المحاذاة */
  gap: 10px;                /* مسافة بين كل صندوق وآخر */
}

/* تنسيق كل صندوق (label) للراديو */
.radio-box {
display: flex;
align-items: center;
justify-content: center;
padding: 10px 15px;
/* border: 2px solid #ddd; */
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
background: #3094ff;
color: white;
min-width: 120px;
text-align: center;
}

/* إخفاء الزر الافتراضي للراديو */
/* 
.radio-box input {
  display: none;
}*/


/* تنسيق نص الراديو */

.radio-box .radio-text {
font-size: 14px;
font-weight: bold;
/*color: #333;  /* يمكنك تغيير اللون حسب الرغبة */
}

/* عند اختيار الصندوق */
.radio-box.selected {
  background-color: #28c858; /* لون خلفية عند التحديد */
  color: #fff;
}

/* علامة الصح عند الاختيار */
.radio-box.selected::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 20px;              /* يمكنك تغييره لـ left: 10px لو أردت العلامة على اليسار */
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
}

.message-box {
  color: #2576cb;
}


button {
  position: relative;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* أيقونة التحميل */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




/* //////////////////////////////////////////////////////////// */
    /* تحديد مساحة المحتوى بحيث يكون شريط التنقل دائمًا في الأسفل */
    #content {
      min-height: calc(100vh - 60px);
      /* تخصيص ارتفاع المحتوى بدون التأثر بشريط التنقل */
      padding-bottom: 60px;
      /* تأمين مساحة مساوية لارتفاع شريط التنقل */
    }

    .navbar {
      position: fixed;
      inset-inline: 0;
      bottom: 0;
      z-index: 350;
      display: flex;
      align-items: center;
      justify-content: space-between;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 5px;
      height: 55px;
      box-shadow: 0 0 9px rgba(0, 0, 0, 0.12);
    }

    /* تنسيق الأزرار بأسلوب عصري */
    .nav-btn {
      display: flex;
      /* جعل الأيقونة والنص في سطر واحد */
      flex-direction: column;
      align-items: center;
      /* توسيط العناصر عموديًا */
      justify-content: center;
      text-decoration: none;
      /* إزالة التسطير تحت النص */
      background: none;
      border: none;
      font-size: 12px;
      color: #6c757d;
      gap: 0px;
      /* 8px; تحديد مسافة بين الصورة والنص */

      flex-grow: 1;

      transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;

      height: 0px;
      line-height: 1;
      padding-inline: 10px;
    }

    /* أيقونات مسطحة بحجم مناسب */
    .nav-btn i {
      font-size: 22px;
      margin-bottom: 5px;
      font-weight: bold;
      /* جعل الأيقونة أكثر سمكًا */
      transition: transform 0.2s ease-in-out;
    }

    .nav-icon {
      width: 22px;
      /* يمكنك تعديل القيمة حسب الحجم المطلوب */
      height: auto;
      /* الحفاظ على نسبة العرض إلى الارتفاع */
      margin-bottom: 5px;
      /* لضبط المسافة بين الصورة والنص */
    }

    /* النص */
    .nav-btn span {
      font-weight: bold;
      /* جعل الأيقونة أكثر سمكًا */
    }

    /* تأثير عند الضغط */
    .nav-btn:active i {
      transform: scale(0.9);
    }

    /* الأزرار النشطة */
    .nav-btn.active {
      color: #0d6efd;
    }

    /* تأثير اللمس (Ripple Effect) */
    .nav-btn::after {
      content: "";
      position: absolute;
      width: 50px;
      height: 50px;
      background: rgba(13, 110, 253, 0.2);
      border-radius: 50%;
      transform: scale(0);
      opacity: 0;
      transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }

    .nav-btn:active::after {
      transform: scale(2);
      opacity: 1;
    }

  /* التراكب عند فتح القائمة */

    /* التحكم في زر الاغلاق */
    .closeMenuBtn {
      font-size: 24px;
      color: #6c757d;
      border: none;
      background: none;
      margin-right: auto;
      /* إذا كنت ترغب في دفع الزر لأبعد جهة يسارًا */
      margin-left: -10px;

    }

    .closeMenuBtn i {
      font-size: 24px;
      font-weight: bold;
      /* أو يمكنك استخدام رقم مثل 700 */
    }

    .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: flex-end;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: 1050;
      /* يجعل التراكب فوق كل شيء */

    }

    /* القائمة المنبثقة فوق شريط التنقل */
    .menu-content {
      position: absolute;
      bottom: 55px;
      /* يتوافق مع ارتفاع شريط التنقل */
      width: 100%;
      background: white;
      border-top-left-radius: 15px;
      border-top-right-radius: 15px;
      padding: 20px;
      box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
      transform: translateY(0%);
      /* إخفاءها عند البداية */
      transition: transform 0.3s ease-in-out;
      z-index: 1100;
      /* يجعل القائمة فوق كل العناصر */
      padding-top: 10px;

    }

    /* الحاوية الرئيسية */
    .menu-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .menu-header {
      margin-bottom: 3px !important;
  }

    /* تصميم العناصر */
    .menu-item {
      display: block;
      padding: 15px;
      background-color: #f8f9fa;
      border-radius: 8px;
      text-decoration: none;
      color: #495057;
      transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
      animation: scaleIn 0.3s ease forwards;
      opacity: 0;
    }

    /* تأخير كل عنصر حسب data-delay */
    .menu-item:nth-child(1) {
      animation-delay: 0s;
    }

    .menu-item:nth-child(2) {
      animation-delay: 0.1s;
    }

    .menu-item:nth-child(3) {
      animation-delay: 0.2s;
    }

    .menu-item:nth-child(4) {
      animation-delay: 0.3s;
    }

    /* التأثير عند اللمس */
    .menu-item:hover {
      background-color: rgba(13, 110, 253, 0.1);
      color: #0d6efd;
    }

    .menu-item.active {
      background-color: rgba(13, 110, 253, 0.1);
      color: #0d6efd;
      --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1));
  }
    /* تنسيق المحتوى داخل العنصر */
    .menu-link-content {
      display: flex;
      align-items: center;
    }

    /* الأيقونات */
    .menu-link-content i {
      font-size: 18px;
      margin-left: 8px;
      /* المسافة بين الأيقونة والنص */
      color: #1b3e7294;
    }

    /* النص */
    .menu-link-content span {
      font-size: 16px;
      color: #495057;
    }

    /* تأثير الدخول */
    @keyframes scaleIn {
      from {
        transform: scale(0.9);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }
/* ////////////////////////////////////////// */