/* Custom styling for intl-tel-input plugin */

/* Ensure parent containers don't hide dropdown */
/* .iti,
div[class*="space-y"] .iti,
form .iti {
    overflow: visible !important;
} */

/* Container styling */
/* .iti {
    width: 100%;
    display: block;
    direction: ltr !important;
    text-align: left !important;
    position: relative;
    overflow: visible !important;
} */

/* html[dir="rtl"] .iti__input {
    direction: ltr !important;
    text-align: left !important;
    
    padding-left: 5.5rem !important;
    padding-right: 0.75rem !important;
} */

/* html[dir="rtl"] .iti__flag-container {
   
    right: auto !important;
    left: 0 !important;
    padding-left: 0.75rem !important;
    padding-right: 0 !important;
} */
/* 
html[dir="rtl"] .iti__selected-flag {
    direction: ltr !important;
} */

/* Input field styling */
/* .iti__input {
    width: 100%;
    padding: 0.75rem;
    padding-left: 3rem;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    background-color: rgba(249, 250, 251, 0.5);
    outline: none;
    transition: border-color 0.2s;
    font-size: 1rem;
    font-family: inherit;
} */

/* .iti__input:focus {
    border-color: #f1a68e;
    box-shadow: 0 0 0 3px rgba(241, 166, 142, 0.1);
} */

/* .iti__input::placeholder {
    color: #9ca3af;
} */

/* .iti__country-list {
    text-align: left !important;
    direction: ltr !important;
} */

/* Adjust the placeholder to not look "flipped" */
/* #login-phone-input::placeholder {
    text-align: left;
    direction: ltr;
} */

/* Flag styling */
/* .iti__flag-container {
    position: absolute;
    left: 0;
    top: 0;
    padding-right: 0.75rem;
    height: 100%;
    display: flex;
    align-items: center;
} */

/* .iti__selected-flag {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
} */

/* .iti__selected-flag:hover {
    background-color: rgba(241, 166, 142, 0.1);
} */

/* .iti__flag {
    width: 1.5rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
} */

/* .iti__arrow {
    width: 0;
    height: 0;
    border-left: 0.35rem solid transparent;
    border-right: 0.35rem solid transparent;
    border-top: 0.4rem solid #6b7280;
    margin-left: 0.35rem;
    display: inline-block;
    vertical-align: middle;
} */

/* Dropdown list styling */
/* .iti__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999 !important;
    width: 100%;
    max-height: 20rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
} */

/* .iti__dropdown--visible {
    display: block;
} */

/* .iti__dropdown--hidden {
    display: none;
} */

/* List item styling */
/* .iti__list {
    list-style: none;
    padding: 0;
    margin: 0;
} */
/* 
.iti__list-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
} */

/* .iti__list-item:last-child {
    border-bottom: none;
} */

/* .iti__list-item:hover {
    background-color: #f9fafb;
} */

/* .iti__list-item.iti__highlight {
    background-color: rgba(241, 166, 142, 0.15);
} */

/* .iti__list-item.iti__active {
    background-color: rgba(241, 166, 142, 0.2);
    color: #f1a68e;
    font-weight: 600;
} */

/* .iti__flag-box {
    margin-left: 0.75rem;
} */

/* .iti__country-name {
    flex: 1;
    text-align: left !important;
} */

/* .iti__dial-code {
    color: #6b7280;
    margin-left: auto;
    margin-right: 0.5rem;
} */

/* Search input styling (if enabled) */
/* .iti__search-input {
    width: calc(100% - 2rem);
    margin: 0.5rem 1rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    outline: none;
}

.iti__search-input:focus {
    border-color: #f1a68e;
} */

/* No countries message */
/* .iti__no-countries {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
} */

/* Mobile responsive */
/* @media (max-width: 640px) {
    .iti__dropdown {
        width: calc(100% + 2rem);
        right: -1rem;
    }

    .iti__input {
        font-size: 16px;
    }
} */

/* Custom styling for intl-tel-input plugin */

/* 1. Force the Container to be LTR */
.iti {
    width: 100%;
    display: block;
    direction: ltr !important;
    /* Force LTR for the whole widget */
    text-align: left !important;
    position: relative;
    overflow: visible !important;
}

/* 2. Fix the Input Field */
.iti__input {
    width: 100%;
    padding: 0.75rem;
    /* This padding makes room for the flag and dial code on the left */
    padding-left: 4.5rem !important;
    padding-right: 0.75rem !important;
    direction: ltr !important;
    text-align: left !important;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    background-color: rgba(249, 250, 251, 0.5);
    outline: none;
    transition: border-color 0.2s;
    font-size: 1rem;
}

/* 3. Ensure the Flag Container stays on the Left */
.iti__flag-container {
    position: absolute;
    left: 0 !important;
    /* Force to left */
    right: auto !important;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    z-index: 5;
}

/* 4. Dropdown Alignment (Align to the left of the input) */
.iti__dropdown {
    position: absolute;
    top: 100%;
    left: 0 !important;
    /* Align dropdown to left edge */
    right: auto !important;
    z-index: 9999 !important;
    width: 100%;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 90px !important;
}

/* 5. Country List Text Alignment */
.iti__country-name {
    flex: 1;
    text-align: left !important;
    direction: ltr !important;
}

.iti__dial-code {
    color: #6b7280;
    margin-left: 0.5rem;
    direction: ltr !important;
}

/* 6. Placeholder Fix */
.iti__input::placeholder {
    color: #9ca3af;
    text-align: left !important;
    direction: ltr !important;
}

/* Handle Focus State */
.iti__input:focus {
    border-color: #f1a68e;
    box-shadow: 0 0 0 3px rgba(241, 166, 142, 0.1);
}