body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* تثبيت الهيدرات */
.top-header,
.bottom-header {
    position: fixed;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

/* ترتيبهم فوق بعض */
.top-header {
    top: 0;
}

.bottom-header {
    top: 45px;
    /* حسب ارتفاع top-header الفعلي */
}

/* شفافية عند التمرير */
body.scrolled .top-header,
body.scrolled .bottom-header {
    opacity: 0.7;
    backdrop-filter: blur(6px);
}

/* الوضع العادي */
body:not(.scrolled) .top-header,
body:not(.scrolled) .bottom-header {
    opacity: 1;
}

header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px;
}

.top-header {
    background: #0a2a5e;
    color: #000;
    /* height: 40px; */
    /* ✖️ احذف هذا السطر */
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    direction: ltr !important;
    margin-bottom: 0;
    /* ✅ أضف هذا */
}

.language-switch {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 20px;
    margin-bottom: 0;
    /* ✅ أضف هذا */
}


.language-switch button {
    padding: 1px 1px;
    font-size: 12px;
    border-radius: 1px;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #000;
    font-weight: 700;
}

.icon-text,
.icon-text1,
.icon-text2 {
    font-size: 20px;
    color: #fff;
    font-weight: 800;
    margin: 0 10px;
    top: 1px;
    direction: ltr !important;
}

.bottom-header {
    background: #f5f5f5;
    color: #660808;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 5000;
    gap: 100px;
}

.logo {
    width: 100px;
    height: auto;
}

.sitename {
    font-size: 20px;
}

.navmenu {
    position: relative;
    z-index: 1000;
}

.navmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 1000;

}

.navmenu ul li {
    margin: 0 10px;
    padding: 9px;
    border-bottom: 1px solid #000;
}

.navmenu ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 650;
    font-size: 20px;
    text-align: center;
}

.menu-checkbox {
    display: none;
}

.menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    display: none;
    position: relative;
    z-index: 101;
    text-align: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .95);
    display: none;
    z-index: 999;
}

.close-btn {
    font-size: 24px;
    color: #000;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 270px;
    background: none;
    border: none;
    z-index: 1100;
    display: none;
}

/* اللغة العربية */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .bottom-header {
    flex-direction: row-reverse;
    justify-content: space-between;
}

html[lang="ar"] .navmenu ul {
    justify-content: flex-start;
    padding-right: 0;
}

.contact-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


@media (min-width: 1200px) {
    .bottom-header {
        flex-direction: row-reverse;
    }

    .navmenu ul {
        justify-content: flex-end;
        padding-right: 50px;
    }

    html[lang="ar"] .logo {
        margin-right: auto;
        margin-left: 0;
    }

    html[lang="ar"] .sitename {
        margin-left: auto;
        margin-right: 0;
    }

    /* تثبيت الهيدرات */
    .top-header,
    .bottom-header {
        position: fixed;
        left: 0;
        width: 100%;
        transition: background-color 0.3s ease, opacity 0.3s ease;
        z-index: 9999;
    }

    /* ترتيبهم فوق بعض */
    .top-header {
        top: 0;
    }

    .bottom-header {
        top: 45px;
        /* حسب ارتفاع top-header الفعلي */
    }

    /* شفافية عند التمرير */
    body.scrolled .top-header,
    body.scrolled .bottom-header {
        opacity: 0.7;
        backdrop-filter: blur(6px);
    }

    /* الوضع العادي */
    body:not(.scrolled) .top-header,
    body:not(.scrolled) .bottom-header {
        opacity: 1;
    }
}

@media (max-width: 1199px) {

    .top-header,
    .bottom-header {
        align-items: center;
        text-align: center;
        height: auto;
        padding: 1px 10px;
    }

    /* تثبيت الهيدرات */
    .top-header,
    .bottom-header {
        position: fixed;
        left: 0;
        width: 100%;
        transition: background-color 0.3s ease, opacity 0.3s ease;
        z-index: 9999;
    }

    /* ترتيبهم فوق بعض */
    .top-header {
        top: 0;
    }

    .bottom-header {
        top: 130px;
        /* حسب ارتفاع top-header الفعلي */
    }

    /* شفافية عند التمرير */
    body.scrolled .top-header,
    body.scrolled .bottom-header {
        opacity: 0.7;
        backdrop-filter: blur(6px);
    }

    /* الوضع العادي */
    body:not(.scrolled) .top-header,
    body:not(.scrolled) .bottom-header {
        opacity: 1;
    }

    .top-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 3px 25px;
        gap: 2px;
        height: auto !important;
        /* يلغي التقييد السابق ويحل المشكلة */
        margin-bottom: -10 !important;
    }

    .bottom-header {
        flex-direction: row;
        justify-content: space-between;
    }

    .top-header .contact-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0px;
        margin-bottom: -15px;
    }


    .icon-text,
    .icon-text1,
    .icon-text2 {
        font-size: 10px;
        /* ✅ أو جرب 9px أو 8px حسب رغبتك */
        margin: 3px 4px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }



    .language-switch {
        position: relative;
        right: auto;
        gap: 3px;
        display: flex;
        justify-content: center;
        margin-bottom: -3px;
        /* ✅ تقليل المسافة فقط دون إلغائها بالكامل */
    }



    .language-switch button {
        font-size: 13px;
        padding: 1px 3px;
    }

    .logo {
        width: 70px;
        height: auto;
        margin: 5px;
    }

    .sitename {
        font-size: 16px;
    }

    .navmenu ul li a {
        font-size: 14px;
    }

    .menu-btn {
        display: block;
        font-size: 20px;
        margin: 5px 0;
    }

    .close-btn {
        display: block;
        font-size: 20px;
        right: 20px;
    }

    .navmenu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        background: #fff;
        width: 85%;
        height: 100%;
        text-align: left;
        z-index: 100000000;
        padding: 15px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, .2);

    }

    .navmenu ul {
        flex-direction: column;
        text-align: center;
        gap: 1px;
        z-index: 10000000;


    }

    .navmenu ul li {
        margin: 3px 0;
        padding: 0px;
        z-index: 10000000;

    }

    .menu-checkbox:checked~.menu-overlay {
        display: block;
    }

    .menu-checkbox:checked~.navmenu {
        display: block;
    }

    .menu-checkbox:checked~.navmenu {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 60px 20px;
        overflow-y: auto;
        z-index: 100000001;
    }

    .menu-checkbox:checked~.bottom-header {
        display: none;
    }



}


.checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 4px;
    color: #0a2a5e
}

.checkbox input {
    display: none;
    color: #0a2a5e
}

.checkbox .checkmark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 10px;
    background-color: #ffffff2b;
    box-shadow: rgba(0, 0, 0, .62) 0 0 5px inset, rgba(0, 0, 0, .21) 0 0 0 24px inset, #22cc3f 0 0 0 0 inset, rgba(224, 224, 224, .45) 0 1px 0 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0
}

.checkbox .checkmark::after {
    content: "";
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 5px;
    background-color: #e3e3e3;
    box-shadow: transparent 0 0 0 2px, rgba(0, 0, 0, .3) 0 6px 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color .3s ease-in-out
}

.checkbox input:checked+.checkmark {
    background-color: #0a2a5e;
    box-shadow: rgba(0, 0, 0, .62) 0 0 5px inset, #0a2a5e 0 0 0 2px inset, #0a2a5e 0 0 0 24px inset, rgba(224, 224, 224, .45) 0 1px 0 0
}

.checkbox input:checked+.checkmark::after {
    background-color: #0a2a5e
}

.checkbox .label {
    user-select: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    display: inline-block;
    color: #0a2a5e
}

@media (max-width:1199px) {
    .checkbox {
        gap: 4px;
        padding: 1px 3px
    }
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .5s ease-out
}

.dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap
}

.dot {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    animation: pulse 1.5s infinite cubic-bezier(.4, 0, .2, 1);
    will-change: transform, opacity
}

.dot:first-child {
    animation-delay: 0s
}

.dot:nth-child(2) {
    animation-delay: .2s
}

.dot:nth-child(3) {
    animation-delay: .4s
}

@keyframes pulse {
    0% {
        transform: scale(.8);
        opacity: 1
    }

    50% {
        transform: scale(1.2);
        opacity: .6
    }

    100% {
        transform: scale(.8);
        opacity: 1
    }
}

body {
    font-family: Arial, sans-serif;
    text-align: left;
    transition: text-align .3s ease-in-out
}

.language-switch {
    margin: 20px;
    text-align: center
}

.language-switch button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-weight: 700
}

.language-switch button:hover {
    background-color: #ddd
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: inherit
}

nav ul li {
    display: inline;
    margin: 10px
}

nav ul li a {
    text-decoration: none;
    font-weight: 700;
    color: #007bff
}

footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    text-align: inherit
}

body {
    background: #f8f9fa
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    max-width: 600px;
    margin: auto;
    margin-top: 1px
}

.form-control {
    border-radius: 8px;
    padding-left: 40px
}

.input-group-text {
    background: 0 0;
    border: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #6c757d
}

.btn-submit {
    background: #007bff;
    color: #fff;
    padding: 10px;
    font-size: 18px;
    border-radius: 8px;
    transition: .3s;
    width: 100%
}

.btn-submit:hover {
    background: #0056b3
}

.alert-message {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 700
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb
}

.alert-message {
    margin-top: 10px;
    font-weight: 700
}

.alert-success {
    color: green
}

.alert-danger {
    color: red
}

.address-container {
    text-align: center;
    margin-bottom: 20px
}

.address {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    direction: ltr !important
}

.address-container,
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center
}

.address,
.icon-text,
.icon-text1,
.icon-text2 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    direction: ltr !important;
    white-space: nowrap
}

.address i,
.icon-text i,
.icon-text1 i,
.icon-text2 i {
    font-size: 18px
}

.address:hover,
.icon-text1:hover,
.icon-text2:hover,
.icon-text:hover {
    text-decoration: underline
}

.address i {
    color: red
}

@media (max-width:1199px) {

    .address-container,
    .contact-container {
        flex-direction: column;
        gap: 10px
    }
}

#about {
    margin-bottom: -100px
}

#services {
    margin-top: 1px
}

.language-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px
}

.lang-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #fff;
    color: #007bff;
    cursor: pointer;
    transition: all .3s ease
}

.lang-btn:focus,
.lang-btn:hover {
    background-color: #0056b3;
    color: #fff
}

.lang-btn.arabic {
    border-color: #28a745;
    color: #28a745
}

.lang-btn.arabic:focus,
.lang-btn.arabic:hover {
    background-color: #1e7e34;
    color: #fff
}

.lang-btn.english {
    border-color: #ff9800;
    color: #ff9800
}

.lang-btn.english:focus,
.lang-btn.english:hover {
    background-color: #e68900;
    color: #fff
}

.phone-input-container {
    display: flex;
    align-items: center;
    gap: 10px
}

.custom-dropdown {
    position: relative;
    width: 200px
}

.dropdown-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    z-index: 10
}

.dropdown-btn img {
    width: 20px;
    height: 14px;
    margin-right: 10px
}

.dropdown-list {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

.dropdown-item {
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer
}

.dropdown-item:hover {
    background: #f0f0f0
}

.dropdown-item img {
    width: 20px;
    height: 14px;
    margin-right: 10px
}

#phoneInput {
    flex: 1;
    font-weight: 700;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc
}

.alert-message {
    margin-top: 10px;
    font-weight: 700;
    display: none;
    text-align: center
}

.alert-success {
    color: green
}

.alert-danger {
    color: red
}

.request-price-btn {
    width: 165px;
    height: 62px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    border-radius: 1rem;
    border: none;
    position: relative;
    background: #0a2a5e;
    transition: .1s
}

.request-price-btn::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle farthest-corner at 10% 20%, #ff5ef7 17.8%, #02f5ff 100.2%);
    filter: blur(15px);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0
}

.request-price-btn:active {
    transform: scale(.9) rotate(3deg);
    background: radial-gradient(circle farthest-corner at 10% 20%, #ff5ef7 17.8%, #02f5ff 100.2%);
    transition: .5s
}

.input-error {
    border: 2px solid red !important;
    background-color: #fdd
}

.checkbox-error {
    border: 2px solid red !important;
    background-color: #fdd
}

.label-error {
    color: red !important;
    font-weight: 700
}

.map-container {
    width: 90%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0
}

@media (max-width:1199px) {
    .map-container {
        width: 100%;
        height: 400px
    }
}

.alert-message {
    margin-top: 10px;
    font-weight: 700;
    display: none;
    text-align: center
}

.alert-success {
    color: green
}

.alert-danger {
    color: red
}

.request-price-btn {
    width: 165px;
    height: 62px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    border-radius: 1rem;
    border: none;
    position: relative;
    background: #0a2a5e;
    transition: .1s
}

.request-price-btn::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle farthest-corner at 10% 20%, #ff5ef7 17.8%, #02f5ff 100.2%);
    filter: blur(15px);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0
}

.request-price-btn:active {
    transform: scale(.9) rotate(3deg);
    background: radial-gradient(circle farthest-corner at 10% 20%, #ff5ef7 17.8%, #02f5ff 100.2%);
    transition: .5s
}

.input-error {
    border: 2px solid red !important;
    background-color: #fdd
}

.checkbox-error {
    border: 2px solid red !important;
    background-color: #fdd;
    padding: 5px;
    border-radius: 5px
}

.alert-message {
    margin-top: 10px;
    font-weight: 700;
    display: none;
    text-align: center
}

.alert-success {
    color: green
}

.alert-danger {
    color: red
}

.request-price-btn {
    width: 165px;
    height: 62px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    border-radius: 1rem;
    border: none;
    position: relative;
    background: #0a2a5e;
    transition: .1s
}

.request-price-btn::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle farthest-corner at 10% 20%, #ff5ef7 17.8%, #02f5ff 100.2%);
    filter: blur(15px);
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0
}

.request-price-btn:active {
    transform: scale(.9) rotate(3deg);
    background: radial-gradient(circle farthest-corner at 10% 20%, #ff5ef7 17.8%, #02f5ff 100.2%);
    transition: .5s
}

.input-error {
    border: 2px solid red !important;
    background-color: #fdd
}

.checkbox-error {
    border: 2px solid red !important;
    background-color: #fdd;
    padding: 5px;
    border-radius: 5px
}

body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column
}

.container {
    flex: 1
}

.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%
}

.social-links a {
    margin: 0 10px;
    color: #fff;
    font-size: 24px;
    text-decoration: none
}

.social-links a:hover {
    color: #f39c12
}

.dropdown-menu li,
.dropdown-menu li a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    direction: rtl !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 50px !important;
}

.dropdown-menu li a {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}