/* RoamEase Pro – Inquiry Country Picker (flags + country names)
   Dedicated file to avoid cache issues and to not affect phone selector.
*/

/* Hide native select when custom picker exists */
form.roamease-inquiry-form .re-country-picker + select.re-country-select {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Also hide native select whenever the form is marked ready */
form.roamease-inquiry-form.re-country-picker-ready select.re-country-select {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

form.roamease-inquiry-form .re-country-picker {
  width: 100%;
}

form.roamease-inquiry-form .re-country-picker__button {
  width: 100% !important;
  min-height: 48px;
  border: 1px solid var(--e-global-color-primary, var(--re-primary, #2C7BE5)) !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--e-global-color-text, #111) !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
  box-shadow: none !important;
  cursor: pointer;
}

form.roamease-inquiry-form .re-country-picker__label {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.2;
}

form.roamease-inquiry-form .re-country-picker__arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
}

.re-country-picker__dropdown {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  overflow: hidden;
}

.re-country-picker__search {
  position: relative;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.re-country-picker__search-input {
  width: 100% !important;
  min-height: 40px;
  border: 1px solid rgba(0,0,0,0.12) !important;
  border-radius: 10px !important;
  padding: 8px 38px 8px 10px !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.re-country-picker__search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--e-global-color-secondary, var(--re-secondary, #6C757D)) !important;
  font-size: 22px;
  line-height: 1;
  padding: 0 !important;
  cursor: pointer;
}

.re-country-picker__search-clear:hover,
.re-country-picker__search-clear:focus {
  color: var(--e-global-color-primary, var(--re-primary, #2C7BE5)) !important;
}

.re-country-picker__list {
  max-height: 260px;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.re-country-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.re-country-picker__item:hover,
.re-country-picker__item:focus {
  background: rgba(0,0,0,0.05);
  outline: none;
}

.re-country-picker__name {
  font-size: 14px;
  color: #111;
}
