form {
    position: relative;
}

input,
textarea {
    font-family: rubik;
    letter-spacing: 1px;
    font-size: 11pt;

    margin: 2px 0 0 0;
    padding: 4px 0 4px 0px;
    border-bottom: 1px solid #bdc3c7;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    box-sizing: border-box;
    color: #34495e;
    outline: none !important;
}

textarea {
    border: 1px solid #eee;
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

input:focus,
textarea:focus {
    border-bottom: 1px solid #3498db;
}

.input-field {
    margin-bottom: 28px;
    flex-grow: 1;
    flex-basis: 0;
}

.input-field>input {
    width: 100%;
}

.input-field>input[type=checkbox] {
    width: auto;
    cursor: pointer;
}


.input-field label {
    display: block;
    color: #7f8c8d;
    font-size: 10.0pt;
}

/* Когда заголовок - div */
.input-field div:has(label) {
    display: flex;
    justify-content: space-between;
}

/* Для иконок в заголовке */
.input-field div:has(label) span {
    color: #7f8c8d;

}


.input-field>input[type=checkbox]+label {
    display: inline;
    cursor: pointer;
    color: #2c3e50;
    font-size: 11pt;
}

.input-field>input[type=checkbox] {
    position: absolute;
    left: -9999px;

}

.input-field>input[type=checkbox]+label:before {
    content: url("/img/checkboxNotChecked.svg");
    display: inline-block;
    margin-right: 7px;
    margin-bottom: -1px;
    opacity: 90%;
}

.input-field>input[type=checkbox]:checked+label:before {
    content: url("/img/checkboxChecked.svg");
}

.input-field>span {
    display: none;
}

.errorinput-field>span {
    display: block;
    font-size: 9pt;
    color: #c0392b;
    padding: 2px 0 0 0;
}

.infoinput-field>span {
    display: block;
    font-size: 9pt;
    color: rgb(156, 128, 0);
    padding: 2px 0 0 0;
}

.errorinput-field>input {
    border-bottom: 1px solid #e74c3c;
}


/* Отображение подсказки даты под полем ввода */
.input-field-date div:not(:has(label)) {
    background-color: white;
    font-size: 10.0pt;

    height: 0;


    line-height: 18px;
    z-index: 10000000;
    margin-bottom: -36px;
    position: relative;
    overflow: hidden;
    transition: height 200ms ease;
}

.input-field-date div:not(:has(label)).input-field-date-shown {
    height: 18px !important;
}

/* Поместить несколько полей ввода в одну строку */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* А в мобильной версии расположить в столбец */
@media (max-width: 575px) {
    .form-row-force-column-in-mobile {
        flex-direction: column;
    }
}

.formError {
    color: white;
    background-color: #EA2027;
    display: none;
    padding: 10px;
    margin-bottom: 10px;
}

/* Область к кнопками */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* В мобильной версии в столбец и во всю ширину */
@media (max-width: 575px) {
    .form-buttons {
        flex-direction: column;
    }

    .form-buttons input,
    .form-buttons button {
        width: 100%;
    }

}

.form-buttons .input-field {
    margin: 0;
}

.form-buttons input:last-child,
.form-buttons button:last-child {
    margin-left: auto;
}

/* Кнопки в столбик */
.form-buttons-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.form-buttons-column button {
    width: 100%;
}

/* Настольная версия */
@media (min-width: 576px) {

    input[type=submit]:hover {
        background-color: var(--hover-color);
        color: white;
    }

}