/* Common */
form { margin: 0; padding: 0; }
.form-inline, .inline-form { display: inline-block; }

/* Form */
.form.after-text:not(.is-hidden-header) { margin-top: 20px; }
.form-block { position: relative; }
.form-title { margin-bottom: 10px; }
.form-body { display: table; }
.form-row { display: table-row; }
.form-body .tbody
{
	display: table-row-group;
	background: #f0f0f0;
}
.form-body .tbody > .form-row:first-child > div
{
	padding-bottom: 0;
}
.form-body .tbody > .form-row > .form-name
{
	padding-left: 10px;
}
.form-body .tbody > .form-row:first-child > .form-element
{
	font-weight: bold;
}
.form-body fieldset legend
{
	display: none;
}
.form-row.hidden { display: none; }
.form-name
{
	display: table-cell;
	vertical-align: middle;
	min-width: 200px;
	color: #333;
	padding: 10px 10px 10px 0;
}
.form-element
{
	display: table-cell;
	vertical-align: middle;
	padding: 10px 10px 10px 3px;
	width: 100%;
}
.form-element.hidden { display: none; }
.form-notice, .form-field-text
{
	font-size: 85%;
	color: #999;
	margin-top: 3px;
	padding: 0 1px;
	font-weight: normal;
}
.required
{
	font-weight: bold;
	color: inherit;
}
.required:after
{
	content: ' *';
	color: #f00;
}

/* Text fields */
.form-element .forminput
{
	vertical-align: middle;
	width: 100%;
	box-sizing: border-box;
}
.form-body textarea
{
	display: block;
	height: 120px;
	overflow: auto;
}
.form-body .suggest-address
{
	padding-left: 8px !important;
}
.forminput-text, .form select
{
	padding: 8px;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: linear-gradient(#f5f5f5 0%, #fff 31%, #fff 100%);
	box-sizing: border-box;
	margin: 0;
}
.forminput-text:focus
{
	color: #000;
	background: #fff;
}
.forminput-text:disabled
{
	color: #999;
	border-color: #e9e9e9;
	background: #f9f9f9;
}
.formsmall, .form-element .formsmall
{
	width: 50px;
	max-width: 100%;
}
.formmiddle, .form-element .formmiddle, .formmail, .form-element .formmail
{
	width: 280px;
	max-width: 100%;
}

/* Fieldset */
.form-block fieldset legend
{
	font-weight: bold;
	color: #000;
}

/* Radio */
.formradio-box
{
	margin: 0;
	padding: 0;
	list-style-type: none;
}
.formradio-box > li
{
	display: inline-block;
	vertical-align: middle;
}
.formradio-box > li:not(:last-child) { margin-right: 15px; }
.beauty-radio { display: none; }
.beauty-radio + label
{
	display: inline-block;
	vertical-align: middle;
	position: relative;
	-webkit-appearance: none;
	background-color: #fafafa;
	border: 1px solid #cacece;
	padding: 9px;
	border-radius: 50px;
}
.beauty-radio:checked + label
{
	background-color: #e9ecee;
	color: #99a1a7;
	border: 1px solid #adb8c0;
}
.beauty-radio:checked + label:after
{
	content: ' ';
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50px;
	position: absolute;
	top: 3px;
	left: 3px;
	background: var(--ThemeColor);
	box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
	font-size: 32px;
}
.beauty-radio.small + label
{
	padding: 7px;
	border-radius: 8px;
}
.beauty-radio.small:checked + label:after
{
	top: 2px;
	left: 2px;
	width: 10px;
	height: 10px;
	border-radius: 40px;
}
.beauty-radio + label + label
{
	display: inline-block;
	vertical-align: middle;
	margin-left: 7px;
}

/* checkboxes */
.form-checkboxes-box
{
	margin: 0;
	padding: 0;
	list-style-type: none;
}
.form-checkboxes-box > li:not(:last-child) { margin-bottom: 7px; }
.beauty-checkbox { display: none; }
.beauty-checkbox + label
{
	display: inline-block;
	vertical-align: middle;
	width: 18px;
	height: 18px;
	line-height: 18px;
	background-color: #fafafa;
	border: 1px solid #cacece;
	border-radius: 3px;
	font-size: 13px;
	text-align: center;
}
.beauty-checkbox:checked + label
{
	border: 1px solid var(--ThemeColor);
	color: #99a1a7;
	background-color: var(--ThemeColor);
}
.beauty-checkbox:checked + label:after
{
	content: '\f00c';
	font-family: "Font Awesome 5 Pro";
	color: #fff;
}
.beauty-checkbox + label + label
{
	display: inline-block;
	margin-left: 7px;
	vertical-align: middle;
}

/* Checkbox texts */
.form-checkbox-texts
{
	border-collapse: collapse;
	border-spacing: 0;
}
.form-checkbox-texts td { padding: 4px; }
.form-checkbox-texts .label-cell { text-align: right; }
.form-checkbox-texts .form-checkbox-texts-text { width: 280px; }

/* select */
.formselect { vertical-align: middle; }
.formselect-custom
{
	display: inline-block;
	vertical-align: middle;
	margin-left: 15px;
	text-align: left;
	width: 40%;
}
.formselect-custom-label
{
	display: inline-block;
	margin-left: 7px;
}
.formselect-custom input { width: 100%; }
input[type=hidden] + .formselect-custom
{
	width: 100%;
	margin-left: 0;
}

/* datepicker */
.datepickers
{
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
}
.datepickers > *
{
	flex-basis: 50%;
	flex: 1;
}

.form-element .forminput.datepicker { width: 100%; }
.datepicker-single
{
	position: relative;
	width: 110px;
}
.datepicker-single + .datepicker-single { margin-left: 9px; }
.ui-datepicker
{
	z-index: 10 !important;
}
.ui-datepicker-trigger
{
	background: none;
	border: 0;
	outline: none;
	cursor: pointer;
	position: absolute;
	right: 9px;
	top: 50%;
	padding: 0;
	margin: -9px 0 0 0;
}
.ui-datepicker-trigger:before
{
	content: '\f073';
    font-family: "Font Awesome 5 Pro";
    font-size: 16px;
    color: #ee6d65;
}

/* Captcha */
.captcha-reload
{
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
}
.captcha-input, .form-element .captcha-input { width: 50px; }

/* File and Image */
.formimagealtcontainer + .formimagealtcontainer { margin-top: 7px; }
.formimagealtcontainer.disabled { opacity: 0.5; }
.formimage-image
{
	display: inline-block;
	vertical-align: top;
	width: 87px;
	text-align: center;
	margin-right: 10px;
	font-size: 85%;
	color: #999;
}
.formimage-options
{
	display: inline-block;
	vertical-align: top;
}
.formimage-options-delete
{
	font-size: 85%;
	color: #666;
	display: block;
	margin-top: 10px;
}
.formimage-options-delete > label { vertical-align: middle; }
.formimage-options-input
{
	display: inline-block;
	vertical-align: middle;
}
.formimage-options-alt
{
	display: inline-block;
	vertical-align: middle;
	margin-left: 7px;
}
.formimagealt-name
{
	width: 140px;
	vertical-align: middle;
}

/* Images */
.form-images-clone { margin-top: 7px; }
.form-images-close
{
	vertical-align: middle;
	margin-left: 7px;
}

/* Location */
.location-textable { width: 50%; }
.location
{
	display: inline-block;
	vertical-align: middle;
	margin: 0 7px 7px 0;
}
.formlocationcity { max-width: 230px; }
.formlocationcustom { width: 230px; }

/* Terms */
#form-terms
{
	font-size: 85%;
	color: #333;
}
#form-terms-text
{
	padding-top: 15px;
	text-align: left;
}
#form-terms .details { text-transform: lowercase; }

/* Mobile phone */
.form-phone-mobile { white-space: nowrap; }
.form-element input.form-phone-code1 { width: 50px; }
.form-element input.form-phone-code2
{
	width: 50px;
	margin-left: 7px;
}
.form-element input.form-phone-number
{
	width: 80px;
	margin-left: 7px;
}

/* Address */
.field-address-container textarea{ height: 50px; }

/* Fio */
.fio-container
{
	display: flex;
	max-width: 100%;
	width: 100%;
	justify-content: space-between;
}
.fio-container .formmiddle, .fio-container > span > *
{
	width: 100%;
}
.form-fio-family { flex-basis: 40%; }
.form-fio-name { flex-basis: 25%; }
.form-fio-pat { flex-basis: 30%; }
.is-no-pat .form-fio-family { flex-basis: 60%; }
.is-no-pat .form-fio-name { flex-basis: 35%; }


/* Number */
input[type=number].forminput-text
{
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	height: 34px;
	width: 50px;
}

/* Messages */
.fvm
{
	display: block;
	margin-top: 8px;
	position: relative;
	z-index: 9;
}
.form-ajaxvalidator-message
{
	position: relative;
	display: inline-block;
	font-size: 85%;
	padding: 5px 8px 5px 8px;
	color: #fff;
}
.form-ajaxvalidator-message:before
{
	content: '';
	display: block;
	position: absolute;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid transparent;
	top: -6px;
	left: 15px;
}
.form-ajaxvalidator-message0 { background: rgb(160,54,51); }
.form-ajaxvalidator-message0:before { border-bottom-color: rgb(160,54,51); }
.form-ajaxvalidator-message1 { background: #009900; }
.form-ajaxvalidator-message1:before { border-bottom-color: #009900; }

/* Site form */
.aside .form-block-limited { display: block; }
.aside .formmiddle,
.aside .form-element .formmiddle,
.aside .formmail,
.aside .form-element .formmail
{
	width: 100%;
}

.ui-selectmenu-button span.ui-icon
{
	border-color: var(--ThemeColor);
}

.no-border-radius .forminput-text, .no-border-radius .form select
{
	border-radius: 0;	
}

@media screen and (max-width: 768px)
{
	.adaptive .fio-container
	{
		flex-direction: column;
	}
	.adaptive .fio-container > *
	{
		flex-basis: auto;
	}
	.adaptive .fio-container > *:not(:last-child)
	{
		margin-bottom: 10px;
	}
}

@media screen and (max-width: 640px)
{
	.adaptive form[data-limited=true]
	{
		text-align: center;
	}
	.adaptive .formmiddle:not(.no100),
	.adaptive .form-element .formmiddle:not(.no100),
	.adaptive .formmail:not(.no100),
	.adaptive .form-element .formmail:not(.no100)
	{
		width: 100%;
		margin-left: 0;
	}
	.adaptive .form-name
	{
		min-width: 100px;
	}
	.adaptive .forminput-text + .forminput-text:not(.no100)
	{
		margin-top: 10px;
	}
}

@media screen and (max-width: 460px)
{
	.adaptive .form-body
	{
		display: block;
	}
	.adaptive .form-row:not(.hidden)
	{
		display: block;
	}
	.adaptive .form-element
	{
		display: block;
		padding-top: 0;
	}
	.adaptive .vertical .form-element
	{
		padding-top: 5px;
	}
	.adaptive .form-name
	{
    	display: block;
		min-width: 0;
		padding-left: 3px;
	}
}