/* intl-tel-input styling to match your form design */
.iti {
  width: 100%;
}

.iti__country-list {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: 1px solid #dee2e6;
}

.iti__country {
  padding: 0.5rem 0.75rem;
}

.iti__country:hover {
  background-color: #f8f9fa;
}

.iti__country.iti__highlight {
  background-color: #e3f2fd;
}

.iti__flag {
  width: 20px;
  height: 15px;
}

.iti__selected-flag {
  border-radius: 50px 0 0 50px;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-right: none;
}

.iti__selected-flag:hover {
  background-color: #e9ecef;
}

.iti input[type="tel"] {
  border-radius: 0 50px 50px 0;
  border-left: none;
  padding: 0.75rem 1rem;
}

.iti input[type="tel"]:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#phone-input {
  padding-left: 60px !important;
}

.iti input[type="tel"]:focus+.iti__selected-flag {
  border-color: #86b7fe;
}

/* Hide the separate dial code display */
.iti__selected-dial-code {
  display: none;
}

/* intl-tel-input search functionality */
.iti__search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.iti__search-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: none;
}

.iti__country-list {
  max-height: 200px;
  overflow-y: auto;
}

.iti__country {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.iti__country:hover {
  background-color: #f8f9fa;
}

.iti__country.iti__highlight {
  background-color: #e3f2fd;
}
