/* Phone Input Component */
.pi-wrap {
    display: flex;
    align-items: stretch;
}

.pi-country-wrap {
    position: relative;
    flex-shrink: 0;
}

.pi-country-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.9rem;
    height: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.pi-country-btn:hover {
    background: #e9ecef;
}

.pi-country-btn:focus {
    outline: none;
    z-index: 1;
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.pi-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.pi-dial-code {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

.pi-arrow {
    font-size: 0.65rem;
    color: #6c757d;
    margin-left: 2px;
}

.pi-wrap .pi-number-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    min-width: 0;
    box-sizing: border-box;
}

.pi-wrap .pi-number-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.pi-wrap .pi-number-input::placeholder {
    color: #adb5bd;
}

/* Dropdown */
.pi-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 2px;
}

.pi-dropdown.open {
    display: block;
}

.pi-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.1s;
    border-bottom: 1px solid #f1f1f1;
}

.pi-dropdown-item:last-child {
    border-bottom: none;
}

.pi-dropdown-item:hover {
    background: #f8f9fa;
}

.pi-dropdown-item.selected {
    background: #e7f1ff;
    font-weight: 600;
}

.pi-country-name {
    flex: 1;
    color: #212529;
}

.pi-dial-code-opt {
    color: #6c757d;
    font-size: 0.82rem;
    font-weight: 400;
}
