/* Native Phone Input CSS */
.phb-phone-input-container {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  position: relative;
  margin-bottom: 0;
}

/* Country selector styling */
.phb-country-selector {
  position: relative;
  flex-shrink: 0;
}

.phb-country-selector select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px 10px 40px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  min-width: 100px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 600;
}

.phb-country-selector select:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.phb-country-selector select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Phone input styling */
.phb-phone-input-container input[type="tel"] {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
  /* Allow flex shrinking */
}

.phb-phone-input-container input[type="tel"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phb-phone-input-container input[type="tel"]::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Phone input container (works with intl-tel-input) */
.phb-phone-input-container {
  width: 100%;
}

.phb-phone-input-container .iti {
  width: 100%;
}

.phb-phone-input-container input[type="tel"] {
  width: 100%;
}