.form-wrapper {
  padding: 0;
  margin: 0;
}

.form_box p {
  margin: 20px auto;
}

.form_box label {
  position: relative;
  padding: 10px auto;
  margin: auto;
  margin-top: 25px;
  margin-bottom: 10px;
  display: block;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}

.form_box small {
  font-weight: 400;
  display: block;
  color: #9aa2a6;
  line-height: 2;
}

.tagit,
.form_box select,
.form_box input[type=date],
.form_box input[type=time],
.form_box input[type=number],
.form_box input[type=text],
.form_box input[type=email],
.form_box input[type=url],
.form_box input[type=password] {
  display: block;
  margin: auto;
  padding: 8px;
  width: 100%;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

.tagit input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.form_box textarea {
  display: block;
  margin: auto;
  padding: 8px;
  width: 100%;
  height: 80px;
  resize: vertical;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

.form_box input[type=date],
.form_box input[type=time],
.form_box input[type=number],
.form_box select {
  display: inline-block;
}

.select_file {
  padding: 5px;
  margin: auto;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.select_file option {
  padding: 5px;
  margin: 1px;
}

.form_box select:hover,
.select_file:hover {
  box-shadow: inset 0 0 4px 1px rgba(0, 0, 0, 0.2);
}

.form_box textarea:focus,
.form_box select:focus,
.form_box input[type=date]:focus,
.form_box input[type=time]:focus,
.form_box input[type=number]:focus,
.form_box input[type=text]:focus,
.form_box input[type=email]:focus,
.form_box input[type=url]:focus,
.form_box input[type=password]:focus {
  border: 1px solid rgba(20, 134, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(20, 134, 255, 0.3);
}

.form_box textarea:required:valid,
.form_box select:required:valid,
.form_box input[type=date]:required:valid,
.form_box input[type=time]:required:valid,
.form_box input[type=number]:required:valid,
.form_box input[type=text]:required:valid,
.form_box input[type=email]:required:valid,
.form_box input[type=password]:required:valid {
  border: 1px solid rgba(46, 204, 113, 0.6);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
}

.form_box textarea:focus:required:invalid,
.form_box select:required:invalid,
.form_box input[type=date]:required:invalid,
.form_box input[type=time]:required:invalid,
.form_box input[type=number]:required:invalid,
.form_box input[type=text]:required:invalid,
.form_box input[type=email]:required:invalid,
.form_box input[type=password]:required:invalid {
  border: 1px solid rgba(var(--color-red-rgb), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--color-red-rgb), 0.3);
}

.url-field {
  display: flex;
  align-content: center;
  align-items: center;
  height: 39px;
  flex: auto;
}

.url-field span {
  display: inline-block;
  position: relative;
  right: -1px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.18);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  height: 39px;
}

.url-field span svg {
  min-width: 40px;
  font-size: 1.2rem;
}

.url-field .__brand svg {
  width: 48px;
  height: 24px;
}

.upload-file:after {
  position: absolute;
  width: 60%;
  max-width: 800px;
  content: "Upload your file";
  left: 0;
  right: 0;
  margin: 50px auto;
  text-align: center;
  padding: 50px 0px 50px 0px;
  border-radius: 10px;
  border: 5px dashed #ccc;
  color: #ccc;
  font-family: "Helvetica Neue", Helvetica, Arial;
  font-size: 30px;
}
.upload-file:hover:after {
  background: #ccc;
  color: #fff;
  cursor: pointer;
}
.upload-file input#file {
  width: 0px;
  height: 0px;
}

.image-field {
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  height: calc((100vw - 200px) / 5 - 1px);
  background-color: #f4f4f4;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 3px;
}

.image-field label {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: auto;
  text-align: center;
}

.image-field input {
  cursor: pointer;
  display: none;
}

.image-field-helper {
  transition: 0.5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.image-field-helper .middle-text {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: 2px;
}

.image-field label:hover .image-field-helper {
  opacity: 1;
}

.datetime-field {
  display: flex;
  align-content: center;
  align-items: center;
  height: 39px;
}

.datetime-field span {
  display: inline-block;
  position: relative;
  right: -1px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.18);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  height: 39px;
}

.switch {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  width: 60px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #9aa2a6;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 60%;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #0e8161;
}

input:focus + .slider {
  box-shadow: 0 0 1px #0e8161;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 3px;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  input[type=checkbox],
  input[type=radio] {
    --active: rgba(20, 134, 255, 1);
    --active-inner: #fff;
    --focus: 2px rgba(20, 134, 255, 1);
    --border: #BBC1E1;
    --border-hover: rgba(20, 134, 255, 1);
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
  }
  input[type=checkbox]:after,
  input[type=radio]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
  }
  input[type=checkbox]:checked,
  input[type=radio]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: .3s;
    --d-t: .6s;
    --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
  }
  input[type=checkbox]:disabled,
  input[type=radio]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }
  input[type=checkbox]:disabled:checked,
  input[type=radio]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }
  input[type=checkbox]:disabled + label,
  input[type=radio]:disabled + label {
    cursor: not-allowed;
  }
  input[type=checkbox]:hover:not(:checked):not(:disabled),
  input[type=radio]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }
  input[type=checkbox]:focus,
  input[type=radio]:focus {
    box-shadow: 0 0 0 var(--focus);
  }
  input[type=checkbox]:not(.switch),
  input[type=radio]:not(.switch) {
    width: 21px;
  }
  input[type=checkbox]:not(.switch):after,
  input[type=radio]:not(.switch):after {
    opacity: var(--o, 0);
  }
  input[type=checkbox]:not(.switch):checked,
  input[type=radio]:not(.switch):checked {
    --o: 1;
  }
  input[type=checkbox] + label,
  input[type=radio] + label {
    font-size: 14px;
    line-height: 21px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-left: 4px;
  }
  input[type=checkbox]:not(.switch) {
    border-radius: 7px;
  }
  input[type=checkbox]:not(.switch):after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 6px;
    top: 3px;
    transform: rotate(var(--r, 20deg));
  }
  input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
  }
  input[type=checkbox].switch {
    width: 38px;
    border-radius: 11px;
  }
  input[type=checkbox].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
  }
  input[type=checkbox].switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }
  input[type=checkbox].switch:disabled:not(:checked):after {
    opacity: 0.6;
  }
  input[type=radio] {
    border-radius: 50%;
  }
  input[type=radio]:after {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--active-inner);
    opacity: 0;
    transform: scale(var(--s, 0.7));
  }
  input[type=radio]:checked {
    --s: .5;
  }
}
.form_box_btn {
  white-space: nowrap;
  cursor: pointer;
  margin: 10px auto;
  padding: 8px 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: #154571;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.form_box_btn:hover {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 3px 2px rgba(0, 0, 0, 0.1);
}

.form_box_btn_center {
  margin: 20px auto auto auto;
  text-align: center;
}

.button {
  white-space: nowrap;
  cursor: pointer;
  margin: 10px auto;
  padding: 12px 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-red);
  border: 1px solid var(--color-red);
  border-radius: 0;
  text-align: center;
}

.btn-spinner svg {
  font-size: 14px;
}

.button:hover {
  background: #111;
  border-color: #111;
}

.button-green {
  background: #0e8161;
}

.button-gray {
  background: #23272a;
}

.button-lightgray {
  background: #9aa2a6;
  color: #23272a;
}

.button-blue {
  background: #154571;
}

.button-red {
  background: var(--color-red);
}

.button-orange {
  color: #0d0e0f;
  background: #f9881d;
}

.button-white {
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #23272a;
  background: #fff;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.03);
}

.button svg {
  margin-right: 4px;
}

.button-size-m {
  padding: 8px 16px;
  font-size: 11px;
}

.button-size-s {
  padding: 3px 6px;
  font-size: 10px;
}

.button-size-xl {
  padding: 14px 20px;
  font-size: 15px;
}

.button-disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
  box-shadow: none;
}

#contact_form {
  padding: 2rem 1.5rem 5rem;
  margin: 0 auto;
  max-width: 600px;
}

#contact_form label {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

#contact_form select,
#contact_form input[type=text],
#contact_form input[type=email],
#contact_form input[type=password] {
  display: block;
  margin: auto;
  padding: 14px;
  width: 100%;
  font-size: 16px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

#contact_form textarea {
  display: block;
  margin: auto;
  padding: 14px;
  width: 100%;
  height: 150px;
  resize: vertical;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

#contact_form select:focus,
#contact_form input[type=text]:focus,
#contact_form input[type=email]:focus,
#contact_form input[type=password]:focus,
#contact_form textarea:focus {
  border: 1px solid var(--color-red);
  outline: none;
  box-shadow: none;
}

.captcha {
  margin: 10px auto;
}

.agreement {
  padding: 20px 0;
}

.agreement label {
  font-weight: 400 !important;
  margin: 0;
}

.agreement p {
  font-weight: 400 !important;
  margin: 0;
  color: #949694;
}