/* ===== intl-tel-input Dark Mode Overrides ===== */
/* Only override colors/backgrounds. Let the library handle layout. */

/* Container must be full width */
.iti {
    width: 100% !important;
    display: block !important;
}

/* The phone input must fill its container */
.iti .iti__tel-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 10px !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

.iti .iti__tel-input:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.iti .iti__tel-input:focus {
    border-color: var(--color-primary, #00d4aa) !important;
    background: rgba(0, 212, 170, 0.02) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1) !important;
    outline: none !important;
}

.iti .iti__tel-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* Selected country button — transparent bg */
.iti .iti__selected-country-primary {
    background: transparent !important;
}

.iti .iti__selected-country-primary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Dial code text */
.iti .iti__selected-dial-code {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
}

/* Arrow */
.iti .iti__arrow {
    border-top-color: rgba(255, 255, 255, 0.4) !important;
}

.iti .iti__arrow--up {
    border-bottom-color: rgba(255, 255, 255, 0.4) !important;
}

/* Dropdown */
.iti .iti__dropdown-content {
    background: rgba(17, 24, 32, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px) !important;
}

/* Search input in dropdown */
.iti .iti__search-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 13px !important;
}

.iti .iti__search-input:focus {
    border-color: var(--color-primary, #00d4aa) !important;
    outline: none !important;
}

.iti .iti__search-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* Country list items */
.iti .iti__country {
    color: rgba(255, 255, 255, 0.8) !important;
}

.iti .iti__country:hover,
.iti .iti__country.iti__highlight {
    background: rgba(0, 212, 170, 0.08) !important;
    color: #fff !important;
}

.iti .iti__country.iti__active {
    background: rgba(0, 212, 170, 0.12) !important;
    color: var(--color-primary, #00d4aa) !important;
}

.iti .iti__country-name {
    color: inherit !important;
}

.iti .iti__dial-code {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Divider */
.iti .iti__divider {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Scrollbar */
.iti .iti__country-list::-webkit-scrollbar {
    width: 4px;
}

.iti .iti__country-list::-webkit-scrollbar-track {
    background: transparent;
}

.iti .iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Settings page: ensure full width in settings-field */
.settings-field .iti {
    width: 100% !important;
}