/*
Common styling that is used for form's general appearance
- Should not contain any specific styling, like font sizes or colors
- Selectors must be as simple as possible
- Please, keep styles sorted is their respective sections
- Only styles relative to form and it's elements are allowed
*/

/*Form*/

.fb-node form {
    padding: initial;
}

.row.fb-node-container {
    margin-left: -5px;
    margin-right: -5px;
}

.col.fb-node {
    padding-left: 5px;
    padding-right: 5px;
}

.form-group {
    position: relative;
}

/*!Form*/

/*Common for all inputs*/

.lm_form--content--input.form-check-input {
    height: 1rem;
    width: 1rem;
}

.lm_form--content--input.form-check-input:checked[type=checkbox] {
    height: 1rem;
    width: 1rem;
}

.lm_form--content--input.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.lm_form--content--input.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

/*!Common for all inputs*/

/*CQ styles*/

.fb-cq-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
}

.fb-cq-container .fb-cq-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.fb-cq-container .fb-group-form-check {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

/*!CQ styles*/

/*Checkboxes and radio-buttons*/

.form-control-sm.form-check-input {
    min-height: 1rem;
}

/*!Checkboxes and radio-buttons*/

/*Error messages*/

.fb-error-node {
    position: relative;
    top: -0.5rem;
}

/*!Error messages*/