/* select input styling */
select {
  border: 0;
  border-bottom: 2px solid var(--grey-border);
}

select:focus,
select:active {
  outline: 0;
  border-bottom-color: var(--link);
}

/* text field input styling */
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="time"],
input[type="url"],
textarea,
select {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  outline: none;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--grey-border);
  color: var(--black);
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 5px var(--button-color);
  border: 1px solid var(--button-color);
}

input[type="submit"],
input[type="button"] {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  width: 100%;
  background: #43d1af;
  border-bottom: 2px solid var(--button-color);
  border-top-style: none;
  border-right-style: none;
  border-left-style: none;
  color: #fff;
}
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--button-color);
}

/* radio box styling */
.radiobox {
  background-color: var(--white);
  display: flex;
  margin: auto;
  position: relative;
  flex-basis: 50%;
}

.radiobox label {
  padding: 1%;
  flex-basis: 100%;
  display: block;
  text-align: center;
  color: var(--black);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 200ms ease-in;
  overflow: hidden;
}

.radiobox label:before {
  width: .75em;
  height: .75em;
  border-radius: 50%;
  content: "";
  background-color: var(--dark-blue);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale3d(1, 1, 1);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: -1;
}

.radiobox label:after {
  width: .75em;
  height: .75em;
  content: "";
  border: 2px solid var(--grey-border);
  background-color: var(--white);
  /* background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.414 11L4 12.414l5.414 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23fff' fill-rule='nonzero'/%3E%3C/svg%3E "); */
  background-repeat: no-repeat;
  background-position: 2px 3px;
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 200ms ease-in;
}

.radiobox input:checked~label {
  color: var(--white);
}

.radiobox input:checked~label:before {
  transform: translate(-50%, -50%) scale3d(120, 120, 1);
  opacity: 1;
}

.radiobox input~label:after {
  display: none;
}

.radiobox input {
  width: 32px;
  height: 32px;
  order: 1;
  z-index: 2;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  visibility: hidden;
}

@media (max-width: 1139px) {
  .radiobox {
    flex-basis: 100%;
  }
}
