/* Country Select Styles */
.country-select-wrapper {
  position: relative;
  width: 100%;
}

.country-select-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.country-select-button:hover {
  border-color: var(--gray-400);
}

.country-select-button:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.country-select-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.country-select-value .placeholder {
  color: var(--gray-400);
}

.selected-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
}

.dropdown-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.country-search {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.country-search-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.country-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

.country-option {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s ease;
  font-size: 0.875rem;
}

.country-option:hover {
  background-color: var(--gray-50);
}

.country-option.selected {
  background-color: var(--secondary-blue);
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-name {
  flex: 1;
  color: var(--gray-900);
}


.no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .country-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 1rem 1rem 0 0;
    max-height: 70vh;
  }
  
  .country-list {
    max-height: calc(70vh - 80px);
  }
}