/* Phone Input with Country Code Styles */

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
}

.phone-input-country-code {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background-color: #1a1f2e;
  border: 1px solid #495057;
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  min-width: 80px;
  justify-content: center;
}

.phone-input-country-code:hover {
  background-color: #252b3a;
}

.phone-input-country-code:focus {
  outline: none;
  border-color: #A7F432;
  box-shadow: 0 0 0 0.2rem rgba(167, 244, 50, 0.25);
}

.phone-input-country-code select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  text-align: center;
}

.phone-input-country-code select option {
  background-color: #1a1f2e;
  color: #fff;
  padding: 0.5rem;
}

.phone-input-number {
  flex: 1;
  border-radius: 0 0.375rem 0.375rem 0;
  border-left: none;
}

.phone-input-number:focus {
  border-left: 1px solid #A7F432;
  margin-left: -1px;
}

/* For dark form controls */
.form-control-dark.phone-input-number {
  background-color: #1a1f2e;
  border-color: #495057;
  color: #fff;
}

.form-control-dark.phone-input-number:focus {
  background-color: #1a1f2e;
  border-color: #A7F432;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(167, 244, 50, 0.25);
}

/* For light form controls (sign up page) */
.form-input.phone-input-number {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.form-input.phone-input-number:focus {
  background-color: transparent;
  border-color: #A7F432;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(167, 244, 50, 0.25);
}

/* Country code dropdown arrow */
.phone-input-country-code::after {
  content: '▼';
  position: absolute;
  right: 8px;
  font-size: 0.7rem;
  color: #A7F432;
  pointer-events: none;
}

