body {
    font-family: 'Arial', sans-serif;
    text-align: right; 
    color: #333;
    margin: 0;
    
    /* ------------------------------------------------ */
    /* خصائص الصورة الجديدة لجميع الصفحات */
    background-image: url('12345671234567.jpeg'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center; 
    /* ------------------------------------------------ */
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
}

/* ----------------------------------------------- */
/* تنسيق الشريط العلوي للصفحة الرئيسية (شعار، قائمة، ورقم) */
/* ----------------------------------------------- */
.top-bar {
    background-color: #24aeeb; 
    color: white;
    padding: 20px 0px; /* زيادة التباعد الأفقي قليلاً */
    display: flex;
    align-items: center;
    justify-content: space-between; 
    direction: rtl; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; 
}

.logo-group {
    display: flex;
    align-items: center;
    direction: ltr; 
    /* تم تعديل هذا الهامش للسماح للقائمة بالظهور في الوسط */
    margin-left: 15px; 
}

.contact-info {
    /* تم تعديل هذا الهامش للسماح للقائمة بالظهور في الوسط */
    margin-right: 15px;
    white-space: nowrap; 
}

.contact-info a {
    color: white; 
    text-decoration: none; 
    font-size: 1.2em;
    font-weight: bold;
    direction: ltr;
}

/* ----------------------------------------------- */
/* تنسيق قائمة التنقل الرئيسية (القائمة العلوية) - الكود المضاف */
/* ----------------------------------------------- */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* توسيط القائمة في المنتصف */
}

.main-nav ul {
    list-style: none; /* إزالة النقاط */
    padding: 0;
    margin: 0;
    display: flex; /* ترتيب العناصر بشكل أفقي */
    gap: 30px; /* مسافة بين الروابط */
}

.main-nav li a {
    color: white; /* لون النص أبيض */
    text-decoration: none; /* إزالة التسطير */
    font-size: 1.1em;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* تأثير عند مرور الفأرة */
}

/* ----------------------------------------------- */
/* تنسيق الشريط العلوي لصفحات الطلبات (عنوان موسَّط فقط) */
/* ----------------------------------------------- */
.top-bar-centered {
    background-color: #24aeeb; 
    color: white;
    padding: 20px 30px; 
    display: flex;
    align-items: center;
    justify-content: center; 
    direction: rtl; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; 
}

.header-logo {
    height: 30px; 
    margin-right: 10px; 
    margin-left: 0; 
    vertical-align: middle;
}

.site-name {
    font-size: 1.5em; 
    font-weight: bold;
    margin: 0; 
    white-space: nowrap; 
}

.main-page-content {
    padding-top: 80px; 
    padding-bottom: 80px;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; 
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 40px auto; 
    align-self: center;
    
    /* التعديل: جعل الخلفية أكثر شفافية (قيمة 0.7 تعني 70% عتامة) */
    background: rgba(255, 255, 255, 0.7); 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #cc0000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 60px; 
}

.buttons-group-main {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.main-button {
    text-decoration: none;
    color: white;
    padding: 25px 50px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    min-width: 180px;
}

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.red-button {
    background-color: #24aeeb;
}

.green-button {
    background-color: #28a745;
}

#request-form {
    display: grid;
    gap: 15px;
}

label {
    font-weight: bold;
    margin-top: 10px;
}

input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.location-group {
    display: flex;
    gap: 10px;
}

.location-group input {
    flex-grow: 1;
}

#get-location-btn {
    background-color: #24aeeb; 
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.status-message {
    font-style: italic;
    color: #555;
    margin-top: -5px;
}

.submit-button {
    border: none;
    color: white;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* قسم الحقوق والمعلومات (الأسفل) - ثابت */
footer {
    background-color: #000000; 
    color: #ffffff;
    text-align: center;
    padding: 5px 10px; 
    font-size: 0.9em;

    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

footer p {
    margin: 1px 0; 
}


/* ============================================== */
/* استعلامات الوسائط (Media Queries) للهواتف والأجهزة اللوحية */
/* ============================================== */

@media (max-width: 900px) {
    /* إخفاء القائمة في الأجهزة الصغيرة لتجنب تداخلها */
    .main-nav {
        display: none; 
    }
}

@media (max-width: 850px) {
    .container {
        max-width: 95%; 
        margin: 20px auto;
    }
}

@media (max-width: 600px) {
    
    .container {
        margin: 20px 10px; 
        padding: 15px; 
    }

    .section-title {
        margin-top: 40px; 
    }
    
    .top-bar, .top-bar-centered {
        padding: 15px 10px; 
    }

    .logo-group {
        margin-left: 0; 
    }
    .contact-info {
        margin-right: 0;
    }

    .site-name {
        font-size: 0.9em; 
    }
    .contact-info a {
        font-size: 1em; 
    }

    .header-logo {
        height: 20px; 
        margin: 0 5px; 
    }

    .buttons-group-main {
        flex-direction: column;
        gap: 15px;
    }

    .main-button {
        padding: 15px 30px; 
        font-size: 18px;
        min-width: 100%; 
        box-sizing: border-box; 
    }

    .location-group {
        flex-direction: column; 
        gap: 5px;
    }

    #get-location-btn {
        width: 100%; 
        padding: 12px;
    }

    .submit-button {
        font-size: 1.1em;
        padding: 12px;
    }
    
    footer {
        padding: 3px 5px; 
    }
    
    footer p {
        font-size: 0.7em; 
        margin: 1px 0;
    }
}