/* Custom Select Dropdown Styling */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  background-color: #f8f6f0;
  /* Match text input outer border */
  border: 2px solid #3b4228;
  border-radius: 16px;
  font-weight: 500;
  font-family: "Satoshi", sans-serif;
  transition: all 0.2s ease;
  min-height: auto;
  /* Soft outer green glow + inner dashed border like text inputs */
  box-shadow: 0 0 0 3px rgba(191, 232, 124, 0.9);
  outline: 2px dashed #b3b3b3;
  outline-offset: -6px;
  color: #434935;
}

/* Focus/open state for the custom trigger */
.custom-select-wrapper.open .custom-select-trigger {
  border-color: #1b2414;
  box-shadow: 0 0 0 4px rgba(184, 230, 110, 1);
}

.custom-select-trigger span {
  pointer-events: none;
  font-size: 1rem;
  font-weight: 500;
}

/* Arrow icon */
.custom-select-arrow {
  width: 24px;
  height: 24px;
  /* Bold chevron arrow, like reference design */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23222222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Options container */
.custom-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #3b4228;
  border-radius: 16px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 0 0 3px rgba(191, 232, 124, 0.9), 0 4px 12px rgba(67, 73, 53, 0.1);
  outline: 2px dashed #b3b3b3;
  outline-offset: -6px;
  overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

/* Option item */
.custom-option {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #434935;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
}

/* Hover effect - GREEN */
.custom-option:hover {
  background-color: #dcedc8;
  /* Light green highlight */
  color: #2d3322;
}

/* Selected state */
.custom-option.selected {
  background-color: #434935;
  color: white;
}

.custom-option.selected:hover {
  background-color: #393f2d;
}

/* Placeholder vs selected text color */
.custom-select-wrapper.is-placeholder .custom-select-trigger span {
  color: #867a7e;
  font-weight: 500;
  font-size: 1rem;
}

.custom-select-wrapper:not(.is-placeholder) .custom-select-trigger span {
  color: #434935;
  font-size: 1rem;
  font-weight: 500;
}
