/* استيراد خط المري من جوجل */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

* { 
    font-family: 'Almarai', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    background-color: #f4f7f6; 
    direction: rtl; 
    text-align: right; 
    overflow-x: hidden; 
}

/* تنسيق الهيدر */
.header {
    background-color: #004d40;
    color: white;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}
.menu-icon {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
}
.menu-icon span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
.user-icon {
    width: 35px;
    height: 35px;
    background: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-center {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.header-title {
    font-size: 26px;
    font-weight: bold;
}
.header-subtitle {
    font-size: 10px;
    opacity: 0.9;
}

/* تنسيق القائمة الجانبية (Side Menu) - مُعدل ومُحسّن */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1002;
    padding-top: 75px;
    display: flex;
    flex-direction: column;
}
.side-menu.active {
    right: 0;
}
.side-menu-header {
    padding: 30px 20px;
    background-color: #004d40;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}
.side-menu-header h3, 
.side-menu-header p {
    color: #ffffff !important;
    margin: 5px 0;
    text-align: center;
}
.side-menu-links {
    flex-grow: 1;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.side-menu-links li a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
    text-align: center; 
}
.side-menu-links li a:hover {
    background: #f4f7f6;
    color: #004d40;
}
.side-menu-links li a i {
    margin-left: 10px;
    width: 20px;
    color: #004d40;
}
.side-menu-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    background-color: #f9f9f9;
}

/* الأوفرلاي الخلفية المخفية */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1001;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* تنسيق قسم الفيديو والمحتوى الرئيسي */
.hero-image-container {
    position: relative;
    width: 100%;
    height:500px;
    overflow: hidden;
    background-color: #000;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}
@media (min-width: 1200px) {
   .hero-image-container { height: 60vh; }
   .hero-image { object-fit: fill; object-position: center 5%; }
}
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 64, 0.4);
    z-index: 1;
}

/* تفاصيل الشريط الأخضر المدمج في السقف */
.green-brand-banner {
    background-color: #0b5e43;
    width: 100%;
    padding: 22px 20px;
    text-align: center;
    color: #ffffff;
    direction: rtl;
    box-sizing: border-box;
}
.green-brand-banner h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.green-brand-banner p {
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    opacity: 0.95;
}

/* كونتينر الحجز الرئيسي - بعد تصفير الحواف ليلتحم به الشريط */
.booking-section {
    max-width: 700px;
    margin: -80px auto 80px auto; /* تم تعديل الهامش السفلي ليعطي مساحة أمان مريحة */
    background: white;
    padding: 0 0 25px 0; /* تصفير الحواف العلوية والجانبية لاندماج الشريط */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
    overflow: hidden; /* ضروري لقص زوايا الشريط الأخضر ليتطابق مع انحناء الكرت */
}

/* توزيع المسافات الجانبية الداخلية للعناصر لتبتعد عن الأطراف بشكل متناسق */
.service-tabs, .section-title, #aexForm {
    padding-left: 25px;
    padding-right: 25px;
}

.service-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 25px;
    position: relative;
    z-index: 11;
    margin-top: 25px; /* مسافة مريحة أسفل الشريط الأخضر المدمج */
}
.service-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
    user-select: none;
}
.service-tab.active {
    color: #00a884;
    border-bottom-color: #00a884;
    background: #f8fdfc;
}
.service-tab i { margin-left: 8px; }

.section-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.form-group { flex: 1; min-width: 150px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.form-group input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    background: transparent;
    outline: none;
    transition: 0.2s;
}
.form-group input:focus { border-bottom-color: #00a884; }
.form-group input::placeholder { color: #aaa; }
.form-group input[type="date"] { cursor: pointer; }

.swap-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: 0.2s;
}
.swap-btn:hover { background: #e0e0e0; }

.counter-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}
.counter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.counter-group button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}
.counter-group button:hover { background: #f5f5f5; border-color: #00a884; }
.counter-group span { min-width: 25px; text-align: center; font-weight: 600; font-size: 16px; }
.counter-label { font-size: 13px; color: #666; margin-top: 4px; }

.btn-send {
    background: #00a884;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    float: left;
    transition: 0.2s;
}
.btn-send:hover { background: #009473; }
.error { color: #d32f2f; font-size: 13px; margin-top: 5px; display: none; }
input.invalid { border-bottom-color: #d32f2f!important; }
.hidden { display: none!important; }

/* تنسيق التذييل الفوتر */
.footer {
    background: #004d40;
    color: #fff;
    text-align: center;
    padding: 20px 15px;
    margin-top: auto; /* تم التعديل إلى auto ليدفع الفوتر للأسفل تلقائياً */
    font-size: 14px;
}
.footer a {
    color: #00a884;
    text-decoration: none;
    margin: 0 8px;
}
.footer a:hover { text-decoration: underline; }

/* التجاوب التام الموحد والمحسن لشاشات الجوال */
@media (max-width: 600px) {
   .hero-image-container { height: 400px; }
   .booking-section { margin: -60px 15px 80px 15px; }
   .form-row { flex-direction: column; }
   .form-group { min-width: 100%; }
   .swap-btn { align-self: center; transform: rotate(90deg); }
   
   /* تعديلات أحجام نصوص ومسافات الشريط الأخضر على الجوال */
   .green-brand-banner {
       padding: 16px 14px;
   }
   .green-brand-banner h1 {
       font-size: 1.2rem;
       margin-bottom: 6px;
   }
   .green-brand-banner p {
       font-size: 0.9rem;
       line-height: 1.4;
   }
   
   /* تقليص المسافات الجانبية الداخلية ليناسب شاشات الجوال الضيقة */
   .service-tabs, .section-title, #aexForm {
       padding-left: 15px;
       padding-right: 15px;
   }
   .service-tabs {
       margin-top: 15px;
   }
}
/* تنسيق موحد لجميع الصفحات ودفع التذييل للأسفل */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.box {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    flex: 1; /* هذا الأمر السحري الذي يدفع التذييل لآخر الصفحة */
}
/* ==========================================================================
   تنسيق صفحة سياسة الخصوصية وملفات تعريف الارتباط الشاملة - أثير إكسبريس
   ========================================================================== */
.aex-policy-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
    font-family: system-ui, -apple-system, sans-serif;
}
.policy-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 20px;
}
.policy-header h1 {
    color: #0b5e43; /* لون الهوية الأخضر الخاص بـ AEX */
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}
.policy-header p {
    color: #6b7280;
    font-size: 14px;
}
.policy-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 25px;
    border: 1px solid #eaeaea;
}
.policy-section h2 {
    color: #111827;
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    border-right: 4px solid #0b5e43;
    padding-right: 10px;
}
.policy-section p {
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 15px 0;
}
.policy-section ul {
    margin: 0;
    padding-right: 20px;
}
.policy-section ul li {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* تنسيق خاص ومميز لقسم ملفات تعريف الارتباط المدمج */
.cookie-highlight {
    border-top: 4px solid #0b5e43;
    background: #f9fafb;
}
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.cookie-type-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.cookie-type-card h4 {
    color: #0b5e43;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: bold;
}
.cookie-type-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}
.cookie-note {
    background: #eff6ff;
    padding: 12px;
    border-radius: 6px;
    border-right: 4px solid #3b82f6;
    color: #1e40af !important;
    margin-top: 15px !important;
}

/* التجاوب التام مع الشاشات المختلفة والجوال */
@media (max-width: 640px) {
    .policy-header h1 { font-size: 22px; }
    .policy-section { padding: 18px; }
    .cookie-types { grid-template-columns: 1fr; }
}