.form-pages {
    max-width: 670px;
    margin: 0 auto;
}
.form-content {
    margin: 0;
    width: 100%;
    max-width: 670px;
    background-color: #f3f3f3;
    overflow: unset;
}
.form-content IMG {
    margin: 0;
}
.form-content.inner-pages {
    margin: 0 auto;
}
.form-header-links {
    width: 670px;
    margin: 0 auto;
}
@media screen and (min-width:540px)
{
    .form-content {
        border-radius: 10px;
        padding: 0 0;
        margin: 20px 10px;
        width: calc(100% - 20px);
        overflow: unset;
    }
}
@media screen and (min-width:670px)
{
    .form-content {
        margin: 20px auto;
    }
}
@media screen and (max-width:960px)
{
    .form-header-links {
        width: 670px;
        margin: 0 auto;
    }
}
@media screen and (max-width:670px)
{
    .form-header-links {
        width: 100%;
        margin: 0 auto;
    }
}
.form-content P.small {
    margin: 1em 0;
}
.form-content P.small {
    font-size: 13px;
}
.form-content .block-head {
    color: #717171;
    margin: 0;
}
.form-content .row INPUT:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button'])  {
    width: 100%;
    line-height: 30px;
    height: 40px;
    padding: 0 5px;
    border: 2px inset #f3f3f3;
    border-radius: 10px;
}
.form-content .ql-tooltip.ql-editing INPUT[type='text'] {
    width: auto;
}
.form-content .row INPUT[type='file']
{
    width: 100%;
    height: 50px;
}
.form-content .row INPUT[type=file]::file-selector-button {
    display: block;
    opacity: 0;
    font-size: var(--font-size);
    padding: var(--padding);
}
.form-content .row SELECT {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #272727;
    font-size: 15px;
    width: 100%;
    line-height: 30px;
    height: 40px;
    padding: 0 5px;
    border: 2px inset #f3f3f3;
    border-radius: 10px;
    background-color: white;
}
.form-content .row SELECT:disabled {
    background-color: transparent;
    color: silver;
}
.form-content .row SELECT OPTION {
    padding: 0 5px;
}

.form-content .date-time {
	display: flex;
	justify-content: space-between;
}
.form-content .date-time DIV:first-child {
	width: calc(70% - 5px);
}
.form-content .date-time DIV:last-child {
	width: calc(30% - 5px);
}

.form-content .date-select {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0;
}
.form-content .date-select DIV:nth-child(1) {
    width: calc(20%);
}
.form-content .date-select DIV:nth-child(2) {
    width: calc(30% - 10px);
}
.form-content .date-select DIV:nth-child(3) {
    width: calc(50% - 10px);
}
.form-content .date-select SELECT {
    font-size: 12px;
}

.form-content .birthday {
	display: flex;
    justify-content: center;
    width: 100%; 

}
.form-content .birthday DIV {
    flex-basis: 150px;
}
.form-content .birthday .day {
    margin-right: 5px;
}
.form-content .birthday .month {
    margin-right: 5px;
}

.form-content .block-flow {
    margin-bottom: 1em;
}
.form-content .block-flow-small {
    margin-bottom: 0.5em;
}
.form-content .block-flow-top {
    margin-top: 1em;
}
.form-content .in {
    padding: 20px 0;
    border-bottom: 3px solid #FFF;
}
.form-content .in:last-child {
    border-bottom: 0;
}
.form-content .in .row {
    font-size: 14px;
    color: gray;
    position: relative;
}
.form-content .in .row.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-content .in .geo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-content .in .geo DIV {
    width: calc(100% / 3 - 5px);
    position: relative;
}
.form-content .in .select {
    position: relative;
}
.form-content .in .geo DIV::after, .form-content .in .select::after {
    content: "";
    display: block;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    border-color: #000 transparent transparent transparent;
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 300;
    margin-top: -3px;
}

/*
.form-content .in .row .delete {
    background-image: url('/templates/img/deletex.gif');
    background-position: 50%;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    right: 0;
    position: absolute;
    display: block;
}
*/
.form-content .in .list {
    margin: 5px 0;
    line-height: 40px;
}

.form-content .in .row .left, .form-content .in .row .right {
    width: calc(50% - 10px);
    position: relative;
}
.form-content .in .row .block-full-height {
    line-height: 40px;
}
.form-content .in .row, .form-content .in .block-head {
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
}
.form-content .in .block-head.ns {
    margin-left: 0;
    margin-right: 0;
}

.form-content .in .ql-toolbar {
    background-color: #f3f3f3;
    position: sticky;
    top: 5px;
    z-index: 100;
    border: 2px inset #f3f3f3;
    border-radius: 10px 10px 0 0;
    border-width: 2px 2px 2px 2px;
    box-shadow: 0 -13px 0 rgba(243,243,243,1);
}
#text-editor-id {
    background-color: #FFF;
    min-height: 150px;
    border: 2px inset #f3f3f3;
    border-radius: 0 0 10px 10px;
    border-width: 0 2px;
}
#text-editor-id .ql-editor {
	padding: 10px;
}

#text-editor-id .ql-video {
    width: 100%;
    height: 250px;
}
#text-editor-id .ql-tooltip {

}
#text-editor-id STRONG {
    font-weight: bold;
}
#text-editor-id P { 
	margin: 0 0 1em 0;
}
#text-editor-id IMG { 
    margin: 1em auto;
}
#text-editor-id A {
    color: Black;
    text-decoration: none;
}

@media screen and (max-width:400px)
{
    .form-content .in .row .left, .form-content .in .row .right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .form-content .in .ql-toolbar {
        box-shadow: 0px 3px 4px rgba(100,100,100,0.5);
        border-width: 0;
        top: 0;
    }
    #text-editor-id {
        background-color: #FFF;
        min-height: 150px;
        border-radius: 0;
        border-width: 0;
    }
}

#quill_upload_progress_id {
	position: absolute;
	width: 100%;
	z-index: 999;
}
#quill_upload_progress_id .opacity {
	height: 245px;
	background-color: #e8e8e8;
	opacity: 0.6;
	filter: alpha(opacity=60);
}
#full-text-editor-id {
    margin-left: 20px;
    margin-right: 20px;
    border: 2px inset #f3f3f3;
    border-radius: 10px;
    border-width: 0 0 2px 0;
}
.ql-snow.ql-toolbar BUTTON.ql-omega, .ql-snow .ql-toolbar BUTTON.ql-omega {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyNiI+PGcgZmlsbD0iIzZCNkI2QiI+PHBhdGggZD0iTTE2LjE0IDcuODZMMTQuMjcgNkgyMHY1LjdsLTEuODMtMS44MkwxNS4wNCAxMyAxMyAxMC45OGwzLjEzLTMuMTN6bTAgME05Ljg2IDE4LjE0TDExLjczIDIwSDZ2LTUuN2wxLjgzIDEuODJMMTAuOTYgMTMgMTMgMTUuMDJsLTMuMTMgMy4xM3ptMCAwIi8+PC9nPjwvc3ZnPg==);
    background-position: 50%;
}

.ql-toolbar.ql-snow {
    border: 0;
}

.map-route-select {
    height: 250px;
    margin-left: 20px;
    margin-right: 20px;
    border: 1px inset silver;
}
.map-point-select {
    height: 250px;
    margin-left: 20px;
    margin-right: 20px;
    border: 2px inset silver;
}
#poll-place-id .item {
	position: relative;
    width: 100%;
}
#poll-place-id .item IMG {
	position: absolute;
	right: 10px;
	top: calc(50% - 6px);
    margin: 0;
}
#poll-answer-id .item {
	position: relative;
    width: 100%;
}

#poll-answer-id INPUT {
    width: 100%;
    line-height: 20px;
    padding: 0 5px;
}

.phone-number {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    line-height: 40px;
    column-gap: 10px;
}
.phone-number .country {
    max-width: 50px;
}
.phone-number .delete, .list .delete {
    background-image: url('/templates/img/deletex.gif');
    background-position: 50%;
    background-repeat: no-repeat;
    width: 30px;
    height: 40px;
    right: 0;
    position: absolute;
    display: block;
}
.phone-number .delete.null, .list .delete.null {
    background-image: none;
}
.phone-number .delete IMG, .list .delete IMG {
    margin: 12px 7px;
}

.form-content .submit BUTTON, .form-content .submit .button INPUT {
    background-color: gray;
    color: white;
    line-height: 40px;
    display: block;
    padding: 0;
    text-align: center;
    border-radius: 5px;
    font-size: 15px;
    padding: 0 10px;
    border: 0;
    cursor: pointer;
}
.form-content .submit BUTTON:disabled, .form-content .submit .button INPUT:disabled {
    background-color: silver;
    color: gray;
}

.form-content .submit {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    /* justify-content: space-between; */
}
/******* Изменено из-за добавления редиректа в редактировании мануала ***********/
.form-content .submit DIV:nth-child(1) {
    /* flex-basis: calc(20%); */
    margin-right: 10px;
}
.form-content .submit DIV:nth-child(2) {
    /* flex-basis: calc(80%); */
}
.form-content .submit DIV {
    position: relative;
}
.form-content .submit .errors DIV {
    color: red;
    line-height: 1.5em;
    font-size: 14px;
    margin-top: 11px;
}


.form-content .submit .progress {
	position: relative;
	width: 55%;
	border: 1px solid Gray;
	padding: 1px;
	border-radius: 5px;
    /*
	top: 8px;
	float: left;
    */
}
.form-content .quill_progress {
	position: absolute;
	width: 200px;
	border: 1px solid Gray;
	padding: 1px;
	border-radius: 5px;
	left: calc(50% - 100px);
	top: 115px;
	background-color: #FFF;
}
.form-content .submit .progress .bar, .form-content  .quill_progress .bar {
	background-color: Gray;
	width: 0%;
	height: 100%;
	border-radius: 10px;
}
.form-content .submit .progress .percent, .form-content  .quill_progress .percent {
	position: absolute;
	display: inline-block;
	top: 0;
    line-height: 40px;
	left: 48%;
    font-size: 13px;
}


.form-content textarea {
	display: block;
    width: 100%;
    line-height: 1.25em;
    padding: 5px;
    border: 2px inset #f3f3f3;
    border-radius: 10px;
}

/**************************************** .dataForm .item BUTTON ******************************/
.form-content .block-notification {
	background-color: white;
	border-radius: 10px;
	font-size: 14px;
	padding: 10px;
	line-height: 1.5em;
	margin-top: 1em;
	margin-bottom: 1em;
	text-align: center;
    border: 0;
}
.form-content .block-notification-samll {
	font-size: 14px;
	padding: 0;
	line-height: 1.5em;
	text-align: center;
    color: gray;
}
.form-content .block-red {
	background-color: white;
	border-radius: 10px;
	font-size: 14px;
	padding: 10px;
	line-height: 1.5em;
	text-align: center;
    border: 0;
    color: red;
}

/*** Изменили c button на inner-button из-за кнопки у заглавного изображения мотофирмы и марки *******/
.form-content .row .inner-button {
    background-color: gray;
    color: white;
    line-height: 40px;
    padding: 0;
    text-align: center;
    border-radius: 5px;
    font-size: 15px;
    padding: 0 10px;
    border: 0;
    cursor: pointer;
    float: left;
    margin-right: 10px;
}
.form-content .row .inner-button:disabled {
    background-color: silver;
}

@media screen and (max-width:540px) {
    .map-point-select {
        margin-left: 0;
        margin-right: 0;
        border-width: 1px 0;
    }
    #full-text-editor-id {
        margin-left: 0;
        margin-right: 0;
    }
    .form-content .in .row, .form-content .in .block-head {
        margin-left: 10px;
        margin-right: 10px;
    }
    #text-editor-id {
        border: 1px solid gray;
        border-width: 0;
    }
    .ql-toolbar.ql-snow, .ql-container.ql-snow {
        border-top: 1px;
    }
    
    .form-content .submit .row {
        display: block;
    }
    .form-content .submit .row DIV:nth-child(1) {
        flex-basis: auto;
        margin-right: 0;
    }
    .form-content .submit .row DIV:nth-child(2) {
        flex-basis: auto;
    }
    
    #text-editor-id .ql-video {
        height: 180px;
    }
}

/********************************** .additional-images */
.form-content .attach-block .image {
	width: calc(45% - 45px);
	margin-right: 0;
}
.form-content .attach-block-one .image-one {
	width: calc(50% - 45px);
	margin-right: 0;
}
.form-content .attach-image-one {
    position: relative;
}
.form-content .attach-image-one .image-one {
	width: calc(100% - 45px);
	margin-right: 0;
}
.form-content .attach-image-one .loading {
    opacity: 25%;
}
.form-content .attach-image-one PROGRESS {
    margin: 0 auto 0 auto;
    padding: 0;
    position: absolute;
    width: calc(100% - 90px);
    top: 13px;
    left: 45px;
    display: none;
}
.form-content .attach-image-one UL {
    list-style: circle;
    margin-left: 20px;
}
.form-content .attach-image-one UL LI {
    margin: 0.5em 0;
}
.form-content .attach-block .youtube {
	width: calc(55% - 45px);
	margin-right: 0;
}
.form-content .attach-block-one BUTTON {
    background-color: gray;
    border-radius: 10px;
    color: white;
    padding: 0 10px;
}

/********************************** .row.price */
.form-content .in .row.price {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.form-content .in .row.price DIV {
    width: calc(100% / 3 - 10px);
    line-height: 40px;
}

/********************* id_models_checker ************************/
#id_models_checker .item {
    position: relative;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
}
#id_models_checker .item IMG {
    position: absolute;
    right: 0;
    top: calc(50% - 8px);
    margin: 0;
    cursor: pointer;
}
#id_models_checker .item.selected IMG {
    display: none;
}


/**************************************** gallery_form_id ******************************/
#gallery-photos-id {
    overflow: hidden;
    zoom: 1;
    margin-bottom: 30px;
}
#gallery-photos-id DIV.item {
    width: 172px;
    height: 98px;
    float: left;
    margin: 10px 0 0 10px;
    overflow: hidden;
    zoom: 1;
    position: relative;
}
#gallery-photos-id DIV.item .progress {
    position: absolute;
    width: 168px;
    height: 94px;
    background-color: #FFF;
    top: 2px;
    right: 2px;
    opacity: 0.5;
    filter: alpha(opacity=50);
    -moz-opacity: 0.5;
}
#gallery-photos-id DIV.item .a {
    width: 168px;
    height: 94px;
    display: block;
    border: 2px solid #FFF;
    overflow: hidden;
    zoom: 1;
}
#gallery-photos-id DIV.top .a {
    border: 2px solid Black !important;
}
#gallery-photos-id DIV.item .a IMG {
    position: relative;
    display: block;
    margin: 0;
}

#gallery-photos-id DIV.item A.d {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    background-color: black;
    border: 1px solid black;
    border-radius: 5px;
}
#gallery-photos-id DIV.item A.d:before, #gallery-photos-id DIV.item A.d:after {
    position: absolute;
    left: 6px;
    top: 1px;
    content: ' ';
    height: 11px;
    width: 2px;
    background-color: white;
}
#gallery-photos-id DIV.item A.d:before {
    transform: rotate(45deg);
}
#gallery-photos-id DIV.item A.d:after {
    transform: rotate(-45deg);
} 

/********************************** .input-file */
/*
.form-content {
    cursor: pointer;
    padding-left: 45px;
}
.form-content .input-file {
	position: relative;
	display: flex;
    padding: 0;
}
.form-content .input-file-text {
	line-height: 40px;
	text-align: left;
	display: block;
	box-sizing: border-box;
	width: 200px;text-align: center;
}
.form-content .input-file-button {
	cursor: pointer;
    background-color: gray;
	text-align: center;
	box-sizing: border-box;
	border: none;
    color: white;
	line-height: 30px;
    border-radius: 5px;
    font-size: 15px;
    padding: 10px 0;
    width: 100px;
}
.form-content .input-file input[type=file] {
	position: absolute;
	opacity: 0;
	display: block;
    border: 1px solid black;
    cursor: pointer;
	width: 0;
	height: 0;
}
*/