/* تحسين شكل dropdown اختيار الدولة */

/* تنسيق الكود جنب الموبايل (في Forgot فقط) */
.mobile-with-code {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mobile-with-code .country-code-select {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    position: relative; /* مهم علشان السهم يظهر */
}

.mobile-with-code .mobile-input {
    flex: 1 1 auto;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-with-code .mobile-input:focus {
    border-color: #3474d4;
    box-shadow: 0 0 0 3px rgba(52, 116, 212, 0.1);
    outline: none;
}

/* للعربي - عكس الاتجاه */
[dir="rtl"] .mobile-with-code {
    flex-direction: row-reverse;
}

/* تكبير حجم الخط علشان الأعلام تظهر أوضح */
.ec-register-select {
    font-size: 16px !important;
    line-height: 1.8 !important;
    padding: 7px 5px 12px 10px !important;
}

/* تحسين شكل الـ options */
.ec-register-select option {
    padding: 10px 15px !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    direction: inherit;
}

/* تحسين المسافة بين العلم والنص */
.ec-register-select option::before {
    margin-left: 8px;
    margin-right: 8px;
}

/* للعربي - محاذاة يمين */
[dir="rtl"] .ec-register-select {
    text-align: right !important;
    padding: 7px 15px 12px 20px !important;
}

/* للإنجليزي - محاذاة يسار */
[dir="ltr"] .ec-register-select {
    text-align: left !important;
}

/* تحسين شكل القائمة المنسدلة نفسها */
.ec-rg-select-inner {
    position: relative;
}

.ec-rg-select-inner select {
    background-color: #fff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ec-rg-select-inner select:hover {
    border-color: #3474d4;
}

.ec-rg-select-inner select:focus {
    border-color: #3474d4;
    box-shadow: 0 0 0 3px rgba(52, 116, 212, 0.1);
    outline: none;
}

/* تحسين شكل السهم */
.ec-rg-select-inner::after {
    content: "\f107";
    position: absolute;
    font-family: "EcIcons";
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    cursor: pointer;
    pointer-events: none;
    font-size: 20px;
    color: #777;
    z-index: 1;
}

/* في RTL - السهم على الشمال */
[dir="rtl"] .ec-rg-select-inner::after {
    left: 10px;
    right: auto;
}

/* في mobile-with-code layout */
.mobile-with-code .ec-rg-select-inner::after {
    right: 5px;
}

[dir="rtl"] .mobile-with-code .ec-rg-select-inner::after {
    left: 5px;
    right: auto;
}

/* تحسين شكل الأعلام في القائمة المفتوحة */
.ec-register-select:focus option:checked,
.ec-register-select option:hover {
    background-color: #f0f7ff !important;
}

/* تكبير حجم الأعلام */
.ec-register-select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Select2 styling - ضبط الـ border والـ height */
.select2-container--default .select2-selection--single {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    height: auto !important;
    min-height: 45px;
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px !important;
    padding-left: 15px !important;
    padding-right: 30px !important;
    font-size: 16px !important;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 15px !important;
   
}

.select2-container--default .select2-selection--single:hover {
 
}

.select2-container--default.select2-container--focus .select2-selection--single {
   
    box-shadow: 0 0 0 3px rgba(52, 116, 212, 0.1) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
    right: 10px !important;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 10px !important;
    right: auto !important;
}

/* في mobile-with-code - ضبط الـ select والـ input */
.mobile-with-code .select2-container {
    flex: 0 0 auto;
   width: 100%
   
}

.mobile-with-code .select2-container--default .select2-selection--single {
    min-height: auto;
    height: 45px !important;
}

.mobile-with-code .mobile-input {
    height: 45px;
    line-height: 45px;
}

