.custom-form {
    max-width: 100%;
}

.custom-form__form {
    max-width: 100%;
}

.custom-form__input-wrap {
    position: relative;
    margin-bottom: 24px;
}

.custom-form__input-label {
    font-family: TildaSans;
    color: black;
    line-height: 1.3;
    left: 16px;
    top: 50%;
    pointer-events: none;
    position: absolute;
    transition: all 0.2s ease-out;
    transform: translateY(-50%);
    font-size: 16px;
}

.custom-form__input {
    font-family: TildaSans;
    -webkit-appearance: none;
    border-radius: 2px;
    box-sizing: border-box;
    font-size: 100%;
    line-height: 1.33;
    margin: 0;
    outline: none;
    padding: 0 20px;
    width: 100%;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    font-size: 18px;
    font-weight: 400;
    height: 50px;
}

.custom-form__input:-webkit-autofill,
.custom-form__input:-webkit-autofill:hover,
.custom-form__input:-webkit-autofill:focus,
.custom-form__input:-webkit-autofill:active {
    color: rgb(0, 0, 0);
    -webkit-box-shadow: 0 0 0 1000px white inset;
  
}

.custom-form__input:focus-within ~ .custom-form__input-label,
.custom-form__input:focus ~ .custom-form__input-label,
.custom-form__input:-webkit-autofill ~ .custom-form__input-label,
.custom-form__input:-webkit-autofill:hover ~ .custom-form__input-label,
.custom-form__input:-webkit-autofill:focus ~ .custom-form__input-label,
.custom-form__input:-webkit-autofill:active ~ .custom-form__input-label,
/*.custom-form__input:not(:placeholder-shown) ~ .custom-form__input-label,*/
.custom-form__input-label.custom-form__input-label_filled {
    top: 0;
    background: white;
    padding: 0 8px;
    font-size: 12px;
    left: 8px;
}

.custom-form__input_error {
    border-color: #f24e57;
}

.custom-form__error {
    font-family: TildaSans;
    color: #f24e57;
    line-height: 1.3;
    font-size: 16px;
    margin-top: 10px;
}

.custom-form__submit-wrap {
    display: flex;
    justify-content: center;
}

.custom-form__submit {
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    -webkit-appearance: none;
    outline: none !important;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    background: #033b7c;
    max-width: 180px;
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.custom-form__submit:disabled {
    cursor: default;
    opacity: 0.7;
}

.custom-form__submit-text {
    font-size: 18px;
    font-family: TildaSans;
    color: #ffffff;
}

.custom-form__submit-result {
    border-radius: 4px;
    padding: 12px 8px;
    font-family: TildaSans;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    margin-top: 40px;
    max-width: 80%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.custom-form__submit-result_success {
    color: #15B944FF;
    background: #15BD441E;
}

.custom-form__submit-result_error {
    color: #B93C42FF;
    background: #B653579B;
}

.custom-form__submit-loader {
    width: 20px;
    aspect-ratio: 1;
    display: grid;
}


.custom-form__submit-loader:before,
.custom-form__submit-loader:after {
    content: "";
    grid-area: 1/1;
    border-radius: 50%;
    background: #ffffff;
    -webkit-mask:repeating-linear-gradient(#000 0 5px,#0000 0 10px);
    animation: submit-loader 1.5s infinite;
}

.custom-form__submit-loader:after {
    -webkit-mask:repeating-linear-gradient(#0000 0 5px,#000 0 10px);
    --s:-1;
}

.custom-form__submit-loader_hidden {
    display: none;
}

@keyframes submit-loader {
  0%,
  10% {transform: translate(0) rotate(0)}
  35% {transform: translate(calc(var(--s,1)*50%)) rotate(0)}
  66% {transform: translate(calc(var(--s,1)*50%)) rotate(calc(var(--s,1)*180deg))}
  90%,
  100% {transform: translate(0) rotate(calc(var(--s,1)*180deg))}
}
   
@media screen and (max-width: 680px) {
    .custom-form__submit {
        max-width: 100%;
        height: 50px;
    }
    
    .custom-form__submit-text {
        font-size: 16px;
    }
    
    .custom-form__submit-loader {
        width: 12px;
    }
}
