/* destination: /home/ale/p2a/static/css/tel.css */

/* containerul mare – NU mai setăm radius aici,
   îl iei din HTML (rounded-md) */
#phone-row {
  position: relative;
}

/* field-ul propriu-zis – nici aici nu mai forțăm radius,
   doar bordură + bg */
#phone-shell {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding-right: 2.5rem;
  /* nu mai punem overflow:hidden ca să nu taie colțurile din HTML */
}

/* doar când e deschis dropdown-ul îndreptăm jos
   (presupunem că HTML-ul are deja rounded-md) */
#phone-row.dropdown-open #phone-shell {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* PREFIX – pe mobil 30% */
#phone-country-wrapper {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-left: .75rem;
  flex: 0 0 30%;
  min-width: 5.5rem;
}

#phone-dial {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  height: 3rem;
  line-height: 3rem;
  font-size: .875rem;
  cursor: pointer;
}

/* linia dintre prefix și număr */
#phone-divider {
  width: 1px;
  height: 2.1rem;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 .6rem;
}

/* NUMĂR – restul de 70% */
#phone {
  flex: 1 1 70%;
  background: transparent;
  border: none;
  outline: none;
  height: 3rem;
  line-height: 3rem;
  color: #fff;
  font-size: .95rem;
  padding-right: .5rem;
}

/* săgeata din dreapta */
#phone-country-trigger {
  position: absolute;
  top: 0;
  right: 0;
  height: 3rem;
  width: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

/* DROPDOWN – full width, aici dăm noi colțurile jos */
#phone-country-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 .75rem .75rem;
  z-index: 999;
  display: none;
}

/* arată-l când JS pune .open */
#phone-country-dropdown.open {
  display: block;
}

/* scrollbar */
#phone-country-dropdown::-webkit-scrollbar {
  width: 6px;
}
#phone-country-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
}

/* item */
#phone-country-dropdown button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
  padding: .45rem .75rem;
  color: #fff;
  font-size: .75rem;
  border-radius: .45rem;
  transition: background .1s ease-out;
}
#phone-country-dropdown button:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* desktop – doar lărgim prefixul, nu umblăm la radius */
@media (min-width: 768px) {
  #phone-country-wrapper {
    flex: 0 0 auto;
    min-width: 11rem;
  }
  #phone-dial {
    max-width: 13rem;
  }
}

