.input,
.textarea,
.selectbox,
.file-upload,
.option {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  --font-size: 14px;
  --font-size-rem: 0.875rem;
  --line-height: 20px;
  --line-height-rem: 1.25rem;
  font-size: var(--font-size-rem);
  line-height: var(--line-height-rem);
}

.input-field {
  flex-grow: 1;
  flex-basis: 100%;
  width: 100%;
  position: relative;
  color: #194547;
}
.input-field:has([readonly]) {
  pointer-events: none;
}
.input-field__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.input-field:has(.-fit) {
  flex-basis: auto;
  width: fit-content;
}
.input-field__error {
  display: block;
  min-height: calc(var(--line-height, 18px) + 0.5rem);
  margin-top: 0.3rem;
  color: red;
  overflow-wrap: break-word;
  --font-size: 13px;
  --font-size-rem: 0.8125rem;
  --line-height: 18px;
  --line-height-rem: 1.125rem;
  font-size: var(--font-size-rem);
  line-height: var(--line-height-rem);
}

.input,
.textarea,
.selectbox,
.file-upload,
.option {
  cursor: pointer;
  appearance: none;
  color: #194547;
  font: inherit;
  background-color: hsl(0, 0%, 100%);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(17, 27, 33, 0.32);
}
.input.-error,
.textarea.-error,
.selectbox.-error,
.file-upload.-error,
.option.-error {
  color: red;
  border-color: red;
}
.input::placeholder,
.textarea::placeholder,
.selectbox::placeholder,
.file-upload::placeholder,
.option::placeholder {
  color: rgba(17, 27, 33, 0.42);
}

.input,
.textarea,
.selectbox,
.file-upload {
  padding: 1rem 1.5rem;
  width: 100%;
  min-width: 250px;
  border-radius: 8px;
}
.input.-fit,
.textarea.-fit,
.selectbox.-fit,
.file-upload.-fit {
  min-width: 150px;
}
.input:focus-visible,
.textarea:focus-visible,
.selectbox:focus-visible,
.file-upload:focus-visible {
  border-color: #194547;
  outline: none;
}

.selectbox {
  border-color: transparent;
  padding-right: 3rem;
  white-space: normal;
  border-bottom: 1px solid rgba(17, 27, 33, 0.32);
}
.selectbox:has(option[value=""]:checked) {
  color: rgba(17, 27, 33, 0.42);
}
.selectbox.-green {
  background-color: #194547;
  color: hsl(0, 0%, 100%);
}
.selectbox.-error {
  background-color: hsl(0, 0%, 100%);
  border-color: red;
  color: red;
}

.file-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.file-upload__placeholder {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.file-upload__icon {
  aspect-ratio: 1/1;
}

.textarea {
  overflow: hidden;
  resize: none;
}

.options {
  --size: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0 0;
}
.options.-labelless {
  padding: 0;
}
.options__option {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.options__option a {
  text-decoration: underline;
}

.option {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--size);
  height: var(--size);
  min-height: var(--size);
  min-width: var(--size);
  margin: 0;
  padding: 0;
  background: hsl(0, 0%, 100%);
}
.option:after {
  opacity: 0;
  content: "";
  position: absolute;
  display: block;
}
.option:checked:after {
  opacity: 1;
}
.option__label {
  margin-top: calc(var(--size) - var(--line-height));
  color: #5c5c5c;
}
.option__label:last-child {
  margin-bottom: 0;
}

.checkbox {
  border-radius: 4px;
}
.checkbox:after {
  --border-width: 1px;
  top: 3px;
  left: 7px;
  margin: 0 auto;
  width: var(--width);
  height: var(--height);
  border: solid #194547;
  border-width: 0 var(--border-width) var(--border-width) 0;
  transform: rotate(45deg);
}

.radiobox {
  border-radius: 50%;
}
.radiobox:after {
  border-radius: inherit;
  margin: 0 auto;
  width: calc(var(--size) / 2);
  height: calc(var(--size) / 2);
  background-color: #194547;
}

input[type=file]::file-selector-button {
  display: none;
}

input[type=file]::-webkit-file-upload-button {
  display: block;
  width: 0;
  height: 0;
  margin-left: -100%;
}

input[type=file]::-ms-browse {
  display: none;
}

@media screen and (min-width: 992px) {
  .input,
  .textarea,
  .selectbox,
  .file-upload,
  .option {
    border-width: 1px;
  }
  .input,
  .textarea,
  .selectbox,
  .file-upload {
    padding: 1.2rem 2.2rem;
  }
  .selectbox {
    padding-right: 4.75rem;
    background-position: right 2.75rem center;
  }
  .options {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1.2rem 0 0;
  }
  .checkbox:after {
    --border-width: 2px;
  }
}
.form-field .input-field__title {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  --font-size: 12px;
  --font-size-rem: 0.75rem;
  --line-height: 16px;
  --line-height-rem: 1rem;
  font-size: var(--font-size-rem);
  line-height: var(--line-height-rem);
}

.form__submit {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  --font-size: 12px;
  --font-size-rem: 0.75rem;
  --line-height: 16px;
  --line-height-rem: 1rem;
  font-size: var(--font-size-rem);
  line-height: var(--line-height-rem);
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.6rem;
}
.form__row, .form__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: inherit;
}
.form__col {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

.form-field {
  padding: 2rem 1.5rem;
  border: none;
  border-radius: 16px;
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0 14px 45px -8px rgba(0, 0, 0, 0.04);
}
.form-field h2 {
  margin: 0 0 1.5rem;
  --font-size: 20px;
  --font-size-rem: 1.25rem;
  --line-height: 28px;
  --line-height-rem: 1.75rem;
  font-size: var(--font-size-rem);
  line-height: var(--line-height-rem);
  font-weight: 600;
}
.form-field .input-field__title {
  color: #5c5c5c;
}
.form-field .input,
.form-field .textarea,
.form-field .selectbox {
  min-width: 0;
  padding: 0.75rem 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background-color: transparent;
}
.form-field .selectbox {
  padding-right: 2rem;
  background-position: right center;
}
.form-field .options {
  --size: 1.25rem;
  padding: 0;
}
.form-field .checkbox:after {
  --width: 5px;
  --height: 11px;
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 0.5rem;
  border: none;
  border-radius: 24px;
  background-color: #111b21;
  color: #faf8f1;
  cursor: pointer;
  transition: 150ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.form__submit:hover, .form__submit:focus-visible {
  background-color: #163337;
}
.form__submit.-loading {
  opacity: 0.7;
  cursor: wait;
}
.form__submit:disabled {
  cursor: not-allowed;
}

.grecaptcha-badge {
  visibility: hidden;
}

.google-stuff {
  display: block;
  margin-top: 1rem;
  font-size: 12px;
  text-align: center;
}
.google-stuff.-muted {
  opacity: 0.6;
}
@media screen and (min-width: 768px) {
  .form {
    gap: 1.2rem;
  }
  .form__row {
    flex-direction: row;
  }
  .form-field {
    padding: 3rem;
  }
}