/* intl-tel-input — shared dropdown + layout fixes */

.iti {
    width: 100%;
    display: block;
}

.iti--container {
    z-index: 10050 !important;
}

.iti__country-list {
    z-index: 10051 !important;
    max-height: 240px;
}

.iti__search-input {
    padding: 0.45rem 0.65rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.iti__search-input:focus {
    border-color: #6d28d9;
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(109, 40, 217, 0.2);
}

.iti__country {
    padding: 0.45rem 0.65rem;
}

.iti__country.iti__highlight {
    background: #ede9fe;
}

.iti__selected-country-primary {
    cursor: pointer;
}

.iti__selected-country-primary:hover,
.iti__selected-country-primary:focus {
    background: rgba(109, 40, 217, 0.08);
}

/* Auth forms (create-cv, register) */
.auth-hn3-card:has(.auth-hn3-input-wrap--phone),
.auth-hn3-card__inner:has(.auth-hn3-input-wrap--phone) {
    overflow: visible;
}

.auth-hn3-input-wrap--phone .iti__tel-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 6.25rem;
    border: 1.5px solid rgba(126, 34, 206, 0.15);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--hn2-text, #2e1065);
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.auth-hn3-input-wrap--phone .iti__tel-input::placeholder {
    color: rgba(126, 34, 206, 0.35);
}

.auth-hn3-input-wrap--phone .iti__tel-input:hover {
    border-color: rgba(124, 58, 237, 0.35);
}

.auth-hn3-input-wrap--phone .iti__tel-input:focus {
    outline: none;
    border-color: var(--hn2-primary, #6d28d9);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.15);
    transform: translateY(-1px);
}

.auth-hn3-input-wrap--phone .iti__tel-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-hn3-input-wrap--phone .iti__flag-container {
    border-radius: 12px 0 0 12px;
}

.auth-hn3-input-wrap--phone .iti__selected-flag {
    border-radius: 12px 0 0 12px;
    padding: 0 0.5rem 0 0.75rem;
    background: rgba(109, 40, 217, 0.04);
    cursor: pointer;
}

.auth-hn3-input-wrap--phone .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background: rgba(109, 40, 217, 0.08);
}

.auth-hn3-input-wrap--phone .iti__divider {
    border-bottom-color: rgba(126, 34, 206, 0.1);
}
