/* SECTION Field */

input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--auto-complete) inset;
  box-shadow: 0 0 0 1000px var(--auto-complete) inset;
  -webkit-text-fill-color: var(--blue-darker);
  border-radius: 35px;
}

.field {
  display: flex;
  position: relative;
}

.field:not(.vertical) {
  align-items: center;
}

.field.vertical {
  flex-direction: column;
}

.field + .field {
  margin-top: 30px;
}

.field .inputWrapper {
  width: 100%;
  height: 35px;
  border-radius: 35px;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
  position: relative;
}

/* !SECTION */

/* SECTION Label */

.field .label {
  font-size: var(--F18);
  font-weight: var(--black);
  text-transform: uppercase;
}

.field.vertical .label {
  margin-bottom: 10px;
}

.field.small .label {
  font-size: var(--F13);
}

/* !SECTION */

/* SECTION Input */

.field input {
  font-size: var(--F16);
  font-weight: var(--medium);
  padding: 0 20px;
  background-color: transparent;
  flex: 1 1 0;
  width: 100%;
  text-align: left;
}

/* !SECTION */

/* SECTION Validation */

.field .errorMessage {
  font-size: var(--F12);
  font-weight: var(--medium);
  text-align: center;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.field .validationIcon,
.checkbox .validationIcon {
  background-color: var(--error);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: 5px;
}

.field .validationIcon.good {
  background-color: var(--blue-med);
}

.field .validationIcon.bad,
.checkbox .validationIcon.bad {
  background-color: var(--error);
}

.field .validationIcon .icon.default {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.field .validationIcon .icon svg * {
  fill: var(--white);
}

/* !SECTION */

/* SECTION Select */

.field select {
  font-size: var(--F16);
  font-weight: var(--medium);
  flex: 1;
  margin-left: 20px;
}

.field select:hover {
  cursor: pointer;
}

/* !SECTION */

/* SECTION Checkbox */

.checkbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.checkbox .inputWrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.checkbox .label {
  user-select: none;
  font-size: var(--F12);
  font-weight: var(--medium);
  letter-spacing: 0.5px;
}

.checkbox input {
  min-width: 20px;
  width: 20px;
  height: 20px;
  z-index: 1;
  cursor: pointer;
  margin-right: 10px;
}

.checkbox .checkWrapper {
  border: 3px solid var(--blue-med);
  background-color: transparent;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
}

.checkbox .check {
  position: absolute;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox svg * {
  fill: var(--white);
}

.checkbox input:checked ~ .checkWrapper {
  border-color: var(--blue-med);
  background-color: var(--blue-med);
}

.checkbox input:checked ~ .checkWrapper .check {
  opacity: 1;
}

.checkbox .error {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  position: absolute;
  top: 100%;
}

.checkbox .validationIcon {
  margin-left: 0;
}

.checkbox .validationIcon .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox .errorMessage {
  font-size: var(--F12);
  font-weight: var(--medium);
  text-align: left;
  flex: 1 1 0;
  margin-left: 10px;
}

/* !SECTION */
