.webfus-form {
    width: 100%;
}

.webfus-form__title {
    display: none;
}

.webfus-form__block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.webfus-field {
    display: flex;
    margin: 0;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.webfus-field__title {
    font-size: 13px;
    line-height: 1.6;
    color: #888888;
}

.webfus-field__title .highlighted {
    font-size: 12px;
    color: #e62222;
}

.webfus-field__error {
    font-size: 12px;
    line-height: 1.6;
    color: #e62222;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
}

.label--warning .webfus-field__error {
   display: block;
}

.webfus-field input:-webkit-autofill,
.webfus-field input:-webkit-autofill:hover,
.webfus-field input:-webkit-autofill:focus {
    border: 1px solid #eeeeee;
    -webkit-text-fill-color: #383838;
    -webkit-box-shadow: 0 0 0 1000px #f7f7f7 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.webfus-field input[type=email]:focus,
.webfus-field input[type=tel]:focus,
.webfus-field input[type=text]:focus,
.webfus-field textarea:focus {
    background: #fff;
    border: 1px solid #ccc;
    outline: 0;
}

.webfus-field input[type=email]:-webkit-autofill:focus,
.webfus-field input[type=tel]:-webkit-autofill:focus,
.webfus-field input[type=text]:-webkit-autofill:focus {
    border: 1px solid #ccc;
    -webkit-text-fill-color: #383838;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.webfus-field textarea::-webkit-scrollbar {
    display: none;
}

.webfus-field textarea::-webkit-scrollbar-track {
    display: none;
}

.webfus-field textarea::-webkit-scrollbar-thumb {
    display: none;
}

.webfus-agreement {
    margin: 20px 0;
    position: relative;
}

.webfus-agreement:first-child {
    margin-top: 0;
}

.webfus-agreement:last-child {
    margin-bottom: 0;
}

.webfus-agreement .webfus-field__error {
    position: relative;
    text-align: right;
    width: 100%;
    display: none;
}

.webfus-agreement:has(.label--warning) .webfus-field__error {
    display: block;
}

.webfus-agreement__label {
    position: relative;
    display: block;
    cursor: pointer;
}

.webfus-agreement__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -10;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
}

.webfus-agreement__text {
    font-size: 13px;
    line-height: 1.6;
    color: #888;
    position: relative;
    padding-left: 23px;
    display: block;
    text-wrap: balance;
}

.webfus-agreement__text:before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    border: 1px solid #cccccc;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    transition: all 0.3s ease-out;
}

.webfus-agreement__input:checked ~ .webfus-agreement__text:before {
    background-color: #960101;
    border-color: #960101;
}

.webfus-agreement__input:checked ~ .webfus-agreement__text:after {
    content: url('/local/templates/aspro_next_custom/images/svg/Input_icons.svg');
    position: absolute;
    top: 1px;
    left: 0;
    font-size: 0;
    line-height: 0;
    width: 16px;
    height: 16px;
}

.webfus-agreement__link {
    color: #810101;
    transition: color 0.3s ease-out;
}

.webfus-form__control {
    color: #888888;
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0;
}

.webfus-form__control:first-child {
    margin-top: 0;
}

.webfus-form__control:last-child {
    margin-bottom: 0;
}

.webfus-form__control p {
    color: #888888;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.webfus-form__control p:last-child {
    margin-bottom: 0;
}

.webfus-form__control .highlighted {
    color: #e62222;
}

@media (hover:hover) and (pointer: fine) {
    .webfus-agreement__link:hover {
        color: #383838;
    }

    .webfus-agreement:hover .webfus-agreement__text:before {
        background-color: rgba(150, 1, 1, 0.4);
        border-color: rgba(150, 1, 1, 0.4);
    }

    .webfus-agreement:hover .webfus-agreement__input:checked ~ .webfus-agreement__text:before {
        background-color: #960101;
        border-color: #960101;
    }
}