form {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 395px;
  width: 395px;
  display: flex;
  flex-direction: column;
}
.field {
  margin: 12px 0 0;
  min-height: 42px;
  position: relative;
}
.field.title {
  display: flex;
  align-items: flex-end;
}
.field.checkbox {
  padding: 4px 0;
  min-height: 0;
  margin-top: auto;
}
@media screen and (max-width: 768px) {
  .field.checkbox {
    padding: 0;
    min-height: 42px;
    margin-top: 12px;
  }
}
label {
    font-size: 13px;
    color: #646464;
    padding: 0px 10px;
    width: 100%;
    display: block;
    cursor: pointer;
}
.textarea label {
  color: #507E91;
  font-size: 14px;
  padding: 12px 0px;
}
.checkbox label {
    background-color: transparent;
    display: inline;
    font-size: 12px;
    text-align: left;
    border: 0;
}
.checkbox input {
  appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: text-bottom;
    border: 1px solid var(--azzurroscuretto);
}
.checkbox input:checked {
    background-color: var(--azzurroscuretto);
}
input, textarea {
    border-radius: 0px !important;
    outline: none !important;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    border: 0;
    background: transparent;
    border-bottom: 1px solid var(--azzurroscuretto);
}
input[type="text"], input[type="email"], textarea {
    padding: 12px 0px;
    width: 100%;
    font-size: 14px;
}
textarea {
    height: 95px;
    background-color: transparent;
    resize: none;
    border: 1px solid var(--azzurroscuretto);
    background: transparent;
    display: block;
}
input[type="submit"] {
    color: #fff;
    background-color: #507E91;
    border: #507E91 solid 1px;
    padding: 13px 20px 12px;
    font-size: 20px;
    text-transform: uppercase;
    position: relative;
    transition: color .2s, background-color .2s;
    text-decoration: none;
    cursor: pointer;
    display: block;
    width: 100%;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}
input[type="submit"]:hover {
    color: #507E91;
    background-color: #fff;
}


::-webkit-input-placeholder { /* Edge */
  color: #507E91;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #507E91;
}

::placeholder {
  color: #507E91;
}


.error {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 5px 10px;
  font-size: 11px;
  color: red;
}
.checkbox .error {
  top: 110%;
  right: auto;
  left: 0;
  padding: 0;
}
#success {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  text-align: center;
  padding-top: 10px;
}