/* Анкета кандидата на странице /vakansii — оформление в стиле сайта "Факел".
   Отдельный файл, чтобы не трогать основной style.css. */

.anketa {
	margin-top: 35px;
	border-top: 1px solid #e0e0e0;
	padding-top: 25px;
}

.anketa .anketa-head {
	margin-bottom: 5px;
}

.anketa h2 {
	color: #628297;
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 6px;
}

.anketa .anketa-note {
	color: #7c7c7c;
	font-size: 13px;
	margin-bottom: 18px;
}

.anketa .anketa-note b {
	color: #628297;
}

/* Заголовок группы полей */
.ank-legend {
	color: #628297;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 1px solid #dfe5ea;
	padding-bottom: 6px;
	margin: 26px 0 14px;
}

.ank-legend:first-child {
	margin-top: 0;
}

/* Поле */
.ank-field {
	margin-bottom: 16px;
}

.ank-field > label,
.ank-label {
	display: block;
	color: #676767;
	font-size: 13px;
	line-height: 18px;
	margin-bottom: 5px;
}

.ank-field .req {
	color: #c0392b;
	margin-left: 2px;
}

.ank-field input[type="text"],
.ank-field input[type="tel"],
.ank-field input[type="email"],
.ank-field select,
.ank-field textarea {
	display: block;
	width: 100%;
	height: 34px;
	padding: 5px 10px;
	color: #333;
	font-size: 14px;
	background-color: #fff;
	border: 1px solid #c5c5c5;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
}

.ank-field textarea {
	height: auto;
	min-height: 90px;
	line-height: 20px;
	resize: vertical;
}

.ank-field input:hover,
.ank-field select:hover,
.ank-field textarea:hover,
.ank-field input:focus,
.ank-field select:focus,
.ank-field textarea:focus {
	border-color: #628297;
	outline: none;
}

/* Ошибка поля */
.ank-field.has-error input,
.ank-field.has-error select,
.ank-field.has-error textarea,
.ank-field.has-error .ank-file-box,
.ank-field.has-error .ank-choice span {
	border-color: #c0392b;
}

.ank-error {
	display: none;
	color: #c0392b;
	font-size: 12px;
	line-height: 16px;
	margin-top: 4px;
}

.ank-field.has-error .ank-error {
	display: block;
}

.ank-hint {
	color: #9a9a9a;
	font-size: 12px;
	line-height: 16px;
	margin-top: 4px;
}

/* Переключатели «карточками»: пол, судимость */
.ank-choices {
	margin: 0 -5px;
}

.ank-choice {
	display: block;
	float: left;
	width: 50%;
	padding: 0 5px;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.ank-choice input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ank-choice span {
	display: block;
	text-align: center;
	line-height: 22px;
	padding: 5px 8px;
	color: #555;
	font-size: 14px;
	background: #fff;
	border: 1px solid #c5c5c5;
	border-radius: 2px;
	transition: all 0.15s linear 0s;
}

.ank-choice:hover span {
	border-color: #628297;
}

.ank-choice input:checked + span {
	color: #fff;
	background: linear-gradient(#628297, #4f6b81);
	border-color: #4f6b81;
}

.ank-choice input:focus + span {
	box-shadow: 0 0 0 2px rgba(98, 130, 151, 0.35);
}

/* Файлы: паспорт, СНИЛС */
.ank-file-box {
	background: #fff;
	border: 1px dashed #c5c5c5;
	border-radius: 2px;
	padding: 10px 12px;
	transition: border 0.2s linear 0s;
}

.ank-file-box:hover {
	border-color: #628297;
}

.ank-file-box input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ank-file-btn {
	display: inline-block;
	color: #fff;
	font-size: 13px;
	line-height: 18px;
	padding: 4px 12px;
	background: linear-gradient(#628297, #4f6b81);
	border-radius: 3px;
	cursor: pointer;
	margin: 0;
}

.ank-file-btn:hover {
	background: #417e9f;
}

.ank-file-name {
	display: inline-block;
	color: #676767;
	font-size: 13px;
	line-height: 18px;
	margin-left: 10px;
	word-break: break-all;
}

.ank-file-clear {
	color: #a94442;
	font-size: 12px;
	margin-left: 8px;
	text-decoration: underline;
	cursor: pointer;
	display: none;
}

.ank-file-box.filled {
	border-style: solid;
	border-color: #6aa436;
}

.ank-file-box.filled .ank-file-clear {
	display: inline;
}

/* Согласие */
.ank-consent {
	margin: 22px 0 0;
	font-size: 13px;
	line-height: 19px;
	color: #676767;
	font-weight: normal;
}

.ank-consent input {
	margin-right: 6px;
	vertical-align: -1px;
}

.ank-consent a {
	color: #628297;
	text-decoration: underline;
}

/* Кнопка и статус отправки */
.anketa .order-submit {
	margin-top: 18px;
	padding: 9px 30px !important;
	font-size: 15px;
	font-family: inherit;
}

.anketa .order-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.ank-privacy {
	color: #9a9a9a;
	font-size: 12px;
	line-height: 17px;
	margin-top: 10px;
}

.ank-result {
	display: none;
	margin-top: 18px;
	padding: 12px 15px;
	font-size: 14px;
	line-height: 20px;
	border: 1px solid transparent;
	border-radius: 3px;
}

.ank-result.ok {
	display: block;
	color: #3c6b21;
	background: #f0f7e9;
	border-color: #b9d99a;
}

.ank-result.err {
	display: block;
	color: #a94442;
	background: #fdf3f2;
	border-color: #e6b9b7;
}

/* Телефоны и планшеты */
@media (max-width: 767px) {
	.anketa h2 {
		font-size: 20px;
	}

	.ank-field input[type="text"],
	.ank-field input[type="tel"],
	.ank-field input[type="email"],
	.ank-field select {
		height: 38px;
		font-size: 16px; /* iOS не зумит поле при фокусе */
	}

	.anketa .order-submit {
		display: block;
		width: 100%;
	}
}
