footer {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    form {
        width: calc(var(--container-size) - 10%);
        height: 0;
        margin: 0 auto;
        transition: height 0ms;
        background-color: var(--background-color-page);
        border-top-left-radius: 0.3rem;
        border-top-right-radius: 0.3rem;

        &.active {
            position: relative;
            overflow: auto;
            height: 70%;
            max-height: 70vh;
            padding: 2rem 1rem 1rem 1rem;
            border: 2px solid var(--button-primary-color);
            border-bottom: none;
            box-shadow: 0 0 3px 3px rgba(119, 119, 119, 0.3);
            transition: height 1s linear;

            @media (max-width: 991.98px) {
                width: 99%;

                .new-thread .block-form-thread {
                    flex-direction: column;

                    .form-row {
                        margin-top: calc(var(--margin-top-bottom) / 3);
                    }
                }
            }
        }
    }

    .close::after {
        display: inline-block;
        width: 1rem;
        height: 1rem;
        content: 'x';
        position: absolute;
        top: 0.5rem;
        right: calc(((var(--container-size) - 10%) / 2) + 1rem);
        pointer-events: auto;
        color: var(--button-primary-color);

        @media (max-width: 991.98px) {
            right: 0.5rem;
        }
    }
}

.form-row {
    position: relative;

    & > label {
        position: absolute;
        z-index: 2;
        top: 0.2rem;
        left: 0.5rem;
        font-size: 0.8rem;
        color: var(--button-primary-color);
    }

    & > input {
        padding-top: 1rem;
        padding-bottom: 0;
        height: 3.5rem;

        &:focus {
            padding-top: 1rem;
            padding-bottom: 0;
        }
    }
}

.block-form-submit {
    padding-bottom: var(--margin-top-bottom);
}
