/*
	FORM LAYOUT
================================================== */

:focus {
	outline: #4D90FE auto 5px;
	outline-color: #4D90FE;
	outline-style: auto;
	outline-width: 5px;
}

.width300px {
	width: 300px !important;
}

.width100px {
	width: 100px !important;
}

.form-fieldContainer {
	position: relative;
	/*max-width: 500px;*/
}

.form-element {
	margin-bottom: 15px;
}

.form-buttons {
	margin-top: 30px;
}

.noButtonsTopMaring .form-buttons {
	margin-top: 0;
}

.form-label {
	font-weight: bold;
	display: block;
	margin-bottom: 5px;
	font-size: 16px;
	line-height: 130%;
}

.form-label span.required {
	position: relative;
	top: -5px;
	padding-left: 5px;
	color: #d50000;
}

.form-label.optional span.required {
	display: none;
}

.form-element .form-originalValue {
	white-space: pre-wrap;
	padding: 5px;
	background-color: #dddddd;
	display: block;
	margin-bottom: 5px;
	font-size: 16px;
	line-height: 130%;
}

.form-element:last-of-type {
	margin-bottom: 0;
}

.readonly {
	background-color: #dddddd;
}

.form-element.checkbox {
	margin-bottom: 15px;
	overflow: hidden;
}

.form-element.checkbox input {
	padding: 0;
	margin: 0;
	vertical-align: middle;
}


.form-element.checkbox .form-fieldContainer {
	float: left;
	height: 20px;
	line-height: 20px;
	margin-right: 5px;
}

.form-element.checkbox .form-label {
	float: left;
	margin-bottom: 0;
	height: 20px;
	line-height: 20px;
}

/*
	FORM TEXT
================================================== */

.form-text {
	display: block;
	color: #333333;
	height: 30px;
	line-height: 30px;
	font-size: 16px;
	box-sizing: border-box;
	font-family: inherit;
	padding: 0 5px;

	border: 1px solid #b8b8b8;

	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;

	width: 100%;

	-webkit-box-shadow: inset 1px 1px 1px 0 #dddddd;
	-moz-box-shadow: inset 1px 1px 1px 0 #dddddd;
	box-shadow: inset 1px 1px 1px 0 #dddddd;
}

.form-text.massiveFormElement {
	height: 45px;
	line-height: 45px;
	padding: 0 10px;
	font-size: 18px;
}

.form-text.iconSearch {
	background: #ffffff url('/images/icons/search.svg') no-repeat scroll 5px center;
	-webkit-background-size: 20px 20px;
	background-size: 20px 20px;
	padding-left: 30px;
}

/*.form-text.iconUser {*/
/*background: #ffffff url('/images/icons/user.svg') no-repeat scroll 5px center;*/
/*-webkit-background-size: 20px 20px;*/
/*background-size: 20px 20px;*/
/*padding-left: 30px;*/
/*}*/

/*
	FORM TEXTAREA
================================================== */

.form-textarea {
	display: block;
	color: #333333;
	font-size: 16px;
	line-height: 130%;
	box-sizing: border-box;
	font-family: inherit;
	padding: 4px;

	border: 1px solid #b8b8b8;

	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;

	width: 100%;

	-webkit-box-shadow: inset 1px 1px 1px 0 #dddddd;
	-moz-box-shadow: inset 1px 1px 1px 0 #dddddd;
	box-shadow: inset 1px 1px 1px 0 #dddddd;
}

.form-textarea.massiveFormElement {
	line-height: 1.2;
	padding: 10px;
	font-size: 18px;
}

/*
	FORM SELECT
================================================== */

.form-select {
	display: block;
	color: #333333;
	height: 30px;
	line-height: 30px;
	font-size: 16px;
	box-sizing: border-box;
	font-family: inherit;
	padding: 0 5px;

	border: 1px solid #b8b8b8;

	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;

	width: 100%;

	-webkit-box-shadow: inset 1px 1px 1px 0 #dddddd;
	-moz-box-shadow: inset 1px 1px 1px 0 #dddddd;
	box-shadow: inset 1px 1px 1px 0 #dddddd;
}

.form-select.empty {
	color: #707070;
}

.form-select.empty option {
	color: #333333;
}

.form-select.jsSelectWithEmptyLabel option:first-of-type {
	color: #707070;
}

.form-select.massiveFormElement {
	height: 40px;
	line-height: 40px;
	padding: 0 10px;
	font-size: 18px;
}

.form-select-date {
	float: left;
	margin-right: 10px;
	font-size: 14px;
	height: 30px;
	line-height: 30px;
}

.form-select-day,
.form-select-month,
.form-select-year,
.form-select-hour,
.form-select-minute {
	margin-right: 5px;
	float: left;
	width: 80px;
}

.form-select-day,
.form-select-hour,
.form-select-minute {
	width: 50px;
}

/*
	RADIO
================================================== */

.form-radio {
	margin: 2px;
	padding: 0;
	vertical-align: middle;
	width: 16px;
	height: 16px;
	line-height: 30px;
	text-align: center;
}

.form-fieldContainer label + label input {
	margin-left: 30px;
}

/*
	CAPTCHA
================================================== */

.form-element.form-captcha .form-text {
	width: 200px;
}

.form-element.form-captcha img {
	display: block;
	margin-bottom: 5px;
}

/*
	DESCRIPTION
================================================== */

.form-description {
	font-size: 14px;
	line-height: 130%;
	padding-top: 5px;
	color: #707070;
}

/*
	FILE UPLOADER
================================================== */

.form-file-uploader {
	width: 116px;
	height: 116px;
	border: 2px dashed #999999;
	background: #d7d7d7 url('/images/photo-grey.svg') no-repeat scroll center center;
}

div.ctFormFileUploader div.ctFormFileUploader-fileInputContainer input {
	height: 120px;
	width: 120px;
}

.ctFormFileStatic {
	position: relative;
}

.absoluteRemoveButton,
.ctFormFileStatic .ctFormFileStatic-removeButton {
	position: absolute;
	left: 108px;
	top: -12px;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	background-color: #a40d14;
	color: #ffffff;
	border-radius: 15px;
}

/*
	ERRORS
================================================== */

ul.errors {
	padding-top: 5px;
}

ul.errors li {
	font-size: 14px;
	line-height: 130%;
	color: #d50000;
}

/*
	PLACEHOLDER
================================================== */

::-webkit-input-placeholder {
	color: #707070;
}

:-moz-placeholder {
	/* Firefox 18- */
	color: #707070;
}

::-moz-placeholder {
	/* Firefox 19+ */
	color: #707070;
}

:-ms-input-placeholder {
	color: #707070;
}

/*
	PLACE SELECT
================================================== */

.ctFormPlaceSelect .ctFormPlaceSelect-currentPlaceButton {
	margin-left: 5px;
	line-height: 30px;
	white-space: nowrap;
}

.ctFormPlaceSelect .ctFormPlaceSelect-suggest {
	position: absolute;
	left: 0;
	right: 0;
	display: block;
	border: 1px solid #d7d7d7;
	background-color: #ffffff;
	box-shadow: 0 0 5px #d7d7d7;
	text-align: left;
	white-space: nowrap;
	z-index: 500;
	overflow: hidden;
}

.ctFormPlaceSelect div.ctFormPlaceSelect-suggest div.ctFormPlaceSelect-suggestMessage,
.ctFormPlaceSelect .ctFormPlaceSelect-suggest .ctFormPlaceSelect-item {
	height: 30px;
	line-height: 30px;
	padding: 0 5px;
	cursor: pointer;
}

.ctFormPlaceSelect .ctFormPlaceSelect-suggest .ctFormPlaceSelect-item.active,
.ctFormPlaceSelect .ctFormPlaceSelect-suggest .ctFormPlaceSelect-item:hover {
	background-color: #e5e5e5;
}

.ctFormPlaceSelect .ctFormPlaceSelect-result {
	display: inline-block;
	position: relative;
	height: 28px;
	line-height: 28px;
	padding: 0 30px 0 5px;
	border: 1px solid #e5e5e5;
	-moz-box-shadow: 0 0 5px #e5e5e5;
	-webkit-box-shadow: 0 0 5px #e5e5e5;
	box-shadow: 0 0 5px #e5e5e5;
	background: #004989;
	color: #ffffff;
	text-align: left;
	white-space: nowrap;
}

.ctFormPlaceSelect .ctFormPlaceSelect-result .ctFormPlaceSelect-removeButton {
	position: absolute;
	display: block;
	right: 0;
	top: 0;
	height: 28px;
	width: 28px;
	text-align: center;
	line-height: 28px;
	color: #ffffff;
}

/*
	REGULAR BUTTON
	HOVER/ACTIVE: +5
	ICON: -40
================================================== */

.regularButton {
	position: relative;
	display: block;
	float: left;

	padding-left: 10px;
	padding-right: 10px;

	border-radius: 3px;
	cursor: pointer;
	font-family: 'Roboto Condensed', helvetica, arial, sans-serif;
	white-space: nowrap;
}

a.regularButton:hover {
	text-decoration: none;
}

.regularButton .buttonCounter {
	display: inline-block;
	min-width: 16px;
	height: 16px;
	padding: 3px;

	font-size: 13px;
	border-radius: 16px;
	background-color: #ffffff;
	color: #333333;
	margin-left: 10px;
	line-height: 16px;
	text-align: center;
}

.regularButton.small .buttonCounter {
	display: inline-block;
	min-width: 12px;
	height: 12px;
	padding: 3px;

	font-size: 12px;
	border-radius: 12px;
	background-color: #ffffff;
	color: #333333;
	margin-left: 10px;
	line-height: 12px;
	text-align: center;
}

.regularButton.height34px .buttonCounter {
	display: inline-block;
	min-width: 16px;
	height: 16px;
	padding: 3px;

	font-size: 13px;
	border-radius: 16px;
	background-color: #ffffff;
	color: #333333;
	margin-left: 10px;
	line-height: 16px;
	text-align: center;
}

/*
	BUTTON ICONS
================================================== */

.regularButton.withIconLeft {
	padding-left: 30px;
}

.regularButton.height34px .withIconLeft {
	padding-left: 34px;
}

.regularButton.massiveFormElement.withIconLeft {
	padding-left: 42px;
}

.regularButton.withIconLeft .icon {
	position: absolute;
	top: 0;
	width: 30px;
	height: 30px;
	background: transparent no-repeat scroll center center;
}

.regularButton.small.withIconLeft .icon {
	top: 1px;
	width: 16px;
	height: 16px;
}

.regularButton.height34px .withIconLeft .icon {
	top: 1px;
	width: 30px;
	height: 30px;
}

.regularButton.massiveFormElement.withIconLeft .icon {
	top: 1px;
	width: 38px;
	height: 38px;
}

.regularButton.withIconLeft .icon.left {
	left: 0;
}

.regularButton.small.withIconLeft .icon.left {
	left: 1px;
}

.regularButton.height34px .withIconLeft .icon.left {
	left: 1px;
}

.regularButton.massiveFormElement.withIconLeft .icon.left {
	left: 1px;
}

/*
	EXTRA FORMS
================================================== */

.formInPopupWithCenteredButton {
	text-align: center;
}

.formInPopupWithCenteredButton .regularButton {
	float: none;
	display: inline-block;
}

div.registerForm div.name,
div.registerForm div.email {
	margin-bottom: 10px;
}

div.registerForm div.place {
	margin-bottom: 15px;
}

div.registerForm div.birthday {
	margin-bottom: 15px;
}

div.registerForm div.gender {
	min-height: 30px;
	line-height: 30px;
}

div.registerForm label {
	font-weight: normal;
}

div.registerForm label .required {
	display: none;
}