.webfactor_modal_form.webfactor_red {
	width: 400px;
	border: 1px solid;
	background: #fff;
	position: absolute;
	left: 50%;
	margin-left: -150px;
	display: none;
	opacity: 0;
	z-index: 100000;
	padding: 25px;
	border-radius: 8px;
}

.webfactor_static_form.webfactor_red{
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
}

div[id^=webfactor_modal_form-].webfactor_modal_form.webfactor_red .webfactor_modal_close{
    width: 21px;
	height: 21px;
    position: absolute;
    cursor: pointer;
	display: block;
	text-align: center;
    line-height: 20px;
	border-radius: 10px;
    background: url(../images/webfactor-close-bg.png) center center no-repeat;
    border: none;
    color: transparent;
    top: -25px;
    right: -25px;
    border-radius: none;
    opacity: .8;
    transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transition: transform .5s;
}

div[id^=webfactor_modal_form-].webfactor_modal_form.webfactor_red .webfactor_modal_close:hover {
    background-color: transparent;
    opacity: 1;
    color: transparent;
    transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}

/* Подложка */
.webfactor_overlay {
	z-index: 99999;
	position: fixed;
	background-color: #000;
	opacity: 0.8;
	width: 100%; 
	height: 100%;
	top: 0; 
	left: 0;
	cursor: pointer;
	display: none;
}
.webfactor_red .webfactor_predtext, .webfactor_red .webfactor_predButton {
	padding: 10px;
	text-align: center;
	border-bottom: 1px solid;
	font-size: 20px;
	color: inherit;
}

.webfactor_red .webfactor_predtext {
    border: none;
}

.webfactor_red .webfactor_predButton{
	border: none;
}
.webfactor_red .webfactor_predtext p, .webfactor_red .webfactor_predButton p{
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}
.webfactor_red form.ajaxWebfactorForm{
	padding: 10px;
	margin: 0;
    margin-bottom: 5px;
}

.webfactor_red form.ajaxWebfactorForm .radio,
.webfactor_red form.ajaxWebfactorForm .checkbox {
    min-height: 20px;
    padding: 0!important;
}
.webfactor_red form.ajaxWebfactorForm .radio input,
.webfactor_red form.ajaxWebfactorForm .checkbox input{
    float: left;
    width: auto;
	margin: 5px 5px 0 0;
}
.webfactor_red form.ajaxWebfactorForm .colorbox p{
	display: inline-block;
}
.webfactor_red form.ajaxWebfactorForm .colorbox input{
	width: 40px;
    height: 30px;
    float: none;
    margin: 0px 10px;
    padding: 0px;
    box-shadow: none;
    cursor: pointer;
    border: none;
}

.webfactor_red form.ajaxWebfactorForm input,
.webfactor_red form.ajaxWebfactorForm select,
.webfactor_red form.ajaxWebfactorForm textarea{
	width: 100%;
    margin: 15px 0;
    line-height: normal;
    color: inherit;
    display: table-row-group;
    box-sizing: border-box;
    box-shadow: none;
	height: auto;
	display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    line-height: 1.25;
    color: #495057;
    background-color: #fff;
    background-image: none;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 55px;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.webfactor_red form.ajaxWebfactorForm textarea {
    min-height: 55px!important;
	outline: none;
}
.webfactor_red form.ajaxWebfactorForm input:focus{
	border-color: inherit;
	box-shadow: none;
	outline: none;
}

.webfactor_red .ajaxWebfactorForm input[id^=submit] {
    text-decoration: none;
    color: #fff;
    background-color: #3812a9;
    display: inline-block;
    font-weight: 400;
    white-space: pre-line;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 15px 26px;
    line-height: 1.25;
    border-radius: 55px;
	cursor: pointer;
    transition: all .15s ease-in-out;
	margin: 0;
}
.webfactor_red .ajaxWebfactorForm input[id^=submit]:hover,
.webfactor_red .ajaxWebfactorForm input[id^=submit]:active {
    background-color: #d31f3d;
}

.webfactor_red .ajaxWebfactorForm input {
  border: 0 solid transparent;
  border-bottom: 1px solid #7a8188;
  border-radius: 0;
}
.webfactor_red .ajaxWebfactorForm label.error {
  margin-top: 0;
  margin-bottom: -15px;
  background-color: transparent;
}
.webfactor_red .ajaxWebfactorForm textarea {
  border: 1px solid transparent;
  border-radius: 0;
  background-color: rgba(204,204,204,0.3);
  margin-top: 15px;
  resize: vertical;
}

.WFnameField p{
	margin: 10px 0 -5px 0px;
}
.webfactor_red form.ajaxWebfactorForm legend {
	margin-bottom: 5px;
	font-size: inherit;
}
.webfactor_red .webfactor_go{
    text-decoration: none;
    color: #fff;
    background-color: #3812a9;
    display: inline-block;
    font-weight: 400;
	text-align: center;
    white-space: pre-line;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 15px 26px;
    line-height: 1.25;
    border-radius: 50px;
	cursor: pointer;
    transition: all .15s ease-in-out;
}
.webfactor_red .webfactor_go:hover, .webfactor_red .webfactor_go:focus{
    background-color: #d31f3d;
    color: #fff;
}
.webfactor_modal_form.webfactor_red div[class^=webfactor_error-status]{
	padding: 15px 10px;
	text-align: center;
	font-size: 22px;
	color: red;
}
.webfactor_modal_form.webfactor_red div[class^=webfactor_ok-status]{
	padding: 15px 10px;
	text-align: center;
	font-size: 18px;
	color: inherit;
}
.webfactor_modal_form.webfactor_red div[class^=webfactor_error-status] p,
.webfactor_modal_form.webfactor_red div[class^=webfactor_ok-status] p{
	margin: 0;
}
.webfactor_red form.ajaxWebfactorForm label.error{
    display: block;
    background-color: rgba(255,255,255, 0.8);
    border-radius: 4px;
    margin-top: -8px;
    color: red;
    font-size: 14px;
    width: 100%;
    float: none;
    clear: both;
    margin-bottom: 0;
    padding: 0;
    max-width: 100%;
}
.webfactor_red form.ajaxWebfactorForm fieldset.radio,
.webfactor_red form.ajaxWebfactorForm fieldset.checkbox{
	position:relative;
}
.webfactor_red form.ajaxWebfactorForm fieldset.radio label.error,
.webfactor_red form.ajaxWebfactorForm fieldset.checkbox label.error{
	position: absolute;
	bottom: 0;
}