/*! ==========================================================================
	 Автор: Павел Белоусов (http://pafnuty.name) */
/*! ========================================================================= */


/*! =========================================================================
   Стили UF-FORM */
/*! ========================================================================= */

.uf-wrapper {
	margin: 0 auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 0 15px rgba(0, 0, 0, .8);
	width: 500px;
	position: relative;
}

.uf-wrapper-inline {
	margin: 20px 0;
}

input.uf-input,
textarea.uf-input {
	display: block;
	width: 100%;
	font-family: Arial, sans-serif;
	font-size: 16px;
	color: #333;
	padding: 10px; /* универсальный padding для всех полей */
	position: relative;
	vertical-align: middle;
	border: solid 1px #ccc;
	outline: none;
	background-color: #fff;
	-webkit-appearance: none;
	box-sizing: border-box;
	border-radius: 2px;
	resize: vertical;
}

input.uf-input:focus,
textarea.uf-input:focus {
	border-color: #4b9fc5;
}

textarea.uf-input {
	min-height: 80px;
	line-height: 20px;
}

select.uf-input {
	padding: 5px;
	-webkit-appearance: menulist;
}

select.uf-input[multiple] {
	height: auto;
	-webkit-appearance: none;
}

.uf-input-error,
.uf-input-error:focus {
	background: rgba(233, 82, 65, .1);
	border-color: #e95241;
}

.uf-btn {
	display: inline-block;
	color: #fff;
	margin-bottom: 0;
	font: normal 14px/20px Arial, sans-serif;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background-image: none;
	background: #4b9fc5;
	border: 0;
	text-decoration: none;
	white-space: nowrap;
	padding: 10px 20px;
	border-radius: 5px;
	-webkit-user-select: none;
	user-select: none;
	transition: all ease .3s;
}

.uf-btn:hover {
	background: #3a7b99;
}

.uf-header {
	font: normal 20px/28px Arial, sans-serif;
	background: #4b9fc5;
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px 4px 0 0;
}

.uf-wrapper-inline .uf-header {
	border-radius: 0;
}

.uf-content {
	font-size: 14px;
}

.uf-alert {
	padding: 10px 20px;
	font-size: 14px;
}

.uf-alert-success {
	background: #45d2b1;
	color: #fff;
}

.uf-alert-error {
	background: #e95241;
	color: #fff;
}

.uf-alert-info {
	background: #ffecb3;
	color: #424242;
	font-weight: normal;
}

.uf-alert ul {
	margin: 0 0 0 20px;
}

.uf-field {
	margin-bottom: 20px;
}

.uf-field:last-child {
	margin-bottom: 0;
}

.uf-field:before,
.uf-field:after {
	content: " ";
	display: table;
}

.uf-field:after {
	clear: both;
}

/* Скрываем лейблы визуально, но оставляем их для UF */
.uf-label {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Placeholder внутри полей */
.uf-input::placeholder {
    color: #999;
    opacity: 1;
}
textarea.uf-input::placeholder {
    color: #999;
    opacity: 1;
}

.uf-error-text {
	color: #e95241;
}

.uf-inline-loading {
	height: 400px;
	margin: 40px auto;
	font-size: 10px;
	position: relative;
	text-indent: -9999em;
	border-top: 1.1em solid rgba(155, 207, 230, .3);
	border-right: 1.1em solid rgba(155, 207, 230, .3);
	border-bottom: 1.1em solid rgba(155, 207, 230, .3);
	border-left: 1.1em solid #4b9fc5;
	transform: translateZ(0);
	animation: ufLoading 1.1s infinite linear;
	border-radius: 50%;
	width: 10em;
	height: 10em;
}

@keyframes ufLoading {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/*! =========================================================================
   Magnific Popup CSS (оставлено без изменений)
   ========================================================================= */

/* ... здесь весь твой CSS для Magnific Popup и Ladda без изменений ... */

/*! =========================================================================
   Ladda CSS (оставлено без изменений)
   ========================================================================= */

/* ... весь твой Ladda CSS без изменений ... */
