/********** Template CSS **********/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'ArbFONTS-Ya-ModernPro-Bold';
    src: url('../fonts/Ya-ModernPro-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
span,
p,
a {
    font-family: 'ArbFONTS-Ya-ModernPro-Bold', sans-serif !important;
}

:root {
    --primary: #212529;
    --secondary: #212529;

    --light: #f0f4f8;
    --dark: #2b4560;

    --gradient-primary: linear-gradient(135deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(55, 177, 214, 1) 0%, rgba(78, 189, 186, 1) 100%);
}

a:hover {
    
    text-decoration: none;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}



/*** Navbar ***/

nav {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);

}


/* ========================================= */
/* منطقة المستخدم في الهيدر (User Area)      */
/* ========================================= */

/* تأثيرات أزرار تسجيل الدخول والزوار */
.guest-state .btn {
    transition: all 0.3s ease;
    padding-top: 8px;
    padding-bottom: 8px;
}

.guest-state .btn-outline-light:hover {
    color: rgba(43, 69, 96, 1) !important;
}

/* تأثير الأفاتار عند تمرير الماوس */
.user-avatar-wrapper {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-avatar-wrapper:hover {
    transform: scale(1.05);
}

/* ========================================= */
/* إصلاح وتنسيق القائمة المنسدلة (Dropdown)  */
/* ========================================= */
.custom-dropdown {
    min-width: 220px;
    animation: fadeInDropdown 0.3s ease;

    /* هذا الجزء يمنع القائمة من الخروج خارج الشاشة في الاتجاه العربي */
    right: auto !important;
    transform-origin: top right;
}

.custom-dropdown .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 4px;
}

.custom-dropdown .dropdown-item:hover {
    background-color: #f8fafc;
    transform: translateX(-5px);
    /* حركة خفيفة لليسار عند الهوفر */
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تعديلات الموبايل للـ User Area */
@media (max-width: 991.98px) {
    .border-top-mobile {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-dropdown {
        text-align: right;
        /* ضبط النص في الموبايل */
        right: auto !important;
        left: 0 !important;
        /* توسيط القائمة في الموبايل */
    }
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    padding: 10px 0;
    color: #696E77;
    font-weight: 400;
    outline: none;
}


.navbar .navbar-nav .nav-link:not(:last-child) {
    margin-left: 25px;
   
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* ========================================= */
/* تظبيط أيقونة الموبايل (Navbar Toggler)    */
/* ========================================= */

/* إزالة أي حواف أو ظلال عند الضغط */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 5px 0;
    /* مساحة مريحة للضغط بدون ما تاخد حيز كبير */
}

/* تأكيد إزالة التأثير عند الضغط الفعلي (Focus & Active) */
.navbar-toggler:focus,
.navbar-toggler:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* تغيير لون الأيقونة لـ أبيض ناصع وواضح عشان تليق مع الخلفية الزرقاء */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    width: 30px;
    /* حجم الأيقونة */
    height: 30px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}


/* ================= صندوق البحث ================= */
.search-container {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    padding: 40px 50px 50px;
    border-radius: 8px;
    z-index: 20;
    margin-top: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 24px;
    position: relative;
    font-weight: 300;
}

.search-header img {
    position: absolute;
    top: -20px;
    left: -20px;
}




.search-btn {
    background-color: #ffffff;
    color: rgba(43, 69, 96, 1);
    font-weight: 800;
    font-size: 18px;
    padding: 12px 70px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    max-width: fit-content;

}



.page-header {
    background: linear-gradient(rgba(43, 69, 96, 1), rgba(0, 158, 207, 1)), url(../img/carousel-2.png) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}


/* feature
*/
/* إعدادات الكارت الأساسية */
.feature-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-card.image-card {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


.image-card .card-content h3 {

    margin-bottom: 25px;

}

/* ================================== */
/* 1. تصميم الكروت الملونة (التركواز) */
/* ================================== */
.color-card {
    background: var(--gradient-secondary);
    flex-direction: column;
    padding: 2rem;
}

.color-card .icon-wrapper img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تأثير الـ Hover على الكارت الملون */
.color-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(55, 177, 214, 0.4);
}

.color-card:hover .icon-wrapper img {
    transform: scale(1.2) rotate(-5deg);
}


/* ================================== */
/* 2. تصميم كروت الصور */
/* ================================== */
.image-card .card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* الطبقة الزرقاء الشفافة فوق الصورة */
.image-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(43, 69, 96, 0.8) 0%, rgba(43, 69, 96, 0.2) 100%);
    transition: background 0.5s ease;
}

.image-card .card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 40px;
    text-align: right;
}

.image-card .card-content h3 {
    font-size: 2.2rem;
    transition: transform 0.5s ease, text-shadow 0.5s ease;
}

/* تأثير الـ Hover على كارت الصورة */
.image-card:hover .card-bg-img {
    transform: scale(1.08);
}

.image-card:hover .card-overlay {
    background: linear-gradient(to left, rgba(43, 69, 96, 0.95) 0%, rgba(43, 69, 96, 0.4) 100%);
}

.image-card:hover .card-content h3 {
    transform: translateX(-15px);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}





/* ========================================= */
/* قسم "من نحن" - About Us Section           */
/* ========================================= */

.about-image-wrapper {
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
}

.about-img {
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 158, 207, 0.15) !important;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.subtitle-badge {
    background-color: rgba(0, 158, 207, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 158, 207, 0.2);
    font-size: 0.9rem;
}

.about-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: all 0.4s ease;
}

.about-btn:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateX(-8px);
    box-shadow: 0 10px 20px rgba(0, 158, 207, 0.3) !important;
}

.about-btn i {
    transition: transform 0.3s ease;
}

.about-btn:hover i {
    transform: translateX(-5px);
}


@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }

    #header-carousel .carousel-item>img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .search-container {
        border-radius: 8px;
        margin-top: 20px;
        flex-wrap: wrap;
        padding: 25px 20px;
    }

    .search-header {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .search-header img {
        width: 30px;
        top: -15px;
        left: -10px;
    }





    /* الحقول تاخد عرض الشاشة بالكامل في الموبايل */

    .search-btn {
        padding: 12px;
    }

    .feature-card {
        min-height: 150px;

    }

    .feature-card.image-card {
        min-height: 150px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .image-card .card-content h3 {
        font-size: 1.5rem;
        transition: transform 0.5s ease, text-shadow 0.5s ease;
        margin-bottom: 25px;

    }

}



@media (min-width: 769px) and (max-width: 991.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }

    #header-carousel .carousel-item>img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .feature-card {
        min-height: 180px;
    }
}



/*** Service ***/

.service-item {
    border-radius: 10px;
    overflow: hidden;
}

.service-item:hover>img {
    transform: scale(1.1);
}

.service-item>img {
    width: 100%;
    transition: all 1s ease;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%) !important;

}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;

}


/* ========================================= */
/* الفوتر - Footer Section                   */
/* ========================================= */

.custom-footer {
    background: linear-gradient(to left, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-footer .footer-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.custom-footer .footer-link:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(-5px);
}

.custom-footer .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(55, 177, 214, 1);
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-footer .social-btn:hover {
    background-color: white;
    color: rgba(0, 158, 207, 1);
    transform: translateY(-5px) scale(1.1);
}

.custom-footer .copyright-text {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
}


/* ========================================= */
/* قسم "تواصل معنا" - تصميم عالمي احترافي    */
/* ========================================= */

.global-contact-section {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
}

.global-contact-section .contact-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3) !important;
}

.global-contact-section .form-card {
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.global-contact-section .form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.global-contact-section .icon-box {
    color: rgba(0, 158, 207, 1) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.global-contact-section .info-item:hover .icon-box {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.custom-input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background-color: #f8fafc !important;
    color: #334155 !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.custom-input:focus {
    background-color: #ffffff !important;
    border-color: rgba(0, 158, 207, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(0, 158, 207, 0.1) !important;
}

.form-floating>label {
    left: auto !important;
    right: 0 !important;
    padding-right: 1.25rem !important;
    transform-origin: top right !important;
    color: #94a3b8;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(1rem) !important;
    color: rgba(0, 158, 207, 1);
    font-weight: 600;
}

.form-select.custom-input {
    background-position: left 1rem center !important;
    padding-right: 1.25rem !important;
    padding-left: 2.5rem !important;
}

.global-submit-btn {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    border: none;
    background-size: 200% auto;
    transition: all 0.5s ease;
}

.global-submit-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 158, 207, 0.3) !important;
    color: #ffffff !important;
}

/* الموبايل */
@media (max-width: 991.98px) {
    .global-contact-section .contact-wrapper {
        border-radius: 20px !important;
    }

    .global-contact-section .col-lg-5 {
        padding: 2.5rem 1.5rem !important;
        text-align: center;

    }

    span.badge.bg-white.text-dark.rounded-pill.w-auto.align-self-start.px-3.py-2.mb-4.fw-bold.shadow-sm {
        margin: auto;
    }

    .global-contact-section .contact-info-list {
        align-items: center;
        text-align: right;
    }

    .global-contact-section .col-lg-7 {
        padding: 10px !important;
    }

    .global-contact-section .form-card {
        border-radius: 20px !important;
        padding: 2rem 1.5rem !important;
    }
}


/* ========================================= */
/* استعلامات التابلت (Tablet Responsive Fix) */
/* ========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* تنسيق قسم من نحن */
    .about-section {
        text-align: center;
    }

    .about-text-content {
        padding-right: 0 !important;
        margin-top: 2rem;
    }

    .subtitle-badge {
        margin: 0 auto 1rem auto !important;
        display: table;
    }

    /* تنسيق قسم تواصل معنا في التابلت لمنع التمدد المبالغ فيه */
    .global-contact-section .contact-wrapper {
        padding: 3rem 2rem !important;
    }

    .global-contact-section .col-lg-7 {
        padding: 20px 40px !important;
        /* هوامش جانبية مريحة للفورم */
    }

    .global-contact-section .form-card {
        padding: 3rem !important;
    }

    /* ضبط الهيرو والبحث */
    .search-container {
        padding: 35px;
    }

    .search-header {
        font-size: 22px;
    }
}




/* ========================================= */
/* صفحة نتائج البحث - Search Results         */
/* ========================================= */

/* لون خلفية هادئ جداً للسكشن عشان الكروت البيضاء تنطق */
.search-results-section {
    background-color: #f8fafc;
    /* لون رمادي مزرق فاتح جداً */
}

/* الكارت الأساسي */
.provider-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* حركة ارتدادية ناعمة */
}

.provider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 158, 207, 0.1);
    /* ظل أزرق خفيف يعكس هويتك */
    border-color: rgba(0, 158, 207, 0.1);
}

/* الصورة وتأثير الزووم */
.card-img-wrapper {
    /* بنستخدم الـ Masking عشان الصورة متخرجش برا الحواف الدائرية */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.provider-img {
    transition: transform 0.6s ease;
}

/* إخفاء كل كروت الفنيين افتراضياً لعمل الـ Load More */
.provider-item {
    display: none;
}

.provider-card:hover .provider-img {
    transform: scale(1.08);
    /* زووم ناعم للصورة عند الوقوف على الكارت */
}

/* التقييم العائم (الرقم) */
.floating-rating {
    z-index: 2;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

/* صندوق التفاصيل (الموقع والسعر) */
.provider-details {
    background-color: #f1f5f9 !important;
    /* لون رمادي فاتح مريح */
    border: 1px dashed #cbd5e1;
}

/* زر طلب الخدمة (التدرج اللوني) */
.provider-submit-btn {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    border: none;
    background-size: 200% auto;
    transition: all 0.4s ease;
}

.provider-submit-btn:hover {
    background-position: right center;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 158, 207, 0.2) !important;
}

/* زر المزيد من التفاصيل (Outline) */
.btn-outline-dark {
    border-color: #cbd5e1;
    color: #475569;
}

.btn-outline-dark:hover {
    background-color: #334155;
    border-color: #334155;
    color: #fff;
    transform: translateY(-2px);
}

/* زر عرض المزيد أسفل الصفحة */
.load-more-btn {
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 158, 207, 1);
    color: rgba(0, 158, 207, 1);
}

.load-more-btn:hover {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    color: white;
    border-color: transparent;
}




/* ========================================= */
/* صفحة خدمة تنظيف التكييفات                 */
/* ========================================= */

/* خلفية الهيرو المتدرجة */
.service-hero-section {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    overflow: hidden;
}

/* أنيميشن طفو خفيف لصورة الهيرو (لو حطيت صورة) */
.hero-floating-img {
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* بار الفلترة (تأثير الزجاج) */
.glass-filter-bar {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    border-radius: 10px;
}

/* تنسيق الـ Select في الفلتر */
.custom-select-icon {
    height: 50px;
    border-radius: 8px !important;
    color: #475569;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    /* إصلاح اتجاه السهم للغة العربية */
    background-position: left 1rem center !important;
    padding-right: 1.25rem !important;
    padding-left: 2.5rem !important;
}

.custom-select-icon:focus {
    box-shadow: 0 0 0 3px rgba(0, 158, 207, 0.2) !important;
    background-color: #fff !important;
}

/* كروت الخدمات الفرعية */
.service-premium-card {
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 158, 207, 0.12);
}

/* تأثير الزووم لصورة الخدمة */
.service-premium-card .img-wrapper {
    height: 200px;
    /* توحيد ارتفاع الصور */
}

.service-premium-card .service-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-premium-card:hover .service-img {
    transform: scale(1.1);
    /* زووم ناعم للصورة */
}

/* زر اختيار الفنيين (متدرج) */
.btn-primary-gradient {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    border: none;
    background-size: 200% auto;
    transition: all 0.4s ease;
}

.btn-primary-gradient:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 158, 207, 0.3) !important;
    color: #fff !important;
}

/* ضبط الهوامش في الموبايل */
@media (max-width: 991.98px) {
    .filter-bar-section {
        margin-top: -30px !important;
    }

    .glass-filter-bar {
        padding: 20px !important;
    }
}

/* ========================================= */
/* أنيميشن قسم الحالة الفارغة (Empty State)  */
/* ========================================= */

/* أنيميشن النبض (Scale Up and Down) للأيقونة */
.pulse-icon-wrapper {
    animation: pulseIcon 2.5s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 158, 207, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(0, 158, 207, 0);
        /* الظل بيكبر ويختفي */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 158, 207, 0);
    }
}

/* أنيميشن السهم التوجيهي (بيتحرك لفوق عشان يبص للفلتر) */
.animated-arrow {
    animation: bounceUp 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes bounceUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* auth css start */

/* ========================================= */
/* صفحة تحديد الهوية (Identity Selection)    */
/* ========================================= */

/* خلفية الشاشة بالكامل (نفس تدرج لون هويتك) */
.identity-selection-section {
    background: linear-gradient(135deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    overflow: hidden;
}

/* زر الرجوع */
.back-btn {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.back-btn:hover {
    transform: translateX(-8px);
    /* السهم بيتحرك لليمين شوية (عشان الموقع عربي RTL) */
    opacity: 1;
    color: #fff !important;
}

/* إعدادات الكارت الأساسية */
.identity-card {
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

/* التأثير لما تقف بالماوس على الكارت (يرتفع وينور) */
.identity-card:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 158, 207, 0.3);
    /* إطار خفيف جداً يظهر */
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.2) !important;
}

/* ----------------------------------------- */
/* تنسيق الأيقونات الدائرية والتوهج (Glow)   */
/* ----------------------------------------- */
.icon-circle {
    width: 110px;
    height: 110px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ألوان التدرج للأيقونات (تطابق الفيجما) */
.bg-gradient-primary {
    background: linear-gradient(135deg, rgba(0, 158, 207, 1) 0%, rgba(43, 69, 96, 1) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, rgba(55, 177, 214, 1) 0%, rgba(0, 158, 207, 1) 100%);
}

/* تغليف الأيقونة لعمل الشادو المضيء (Glow Effect) */
.icon-glow-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

/* صناعة التوهج باستخدام ::after */
.icon-glow-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0;
    /* مخفي في البداية */
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.glow-primary::after {
    background: rgba(0, 158, 207, 0.4);
}

.glow-secondary::after {
    background: rgba(55, 177, 214, 0.4);
}

/* تفعيل الأنيميشن والتوهج عند الوقوف بالماوس */
.identity-card:hover .icon-glow-wrapper::after {
    transform: scale(1.1);
    /* التوهج بيكبر */
    opacity: 1;
}

.identity-card:hover .icon-circle {
    transform: scale(1.1);
    /* الأيقونة نفسها بتكبر */
}

/* ----------------------------------------- */
/* تعديلات الموبايل (Responsive)             */
/* ----------------------------------------- */
@media (max-width: 768px) {
    .identity-card {
        padding: 3rem 2rem !important;
        /* تقليل الحواف في الموبايل */
    }

   

    .display-5 {
        font-size: 2rem;
        /* تصغير العنوان للموبايل */
    }
}




/* ========================================= */
/* تصميم شاشات المصادقة (Full Screen Split)  */
/* ========================================= */

/* تنسيق حقول الإدخال */
.custom-auth-input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 2px !important;
    /* حواف شبه حادة زي الفيجما */
    background-color: #fff !important;
    color: #334155 !important;
    transition: all 0.3s ease;
    height: 55px !important;
}

.custom-auth-input:focus {
    border-color: rgba(0, 158, 207, 0.8) !important;
    box-shadow: none !important;
}

/* ضبط الـ Labels للغة العربية RTL */
.form-floating>label {
    left: auto !important;
    right: 0 !important;
    padding-right: 1.25rem !important;
    transform-origin: top right !important;
    color: #94a3b8;
    font-size: 0.9rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.75rem) translateX(1rem) !important;
    color: rgba(0, 158, 207, 1);
    font-weight: 600;
}

/* زر الرجوع */
.back-link {
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    color: rgba(0, 158, 207, 1) !important;
}

/* ========================================= */
/* الجانب المرئي (Visual Panel) الأزرق        */
/* ========================================= */
.auth-visual-panel {
    background: linear-gradient(135deg, rgba(43, 69, 96, 1) 0%, rgba(20, 40, 60, 1) 100%);
    overflow: hidden;
}

/* ========================================= */
/* التموجات الجديدة (Topography Contour Lines) */
/* ========================================= */
.new-wavy-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    /* شفافية الخطوط */
    /* كود SVG للخطوط المتداخلة الدائرية الرفيعة */
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.5'%3E%3Ccircle cx='400' cy='400' r='50'/%3E%3Ccircle cx='400' cy='400' r='100'/%3E%3Ccircle cx='400' cy='400' r='150'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='250'/%3E%3Ccircle cx='400' cy='400' r='300'/%3E%3Ccircle cx='400' cy='400' r='350'/%3E%3Ccircle cx='400' cy='400' r='400'/%3E%3Ccircle cx='400' cy='400' r='450'/%3E%3Ccircle cx='400' cy='400' r='500'/%3E%3Ccircle cx='400' cy='400' r='550'/%3E%3Ccircle cx='400' cy='400' r='600'/%3E%3Ccircle cx='400' cy='400' r='650'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: -200px -200px;
    /* تحريك الدوائر للزاوية العلوية */
}

/* نسخة تانية من التموجات للزاوية السفلية */
.new-wavy-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.5'%3E%3Ccircle cx='400' cy='400' r='50'/%3E%3Ccircle cx='400' cy='400' r='100'/%3E%3Ccircle cx='400' cy='400' r='150'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='250'/%3E%3Ccircle cx='400' cy='400' r='300'/%3E%3Ccircle cx='400' cy='400' r='350'/%3E%3Ccircle cx='400' cy='400' r='400'/%3E%3Ccircle cx='400' cy='400' r='450'/%3E%3Ccircle cx='400' cy='400' r='500'/%3E%3Ccircle cx='400' cy='400' r='550'/%3E%3Ccircle cx='400' cy='400' r='600'/%3E%3Ccircle cx='400' cy='400' r='650'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: calc(100% + 200px) calc(100% + 200px);
    /* تحريك الدوائر للزاوية السفلية */
}

/* توهج خفيف أبيض خلف الأيقونة */
.glow-light::after {
    background: rgba(0, 158, 207, 0.8) !important;
    filter: blur(25px) !important;
}

/* ========================================= */
/* تعديلات الموبايل (Responsive)             */
/* ========================================= */
@media (max-width: 991.98px) {

    /* في الموبايل، البانل الأزرق بياخد جزء من الشاشة من فوق */
    .auth-visual-panel {
        min-height: 400px;
        padding: 3rem !important;
    }
}


/* ========================================= */
/* شادو كارت التسجيل الاحترافي               */
/* ========================================= */
.form-shadow {
    /* شادو متعدد الطبقات ليعطي عمق (Depth) وواقعية */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.02);
    /* تحديد خفيف جداً للحواف */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* حركة طفو خفيفة جداً عند تمرير الماوس فوق الفورم (اختياري بس بيدي فخامة) */
.form-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.03) !important;
}

/* auth css end */



/* ========================================= */
/* صفحة طلب الخدمة (Request Service)         */
/* ========================================= */

/* دوائر الأرقام للخطوات */
.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 158, 207, 1) 0%, rgba(43, 69, 96, 1) 100%);
    box-shadow: 0 5px 15px rgba(0, 158, 207, 0.3) !important;
    flex-shrink: 0; /* لمنع انكماش الدائرة في الشاشات الصغيرة */
}

/* رابط إضافة عنوان جديد */
.add-address-link {
    transition: all 0.3s ease;
}
.add-address-link:hover {
    color: rgba(0, 158, 207, 1) !important;
    transform: translateX(-5px); /* حركة لليسار */
}

/* تنسيق دوائر الاختيار (Radio Buttons) لتصبح احترافية */
.custom-radio .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.7rem; /* مسافة بين الدائرة والنص في الـ RTL */
    float: right; /* ضبط المحاذاة للغة العربية */
    border-color: #cbd5e1;
    cursor: pointer;
}

.custom-radio .form-check-input:checked {
    background-color: rgba(0, 158, 207, 1);
    border-color: rgba(0, 158, 207, 1);
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 207, 0.25);
}

.custom-radio .form-check-label {
    cursor: pointer;
    padding-top: 2px;
}

/* تعديلات الموبايل للخطوات */
@media (max-width: 768px) {
    .step-section .me-lg-5 {
        margin-right: 0 !important;
    }
    
    /* ترتيب صباحاً ومساءً في الموبايل */
    .time-period-group {
        justify-content: flex-start !important;
        margin-top: 15px;
    }
}

/* user dashboard  */

/* ========================================= */
/* تصميم لوحة التحكم (Dashboard)             */
/* ========================================= */

.dashboard-section {
    background-color: #f4f7fb;
}

/* تنسيق القائمة الجانبية (Sidebar) */
.custom-sidebar-nav .nav-link {
    color: #475569;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.custom-sidebar-nav .nav-link:hover {
    background-color: #f8fafc;
    color: rgba(0, 158, 207, 1);
    transform: translateX(-5px); /* حركة لليسار */
}

/* الكلاس النشط (Active State) */
.custom-sidebar-nav .nav-link.active {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    color: white !important;
    box-shadow: 0 5px 15px rgba(0, 158, 207, 0.2);
}

.custom-sidebar-nav .text-danger:hover {
    background-color: #fef2f2;
    color: #dc3545 !important;
}

/* تنسيق كروت الداشبورد */
.dashboard-card, .dashboard-stat-card {
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06) !important;
}

/* حقول الإدخال الخاصة بالبحث في الداشبورد */
.custom-dashboard-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 45px;
    color: #334155;
    /* إصلاح اتجاه السهم للغة العربية */
    background-position: left 1rem center !important;
    padding-right: 1rem !important;
    padding-left: 2.5rem !important;
}

.custom-dashboard-select:focus {
    border-color: rgba(0, 158, 207, 0.5);
    background-color: #fff !important;
}

/* ========================================= */
/* صفحة ملخص الطلب والتأكيد                 */
/* ========================================= */

.order-summary-card {
    border: 1px solid rgba(0,0,0,0.05);
}

/* المربع الأزرق الصغير بجانب الكلمات (كما في الفيجما) */
.bullet-square {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(0, 158, 207, 0.3); /* أزرق فاتح جداً */
    border-radius: 2px;
}

.summary-list li {
    font-size: 1.05rem;
}

/* أنيميشن علامة الصح في نافذة النجاح */
.success-checkmark {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========================================= */
/* تصميم كروت تفاصيل الخدمة (Fieldset Style) */
/* ========================================= */

.custom-fieldset-card {
    /* الإطار الأساسي للكارت */
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

/* في حالة إن الكارت ليه إطار أزرق (زي كارت تفاصيل الخدمة) */
.custom-fieldset-card.border-primary {
    border-color: rgba(0, 158, 207, 0.4) !important;
}

/* العنوان اللي بيقطع الإطار من فوق */
.fieldset-title {
    top: 0;
    right: 2.5rem; /* يبعد عن اليمين شوية */
    transform: translateY(-50%); /* يترفع نصه فوق الإطار ونصه تحته */
    margin: 0;
    z-index: 2;
}

/* تنسيقات صندوق كتابة التقييم */
.rating-select i {
    font-size: 1.1rem;
    transition: color 0.2s;
}

.rating-select i:hover,
.rating-select i.active {
    color: #ffc107; /* اللون الأصفر للتقييم */
}

/* تعديلات الموبايل */
@media (max-width: 768px) {
    .fieldset-title {
        right: 1.5rem;
        font-size: 1.1rem;
    }
}


/* ========================================= */
/* تصميم إضافة خدمة للفني (Worker Setup)     */
/* ========================================= */

/* الحقول (Inputs) الشفافة ذات الحدود الخفيفة كما في الصورة */
.custom-input-outline {
    background-color: #fff !important;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #475569;
    transition: all 0.3s ease;
}

.custom-input-outline:focus {
    border-color: rgba(0, 158, 207, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 158, 207, 0.1);
}

/* إصلاح سهم الـ Select في الـ RTL */
.custom-select-arrow {
    background-position: left 0.75rem center !important;
    padding-right: 1rem !important;
}

/* ========================================= */
/* صندوق الملاحظة الهامة (Important Note)    */
/* ========================================= */
.important-note-box {
    border-right: 4px solid #009ecf; /* خط جانبي خفيف يبرز البوكس */
}

/* علامة التعجب اللي بارزة برة الصندوق */
.exclamation-mark {
    position: absolute;
    right: -15px; /* يبرز برة الصندوق ناحية اليمين */
    top: 20px;
    width: 30px;
    height: 45px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ========================================= */
/* أزرار تحديد الأيام (Days Toggle Buttons)  */
/* ========================================= */
.btn-day-toggle {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 4px;
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1 1 0px; /* عشان كلهم ياخدوا نفس العرض متساويين */
    min-width: 80px;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-day-toggle:hover {
    background-color: #f8fafc;
}

/* ستايل الزر لما الفني يختاره (بيكون لونه سماوي فاتح زي الصورة) */
.btn-check:checked + .btn-day-toggle {
    background-color: #dcf1fa; /* لون سماوي فاتح جدًا */
    border-color: #009ecf;
    color: #009ecf;
}

/* تعديلات الموبايل للصندوق */
@media (max-width: 768px) {
    .important-note-box {
        max-width: 100%;
    }
    .exclamation-mark {
        right: 15px; /* يدخل جوه شوية في الموبايل عشان ميطيرش من الشاشة */
        top: -20px;
    }
}


/* ========================================= */
/* تصميم التابات والطلبات (Orders)           */
/* ========================================= */

/* تابات الفلترة */
.custom-order-tabs .nav-link {
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.custom-order-tabs .nav-link:hover {
    background-color: #e2e8f0;
}

.custom-order-tabs .nav-link.active {
    background: linear-gradient(-90deg, rgba(43, 69, 96, 1) 0%, rgba(0, 158, 207, 1) 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 158, 207, 0.2);
}

/* تصميم كارت الطلب الداخلي */
.order-item {
    border-color: #f1f5f9 !important;
    background-color: #fafaf9;
}

.hover-shadow.transition-all:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #e2e8f0 !important;
    background-color: #fff;
}

/* خط فاصل في الشاشات الكبيرة فقط */
@media (min-width: 768px) {
    .border-start-md {
        border-right: 1px solid #e2e8f0; /* right لأن الموقع RTL */
    }
}

/* ========================================= */
/* تنسيقات كروت الطلبات والفواصل             */
/* ========================================= */

.border-start-md {
    border-right: 1px solid #e2e8f0; /* Right عشان الموقع RTL */
}

@media (max-width: 767.98px) {
    .border-start-md {
        border-right: none; /* إخفاء الخط الفاصل في الموبايل */
        border-top: 1px solid #e2e8f0;
        padding-top: 1rem;
    }
}

/* ========================================= */
/* نظام النجوم التفاعلي (Rating Stars CSS)   */
/* ========================================= */
.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse; /* تريكة عشان النجوم تتلون من اليمين للشمال */
    justify-content: center;
}

.rating-stars input {
    display: none; /* إخفاء زر الراديو الفعلي */
}

.rating-stars label {
    font-size: 2.5rem;
    color: #e2e8f0; /* لون رمادي باهت للنجوم غير المحددة */
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s ease-in-out, transform 0.2s ease;
}

/* حركة خفيفة عند الوقوف على النجمة */
.rating-stars label:hover {
    transform: scale(1.1);
}

/* تلوين النجمة اللي واقف عليها وكل النجوم اللي قبلها */
.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #ffc107; /* اللون الأصفر الذهبي */
}

/* ========================================= */
/* زرار الإجراءات في إعدادات الحساب          */
/* ========================================= */

.fieldset-action {
    top: 0;
    left: 2.5rem; /* يبعد عن اليسار بنفس مسافة العنوان عن اليمين */
    transform: translateY(-50%); /* يقسم خط الكارت بالنص */
    margin: 0;
    z-index: 2;
    background-color: #ffffff;
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fieldset-action:hover {
    color: #009ecf !important;
}

/* تنسيقات إضافية لحقول العرض (Readonly) */
input[readonly], textarea[readonly] {
    background-color: transparent !important;
    border: 1px solid #e2e8f0;
    color: #334155;
}

input[readonly]:focus, textarea[readonly]:focus {
    box-shadow: none;
    border-color: #e2e8f0;
}

/* تعديلات الموبايل للزرار العائم */
@media (max-width: 768px) {
    .fieldset-action {
        left: 1rem;
        font-size: 0.8rem;
        padding: 0 8px;
    }
}