#form {
  background-color: white;
  border-radius: 20px;
  padding: var(--spacing-xl);
  height: -webkit-fit-content;
}



.alert {
  color: #000;
  background: var(--color-background);
  margin-top: 1vw;
  bottom: 0;
  left: 0;
  padding: 2vw;
  position: fixed;
  width: 100%;
  border-radius: 10px;
  z-index: 2;
}

.alert p {
  margin-bottom: .5rem;
}
.alert p:last-of-type {
  margin-bottom: 0;
}
.alert a {
  color: inherit;
  font-weight: bold;
}
.alert.error {
  background: #ff8300;
}
.alert.success {
  background: lime;
}


/* Forms
-------------------------------------------------- */



form .field {
  width: 100%;
  display: inline-block;

}
form .honeypot {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}
form .alert {
  margin: 0 0 .5em;
  display: inline-block;
}
form label {
  text-align: left;
  display: block;
  margin-bottom: .5rem;
  cursor: pointer;
  color:#000;

}
form .field.error label {
  color: #f40000;
}
form input:not([type="button"]):not([type="submit"]),
form textarea {
  width: 100%;
  border-radius: 30px;
  padding: 0.5rem 0;
  border: 2px solid black;
  padding-inline-start: 15px;

  font-size: 1.2rem;
  line-height: 1em;
  background-color: transparent;
  color: #000;
}
form input:not([type="button"]):not([type="submit"]):focus,
form textarea:focus {
  border-color: black;
}
form textarea {
  font-family: var(--font-regular);
  border-radius: 20px;
  height: 10em;
  resize: vertical;
}
form button,
form input[type="button"],
form input[type="submit"] {
  position: relative;
  z-index: 20;
  cursor: pointer;
  border-radius: 30px;
  border: black solid 2px;
  background: black;
  color: white;
  transition: color .15s ease-out, background-color .15s ease-out;
  font-size: 1rem;
  padding: var(--spacing-s) var(--spacing-m);

}
form button::-moz-focus-inner,
form input[type="button"]::-moz-focus-inner,
form input[type="submit"]::-moz-focus-inner {
  border: 0;
  padding: 0;
}
form button:hover,
form input[type="button"]:hover,
form input[type="submit"]:hover {
  background: lightgrey;
  color: #000;
}


.styled-select {
  margin: 3vw 0px;
  padding: 0.5rem 1rem;
  border: 2px solid black;
  border-radius: 30px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.styled-select, .styled-select select { width: 100%;}
select:focus { outline: none; }
.styled-select select {
  background: transparent;
  border: none;

  /*hide default down arrow in webkit */
  -webkit-appearance: none;
}



fieldset {
  border: none;
}

legend {

display: none;

}
.formblock__message--error p {
  font-size: .83em;
  padding-top: 10px;
}

ul  {
  display: -webkit-flex;
}

.formfield__option {
}

.formblock__submit {
  padding: 1rem 0;
  float: right;
}

input::placeholder, textarea::placeholder {

  color: var(--color-gray-600);
}


.formfield__option__label {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.formfield__option__label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}



.formfield__option__label:hover input ~ .formfield__radio__check {
  background-color: var(--color-gray-500);
}

.formfield__option__label input:checked ~ .formfield__radio__check {
  background-color: #000;
}


.formfield__radio__check {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--color-gray-300);
  border-radius: 50%;

}

/* Create a custom checkbox */
.formfield__checkbox__check {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--color-gray-300);
  border: 2px solid #000000;
  margin: 0 6px 0 0;
  flex-shrink: 0;
  border-radius: 4px;
}

/* On mouse-over, add a grey background color */
.formfield__option__label:hover input ~ .formfield__checkbox__check {
  background-color: var(--color-gray-500);
}

/* When the checkbox is checked, add a blue background */
.formfield__option__label input:checked ~ .formfield__checkbox__check {
  background-color: var(--color-gray-800);
}

/* Create the checkmark/indicator (hidden when not checked) */
.formfield__checkbox__check:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.formfield__checkbox input:checked ~ .formfield__checkbox__check:after {
  display: block;
}


.formfield__radio__check:after {
  content: "";
  position: absolute;
  display: none;
}

.formfield__option__label input:checked ~ .formfield__radio__check:after {
  display: block;
}

.formfield__option__label .formfield__radio__check:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}


/* Style the checkmark/indicator */
.formfield__option__label .formfield__checkbox__check:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}




@-moz-document url-prefix(){
  .styled-select select { width: 100%; }
}

.fa-sort-desc {
  position: absolute;
  top: 0;
  right: 12px;
  font-size: 1.2rem;

    }

 select::-ms-expand { display: none; } /* hide default down arrow in IE10*/

/* hack to fall back in opera */
_:-o-prefocus, .selector {
  .styled-select { background: none; }
  }


@media screen and (max-width: 798px) {


form button,
form input[type="button"],
form input[type="submit"] {
  font-size: 1rem;

}


}
