/* Phone input container styles */
.phone-input-container {
  position: relative;
  display: flex;
  width: 100%;
}

/* Country select dropdown styles */
.country-select {
  position: relative;
  min-width: 90px;
}

.selected-country {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  height: 50px;
}

.selected-country img {
  width: 24px;
  height: auto;
  margin-right: 5px;
}

.selected-country .country-code {
  font-size: 14px;
  font-weight: 500;
}

.selected-country i {
  margin-left: 5px;
  font-size: 12px;
}

/* Country dropdown styles */
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.country-option {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.country-option:hover {
  background-color: #f0f0f0;
}

.country-option img {
  width: 24px;
  height: auto;
  margin-right: 10px;
}

.country-option span {
  font-size: 14px;
}

.country-option .country-code {
  margin-left: auto;
  color: #666;
}

/* Phone number input styles */
.phone-number-input {
  flex: 1;
  border-radius: 0 4px 4px 0 !important;
  border-left: none !important;
}

/* Search input styles */
.country-search {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.country-search input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Scrollbar styles for the dropdown */
.country-dropdown::-webkit-scrollbar {
  width: 8px;
}

.country-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.country-dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}


/* RTL-specific styles for Arabic pages */
.arabic-page .phone-input-container {
  direction: ltr; /* Keep the container direction as LTR */
}

.arabic-page .country-select {
  border-radius: 5px 0 0 5px;
  border-left: 1px solid #ddd;
  border-right: none;
}

.arabic-page .phone-number-input {
  border-radius: 0 5px 5px 0;
  border-right: 1px solid #ddd;
  border-left: none;
  text-align: right;
}

.arabic-page .country-dropdown {
  left: 0;
  right: auto;
}

.arabic-page .country-option {
  direction: ltr;
  text-align: left;
}

.arabic-page .selected-flag {
  display: flex;
  flex-direction: row;
}

.arabic-page .selected-flag .flag-img {
  margin-right: 5px;
  margin-left: 0;
}

.arabic-page .country-search input {
  text-align: left;
  direction: ltr;
}