.mf-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 600px;
	margin: 0 auto;
	padding: 0;
}

.mf-form {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	grid-auto-flow: dense;
}

.mf-form-group {
	margin-bottom: 0;
}

.mf-col-full {
	grid-column: 1 / -1;
}

.mf-col-half {
	grid-column: span 1;
}

.mf-col-third {
	grid-column: span 1;
}

.mf-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
}

.mf-required {
	color: #ef4444;
	margin-left: 3px;
}

.mf-input {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #e2e8f0;
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
	background: #fff;
}

.mf-input:focus {
	outline: none;
	border-color: #2c5282;
	box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
	background: #fff;
}

.mf-input::placeholder {
	color: #cbd5e1;
}

.mf-submit-btn {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 10px;
}

.mf-submit-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.mf-submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

.mf-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mf-form.mf-submitting .mf-submit-btn {
	position: relative;
	color: transparent;
}

.mf-form.mf-submitting .mf-submit-btn::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mf-spin 0.7s linear infinite;
}

@keyframes mf-spin {
	to { transform: rotate(360deg); }
}

.mf-form-error {
	padding: 12px 16px;
	background: #fde8e8;
	border-left: 4px solid #ef4444;
	border-radius: 4px;
	color: #b91c1c;
	margin-bottom: 16px;
	font-size: 14px;
}

.mf-uspech {
	padding: 16px 20px;
	background: #dcfce7;
	border-left: 4px solid #10b981;
	border-radius: 6px;
	color: #166534;
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.5;
}

.mf-wrapper.mf-odeslano .mf-form {
	display: none;
}

@media (max-width: 600px) {
	.mf-form {
		padding: 16px;
	}

	.mf-submit-btn {
		padding: 11px 16px;
		font-size: 15px;
	}
}
