/* Сторінка форми (шаблон templates/single-ucf_form.php) */

main.ucf-page {
	display: table;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: 100px 40px;
	background: #fff;
}

.ucf-page .ucf-page__article {
	width: 100%;
	max-width: 540px;
	margin: 0 auto;
}

@media ( max-width: 782px ) {
	main.ucf-page {
		padding: 48px 20px;
	}
}

/* Форма */

.ucf-form {
	max-width: 540px;
	margin: 0 0 2rem;
}

.ucf-form__field {
	margin-bottom: 1.15rem;
}

.ucf-form__label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	line-height: 1.3;
}

.ucf-form__req {
	color: #c0392b;
}

.ucf-form__control {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #c8ccd1;
	border-radius: 4px;
}

.ucf-form__control:focus {
	border-color: #2271b1;
	outline: 2px solid rgba( 34, 113, 177, 0.25 );
	outline-offset: 0;
}

.ucf-form__group {
	display: block;
}

.ucf-form__option {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin: 0.3rem 0;
	font-weight: 400;
	line-height: 1.4;
}

.ucf-form__option input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.ucf-form__error {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85em;
	color: #c0392b;
}

.ucf-form__field--invalid .ucf-form__control {
	border-color: #c0392b;
}

.ucf-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ucf-form__actions {
	margin-top: 1.5rem;
}

.ucf-form button.ucf-form__submit {
	display: inline-flex;
	width: 100%;
	padding: 1px 50px;
	margin-top: 20px;
	justify-content: center;
	align-items: center;
	min-height: 56px;
	font-family: inherit;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.2;
	color: #000;
	text-transform: none;
	letter-spacing: 0;
	background: linear-gradient( 63deg, #5effec 0%, #33bbabbd 100% );
	border: 1px solid #00ffe1;
	border-radius: 57px;
	cursor: pointer;
	transition: all 0.4s;
}

.ucf-form button.ucf-form__submit:hover {
	background: linear-gradient( 63deg, #5effec 0%, #33bbabbd 100% );
	border: 1px solid #00ffe1;
	box-shadow: 0 0 0 5px #5effec75;
}

.ucf-form button.ucf-form__submit[disabled] {
	opacity: 0.6;
	box-shadow: none;
	cursor: default;
}

.ucf-form__message {
	margin-top: 1rem;
	line-height: 1.5;
}

.ucf-form__message--success {
	padding: 1rem 1.15rem;
	color: #14532d;
	background: #ecf7ef;
	border-left: 4px solid #2e7d32;
	border-radius: 3px;
}

.ucf-form__message--error {
	color: #c0392b;
}

.ucf-form__notice {
	color: #8a6d3b;
}
