/* ÜNİTERCİH — intl-tel-input entegrasyonu (bayrak + ülke kodu + maske) */

.phone-field {
    min-width: 0;
}

.phone-field .iti {
    position: relative;
    display: block;
    width: 100%;
    border: 1px solid var(--ink-200, #e5eaf1);
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.phone-field .iti:focus-within {
    border-color: var(--brand-400, #7c9fe0);
    box-shadow: 0 0 0 3px rgba(60, 81, 128, .14);
}

.phone-field.is-invalid .iti,
.fair-field2.is-invalid.phone-field .iti {
    border-color: var(--accent-500, #e11d2f);
}

.phone-field .iti__country-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.phone-field .iti__selected-country {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
}

.phone-field .iti__selected-country-primary {
    display: flex;
    align-items: center;
    gap: .35rem;
    height: 100%;
    padding: 0 .55rem 0 .65rem;
    border-right: 1px solid var(--ink-200, #e5eaf1);
}

.phone-field .iti__selected-dial-code {
    margin-left: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-600, #475569);
    line-height: 1;
}

.phone-field .iti__arrow {
    margin-left: .15rem;
    border-top-color: var(--ink-500, #64748b);
}

.phone-field .iti__flag {
    border-radius: 2px;
    box-shadow: none;
}

/* Girdi — çerçeve dış wrapper'da */
.phone-field .iti input.iti__tel-input,
.phone-field .iti input[type="tel"] {
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: .85rem !important;
    font-size: .92rem !important;
    font-family: inherit;
    color: var(--txt-main, #1e293b) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: none !important;
    line-height: 44px;
}

.phone-field .iti input.iti__tel-input:focus,
.phone-field .iti input[type="tel"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ülke listesi */
.iti--container {
    z-index: 5000 !important;
}

.iti__dropdown-content {
    z-index: 5001;
    min-width: 280px;
    max-width: min(360px, calc(100vw - 2rem));
    border-radius: 12px;
    border: 1px solid var(--ink-200, #e5eaf1);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    overflow: hidden;
}

.iti__search-input {
    padding: .6rem .75rem;
    font-size: .9rem;
    border: 0;
    border-bottom: 1px solid var(--ink-100, #eef2f7);
}

.iti__country-list {
    max-height: 220px;
    font-size: .88rem;
}

.iti__country {
    padding: .55rem .75rem;
}

.iti__country-name {
    margin-right: .5rem;
}

.iti__dial-code {
    color: var(--ink-500, #64748b);
}

/* Auth sayfası / modal — biraz daha yüksek alan */
.field.phone-field .iti input.iti__tel-input,
.authm-field.phone-field .iti input.iti__tel-input {
    height: 46px !important;
    line-height: 46px;
    font-size: .95rem !important;
}

@media (max-width: 640px) {
    .iti--fullscreen-popup.iti--container {
        padding: 1rem;
    }

    .phone-field .iti__selected-country-primary {
        padding: 0 .45rem 0 .55rem;
    }

    .phone-field .iti__selected-dial-code {
        font-size: .82rem;
    }
}
