.apg_select_field {
	z-index:auto !important;
}

.apg_custom_select * {
    display:inline-block;
}

.form.contact--form .apg_custom_select {
    box-sizing:border-box;
    padding:0;
    padding-bottom:0 !important;
}

.apg_custom_select .select-selected {
  height:28.5px;
  padding-top:1px;
  padding-bottom:12px;
	position:relative;
	width:100%;
	padding-right: 15px;
	box-sizing: border-box;
	overflow-y: hidden;
}

.apg_custom_select select {
  display: none !important; /*hide original SELECT element: */
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #000 transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  align-self:center;
}

/* style the items (options), including the selected item: */
.select-items .option,.select-selected {
  color: #000;
  border: 1px solid transparent;
  border-color: transparent;
  cursor: pointer;
}

.select-items .option {
	height: 1.8em;
	font-size:16px !important;
	line-height:1.8em;
	padding:5px;
	box-sizing:content-box;
	border-bottom:1px solid lightgrey;
	white-space: nowrap;
}
.select-items .option:last-of-type {
	border-bottom:0;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  display:flex !important;
  flex-direction:column;
	height:300px;
	overflow-y:auto;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none !important;
}

.select-items .option:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

.form.contact--form .form-field[aria-invalid="true"] {
	border-color:red;
}