:root {
    --form-error: #ff4f30;
}

.block__form .form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}

.block__form .form__label {
    font-weight: 500;
    font-size: 20px;
}

.block__form .form__field-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto calc(14px * 1.5);
}

.block__form .form__field-container textarea {
    min-height: 140px;
    resize: none;
}

.block__form .form__field {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px
}

.block__form .form__type-input {
    width: 100%;
    border: 1px solid #E3E3E3;
    border-radius: 6px;
    margin-block-end: 5px;
    padding: 10px 15px;
    background-color: transparent;
    color: #2B2B2B;
    font-size: 18px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.block__form .form__type-input:focus {
    border-color: var(--main-color-preset);
    outline: none;
}

.block__form .form__type-input-error {
    border: 1px solid var(--form-error);
    background-color: rgb(255 134 48 / 0.1);
}

.block__form .form__error {
    display: none;
    grid-column: 1;
    align-self: self-start;
    grid-row-end: span 2;
    color: var(--form-error);
    font-size: 14px;
    line-height: 1.1;
}

.block__form .form__checkbox-label .form__error {
    grid-column: 1 / 3;
}

.block__form .form__error-active {
    display: block;
}

.block__form .form__checkbox-label {
    position: relative;
    display: grid;
    grid-template-columns: 24px auto;
    gap: 0 15px;
    cursor: pointer;
    align-items: center;
}

.block__form .form__type-checkbox {
    width: 24px;
    height: 24px;
    opacity: 0;
    padding: 0;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.block__form .form__type-checkbox+.form__type-checkbox-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #E3E3E3;
    border-radius: 6px;
}

.block__form .form__type-checkbox:focus+.form__type-checkbox-title::before {
    border-color: var(--main-color-preset);
}

.block__form .form__type-checkbox:checked+.form__type-checkbox-title::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background-color: var(--main-color-preset);
}

.block__form .button-inactive {
    cursor: not-allowed !important;
}

.form__type-checkbox-title {
    font-size: 16px;
}

.block__form .form__empty-error {
    padding: 10px 0;
    font-size: 16px;
    color: var(--form-error);
}


.block__form .two-column {
    grid-column: span 2;
}

@media (max-width:768px) {
    .block__form .form__field-container {
        grid-column: span 2;
    }
}