/* International Tel Input Dark Theme Adjustments */
.iti {
    width: 100%;
    margin-bottom: 20px;
}

/* Container for the dropdown */
.iti__dropdown-content,
.iti__country-list {
    background-color: #00142d !important;
    /* var(--primary) equivalent for safety */
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    z-index: 10001 !important;
}

/* The search box at the top */
.iti__search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: none !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    outline: none !important;
}

.iti__country {
    padding: 10px 15px !important;
    transition: 0.2s ease;
}

/* Hover and selection state */
.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(212, 175, 55, 0.2) !important;
    color: #d4af37 !important;
}

.iti__country-name {
    color: white !important;
    font-size: 14px !important;
}

.iti__dial-code {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
}

.iti__selected-dial-code {
    color: white !important;
    font-family: 'Outfit', sans-serif !important;
    margin-left: 8px !important;
}

/* Scrollbar Styling */
.iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #00142d;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

/* Prevent text color being inherited as black in some browsers */
.iti__country-list * {
    color: inherit;
}

/* Input placeholder styling to avoid redundancy */
.iti input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}