/* ===== Lasagna Prefisso Telefono (intl-phone style) ===== */
.lmphone-wrap{
  position: relative;
  display: flex;
  align-items: stretch;
}
.lmphone-btn{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #fff;
  cursor: pointer;
  transition: .18s ease;
  box-shadow: 0 6px 14px rgba(17,24,39,.05);
  min-height: 44px;
  flex: 0 0 auto;
  user-select: none;
}
.lmphone-btn:hover{
  background: #f9fafb;
}
.lmphone-btn:focus-within{
  border-color: rgba(76,125,192,.55);
  box-shadow: 0 0 0 4px rgba(76,125,192,.12);
  z-index: 1;
}
.lmphone-flag{
  font-size: 20px;
  line-height: 1;
}
.lmphone-code{
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.lmphone-caret{
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
}
.lmphone-wrap input.lmphone-input{
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: .18s ease;
  box-shadow: 0 6px 14px rgba(17,24,39,.05);
  background: #fff;
  color: var(--text);
}
.lmphone-wrap input.lmphone-input:focus{
  border-color: rgba(76,125,192,.55);
  box-shadow: 0 0 0 4px rgba(76,125,192,.12);
  z-index: 1;
}
.lmphone-wrap input.lmphone-input::placeholder{
  color: var(--muted);
  font-weight: 600;
}

/* Dropdown */
.lmphone-dropdown{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(17,24,39,.18);
  overflow: hidden;
  z-index: 999;
  display: none;
}
.lmphone-wrap.open .lmphone-dropdown{
  display: block;
}
.lmphone-search{
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.lmphone-search input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: .18s ease;
  font-size: 14px;
  font-family: inherit;
}
.lmphone-search input:focus{
  border-color: rgba(76,125,192,.55);
  box-shadow: 0 0 0 4px rgba(76,125,192,.12);
}
.lmphone-list{
  max-height: 280px;
  overflow: auto;
  padding: 6px;
}
.lmphone-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
}
.lmphone-item:hover{
  background: #f3f4f6;
}
.lmphone-item.active{
  background: var(--primary-weak);
  color: var(--primary);
}
.lmphone-item-flag{
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}
.lmphone-item-name{
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lmphone-item-code{
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
}
.lmphone-empty{
  padding: 16px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px){
  .lmphone-dropdown{ width: 100%; }
  .lmphone-search input{ font-size: 16px; }
}
