
.global-image-upload {
    position: relative !important;
}

.global-image-upload input[type="file"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    cursor: pointer;
}

.global-image-upload input[type="file"]:focus,
.global-image-upload input[type="file"]:focus-visible {
    outline: none;
}

#register-vertical-steps .text-dark.fs-16 {
    font-size: 0.8125rem !important;
    font-weight: 500;
    color: var(--bs-dark, #18181a) !important;
}

#register-vertical-steps label.error {
    display: block;
    color: var(--bs-danger, #dc3545);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#register-vertical-steps .global-multi-image-warning label.error {
    margin-top: 0.5rem;
}

/* --- START CHANGE: ALHIRAFI SMART PHONE SELECTOR --- */
/*
 * Arabic RTL support for provider registration only.
 *
 * The original intlTelInput.css remains unchanged.
 * Telephone numbers, selected flags and dialing codes
 * retain their existing LTR presentation.
 *
 * These overrides affect only the registration form
 * when the document language direction is RTL.
 */

/* Keep the telephone number itself left-to-right. */
html[dir="rtl"] #register-vertical-steps .iti input[type="tel"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

/* Align the country dropdown with the right side of the phone field. */
html[dir="rtl"] #register-vertical-steps .iti--inline-dropdown .iti__dropdown-content {
    right: 0;
    left: auto;
    margin-left: 0;
    margin-right: -1px;
    box-sizing: border-box;
}

/* Use RTL direction only inside the dropdown. */
html[dir="rtl"] #register-vertical-steps .iti__dropdown-content {
    direction: rtl;
    text-align: right;
}

/* Right-align the country search field. */
html[dir="rtl"] #register-vertical-steps .iti__search-input {
    direction: rtl;
    text-align: right;
}

/* Display country rows from right to left. */
html[dir="rtl"] #register-vertical-steps .iti__country-list {
    direction: rtl;
    text-align: right;
}

/* Position country flags naturally on the right. */
html[dir="rtl"] #register-vertical-steps .iti__country {
    direction: rtl;
    text-align: right;
}

/* Preserve the original flag sprite and dimensions. */
html[dir="rtl"] #register-vertical-steps .iti__country .iti__flag-box {
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 8px;
}

/* Keep English country names readable within RTL rows. */
html[dir="rtl"] #register-vertical-steps .iti__country .iti__country-name {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
    margin-right: 0;
    margin-left: 8px;
}

/* Keep international dialing codes LTR. */
html[dir="rtl"] #register-vertical-steps .iti__country .iti__dial-code {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    margin-inline-start: auto;
}

/*
 * Do not modify:
 * - .iti__flag background images
 * - .iti__flag-container positioning
 * - .iti__selected-flag layout
 * - country visibility or display properties
 * - input padding or width
 *
 * This preserves the existing functioning selector.
 */
/* --- END CHANGE: ALHIRAFI SMART PHONE SELECTOR --- */
