.back-btn {
    color: #a5a5a5 !important;
    padding-left: 20px;
    background: url(../img/forms/back-btn.svg) left center no-repeat transparent;
    text-decoration: none;
    margin: 30px 0;
    display: inline-block;
}

form h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
    color: #3865FF;
    margin: 0;
}

form h2 {
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    line-height: 27px;
    color: #B8B8B8;
}

form h3, .label {
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    color: #3865ff;
    margin-bottom: 10px;
}

form h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    color: #000;
}

form label, form .form-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    color: #000;
}

form .mandatory {
    font-size: 12px;
    color: #ff0000;
}

form .btn-xs,
form .btn-group-xs > .btn {
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

form .pull-right {
    float: right;
}

form .btn-add-person {
    color: #3865FF;
    padding: 16px 40px 16px 20px;
    border: 1px solid #3865FF;
    border-radius: 5px;
    background: url('../img/forms/add-person-btn.svg') right 14px center no-repeat transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 15px;
}

textarea {
    resize: none;
}

form {
    margin-top: 50px;
}

.form-horizontal .form-group {
    margin: 0 0 30px;
}

form input {
    font-size: 14px;
    line-height: 18px;
}

form .form-control {
    padding: 18px 12px;
    height: auto;
}

form .form-check-inline {
    border-radius: 5px;
    border: 1px solid #E1E1E1;
    padding: 28px 25px;
    width: 100%;
    background-color: #fff;
}

form .half-width {
    display: inline-block;
    width: 48%;
}

form .half-width:last-child {
    margin-left: 2%;
    float: right;
}

form .person-block:not(:first-child) {
    border-top: 1px solid #E1E1E1;
    padding-top: 30px;
}

form .controls {
    background-color: #F9F9F9;
    padding: 28px 25px;
    border-radius: 5px;
    margin-bottom: 50px;
}

form .controls .controls-text {
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
    margin-bottom: 25px;
}

form .controls .date {
    border: 1px solid #E1E1E1;
    padding: 15px 20px 15px 50px;
    background: url('../img/forms/calendar.svg') 20px center no-repeat transparent;
    display: inline-block;
    border-radius: 5px;
}

form .controls .button {
    text-align: right;
}


.input-checkbox {
    position: relative;
    margin-bottom: 8px;
}

.input-checkbox input[type="checkbox"] {
    margin: 0;
    position: absolute;
    z-index: -1;
    cursor: pointer;
    outline: none;
    opacity: 0;
    height: auto;
}

.input-checkbox label {
    cursor: pointer;
    width: 100%;
    display: inline-block;
    padding-left: 40px;
    position: relative;
    line-height: 18px;
    padding-top: 8px;
}

.custom-checkbox {
    width: 29px;
    height: 29px;
    display: inline-block;
    position: absolute;
    z-index: 1;
    top: 3px;
    left: 0;
    border: 1px solid #E1E1E1;
    margin: 0 10px 0 0;
    cursor: pointer;
    border-radius: 6px;
    background-color: #fff;
}

.custom-checkbox.selected {
    background: url('../img/forms/check.svg') no-repeat center center #3865FF;
    border-color: #3865FF;
    background-size: 10px 10px;
}

form .submit-btn {
    border: none;
    padding: 16px 38px;
    background-color: #3865FF;
    border-radius: 24px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #fff;
}

.error-message {
    font-size: 12px;
    color: #ff0000;
    padding: 4px;
}

.form-submitted {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form-submitted h1 {
    color: #000;
    text-align: center;
}
.form-submitted h2 {
    color: #000;
}

  .custom-radio {
    display: inline;
    position: relative;
    padding-left: 35px;
    padding-top: 3px;
    margin-right: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Hide the browser's default checkbox */
  .custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    border: 1px solid #E1E1E1;
  }
  
  /* On mouse-over, add a grey background color */
  .custom-radio:hover input ~ .checkmark {
    background-color: #ccc;
  }
  
  /* When the checkbox is checked, add a blue background */
  .custom-radio input:checked ~ .checkmark {
    background-color: #2196F3;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .custom-radio input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .custom-radio .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

.other-input {
    display: none;
    margin-top: 5px;
}

@media screen and (max-width: 767px) {
    form .submit-btn {
        width: 100%;
    }
}

@media screen and (max-width: 425px) {
    header .left {
        text-align: center;
    }
    header .left span {
        border: none;
        padding: 0;
        margin: 10px 0 0;
        width: 100%;
    }
}