.itb-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}

.itb-phone-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out;
}

.itb-phone-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.itb-phone-input.error {
  border-color: #dc3545;
}

.itb-phone-input.error:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.itb-country-select {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  padding: 0 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.itb-phone-input {
  padding-left: 80px;
}
.iti--allow-dropdown {
  position: relative !important;
}
.iti__flag-container {
  position: absolute !important;
  right: 0 !important;
  height: 100% !important;
  z-index: 999 !important;
  width: fit-content !important;
  top: -50% !important;
  transform: translateY(75%) !important;
}
.iti__flag {
  width: 20px !important;
  background-image: url(../img/flags.png) !important;
}
.iti__selected-flag {
  z-index: 1;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 6px 0 8px !important;
  background: transparent !important;
}
.iti--separate-dial-code input[type="tel"] {
  padding-left: 70px !important;
}
