/* Country Dropdown Styles */
.phone-input-container {
  position: relative;
  width: 100%;
}

.flag-dropdown {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #222;
  overflow: hidden;
}

.selected-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 20px;
  cursor: pointer;
  min-width: 45px;
  background-color: #333;
  height: 100%;
  border-right: 1px solid #555;
}

.selected-flag .dropdown-icon {
  font-size: 0.7em;
  color: #fff;
  opacity: 0.7;
  margin-left: 4px;
}

#contact {
  flex: 1;
  background-color: #222;
  color: #fff;
  border: none;
  padding: 12px 15px;
  width: 100%;
  outline: none;
}

#contact::placeholder {
  color: #888;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none;
  overflow: hidden;
  margin-top: 5px;
}

.search-container {
  padding: 10px;
  border-bottom: 1px solid #444;
  position: sticky;
  top: 0;
  background-color: #222;
  z-index: 1;
}

#country-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 4px;
  outline: none;
  background-color: #333;
  color: #fff;
}

#country-search::placeholder {
  color: #888;
}

.country-list {
  max-height: 250px;
  overflow-y: auto;
}

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

.country-item:hover {
  background-color: #333;
}

.country-item.selected {
  background-color: #444;
}

.flag-icon {
  margin-right: 10px;
  font-size: 20px;
}

.country-name {
  flex: 1;
  margin-right: 10px;
  color: #fff;
}

.country-code {
  color: #aaa;
}

/* Make dropdown visible when open */
.country-dropdown.open {
  display: block;
}

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

.country-list::-webkit-scrollbar-track {
  background: #333;
}

.country-list::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}

/* For small screens */
@media (max-width: 768px) {
  .country-dropdown {
    max-height: 300px;
    width: 100% !important;
    left: 0 !important;
    margin-top: 2px;
    z-index: 9999 !important;
  }
  
  .country-list {
    max-height: 240px;
  }
  
  .country-item {
    padding: 12px;
  }
  
  .selected-flag {
    min-width: 45px;
  }
  
  .flag-icon {
    font-size: 18px;
  }
  
  #country-search {
    font-size: 16px;
    padding: 10px;
  }
  
  .country-name, .country-code {
    font-size: 14px;
  }
} 