/* Styles pour les champs téléphoniques */
.phone-input-wrapper {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.phone-input-wrapper:hover {
  border-color: #93c5fd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phone-input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: #f9fafb;
  border-right: 1px solid #d1d5db;
  user-select: none;
}

.phone-flag {
  width: 1.5rem;
  height: 1rem;
  margin-right: 0.5rem;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj48cGF0aCBmaWxsPSIjMDA5ZTYwIiBkPSJNMCAwaDE5OS45djYwMEgweiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xOTkuOSAwSDcwMC4xdjYwMEgxOTkuOXoiLz48cGF0aCBmaWxsPSIjZjc3ZjAwIiBkPSJNNzAwLjEgMEg5MDB2NjAwSDcwMC4xeiIvPjwvc3ZnPg==');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.phone-code {
  font-weight: 500;
  color: #4b5563;
}

.phone-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  outline: none;
  width: 100%;
}

/* Surcharge des styles de vue-tel-input si utilisé */
.vue-tel-input {
  border: none !important;
  box-shadow: none !important;
}

.vti__dropdown {
  border: none !important;
  background-color: #f9fafb !important;
}

.vti__input {
  border: none !important;
  background-color: white !important;
}

/* CSS pour injecter directement dans le formulaire */
.custom-phone-field {
  margin-bottom: 1rem;
}

.custom-phone-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.custom-phone-field .phone-wrapper {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
}

.custom-phone-field .prefix {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: #f9fafb;
  border-right: 1px solid #d1d5db;
}

.custom-phone-field .flag-ci {
  width: 1.5rem;
  height: 1rem;
  margin-right: 0.5rem;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj48cGF0aCBmaWxsPSIjMDA5ZTYwIiBkPSJNMCAwaDE5OS45djYwMEgweiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0xOTkuOSAwSDcwMC4xdjYwMEgxOTkuOXoiLz48cGF0aCBmaWxsPSIjZjc3ZjAwIiBkPSJNNzAwLjEgMEg5MDB2NjAwSDcwMC4xeiIvPjwvc3ZnPg==');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.custom-phone-field input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  outline: none;
}

.custom-phone-field .help-text {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-style: italic;
} 