/* Musin Bros Leads — frontend form */

.mbl-form-wrap,
.mbl-form {
	width: 100%;
	min-width: 0;
}

.mbl-form {
	margin-top: 18px;
}

.mbl-form-row {
	margin-bottom: 12px;
	min-width: 0;
}

.mbl-form-row:last-child {
	margin-bottom: 0;
}

.mbl-form-row > label {
	display: block;
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.4;
	color: inherit;
	font-weight: 400;
}

.mbl-form input[type="text"],
.mbl-form input[type="email"],
.mbl-form input[type="tel"],
.mbl-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 13px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
	box-shadow: none;
	appearance: none;
}

.mbl-form textarea {
	min-height: 150px;
	resize: vertical;
}

.mbl-form input[type="text"]:focus,
.mbl-form input[type="email"]:focus,
.mbl-form input[type="tel"]:focus,
.mbl-form textarea:focus {
	outline: none;
	border-color: #007deb;
	box-shadow: 0 0 0 3px rgba(0, 125, 235, 0.12);
	background: #ffffff;
}

.mbl-form-row-checkbox {
	margin-top: 4px;
	margin-bottom: 18px;
}

.mbl-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.mbl-form-checkbox-label input[type="checkbox"] {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.mbl-form-checkbox-label span {
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}

.mbl-form-checkbox-label a {
	color: #007deb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mbl-form-checkbox-label a:hover {
	color: #006fd3;
}

.mbl-form-row-submit {
	margin-bottom: 0;
}

.mbl-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	min-width: 160px;
	padding: 0 20px;
	border: 1px solid #007deb;
	border-radius: 8px;
	background: #007deb;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.mbl-form button[type="submit"]:hover {
	background: #006fd3;
	border-color: #006fd3;
	color: #ffffff;
	opacity: 1;
}

.mbl-form-notice {
	margin-bottom: 16px;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}

.mbl-form-notice ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.mbl-form-notice li {
	margin-bottom: 6px;
}

.mbl-form-notice-success {
	background: #eef8f1;
	border: 1px solid #cfe8d5;
	color: #1f5130;
}

.mbl-form-notice-error {
	background: #fff3f2;
	border: 1px solid #f0d0cd;
	color: #8b2c25;
}

.mbl-form-row-hidden {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 767px) {
	.mbl-form input[type="text"],
	.mbl-form input[type="email"],
	.mbl-form input[type="tel"],
	.mbl-form textarea {
		font-size: 15px;
	}
}

/* =========================
   Musin Bros Leads — success modal
   Окно благодарности для статических форм
   ========================= */

body.mb-leads-success-modal-open {
	overflow: hidden;
}

.mbl-form.is-sending {
	opacity: 0.72;
	pointer-events: none;
}

.mb-leads-success-modal {
	position: fixed;
	inset: 0;
	z-index: 999997;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.22s ease,
		visibility 0s linear 0.22s;
}

.mb-leads-success-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition:
		opacity 0.22s ease,
		visibility 0s linear 0s;
}

.mb-leads-success-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgb(10 13 18 / 72%);
}

.mb-leads-success-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	min-height: 330px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 44px 28px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	box-sizing: border-box;
	text-align: center;
	outline: none;
	transform: translateY(12px) scale(0.985);
	transition: transform 0.22s ease;
}

.mb-leads-success-modal.is-open .mb-leads-success-modal__dialog {
	transform: translateY(0) scale(1);
}

.mb-leads-success-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	border-radius: 999px;
	background: #d6ebdc;
	color: #14843b;
}

.mb-leads-success-modal__icon svg {
	display: block;
	width: 34px;
	height: 34px;
}

.mb-leads-success-modal__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.22;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111827;
}

.mb-leads-success-modal__text {
	max-width: 460px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.55;
	color: #4b5563;
}

.mb-leads-success-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: #007deb;
	color: #ffffff;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.18s ease,
		transform 0.18s ease;
}

.mb-leads-success-modal__button:hover {
	background: #006fd3;
	color: #ffffff;
}

.mb-leads-success-modal__button:focus-visible {
	outline: 3px solid rgba(0, 125, 235, 0.28);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.mb-leads-success-modal {
		padding: 12px;
	}

	.mb-leads-success-modal__dialog {
		min-height: 300px;
		padding: 36px 20px;
		border-radius: 16px;
	}

	.mb-leads-success-modal__icon {
		width: 60px;
		height: 60px;
		margin-bottom: 20px;
	}

	.mb-leads-success-modal__icon svg {
		width: 32px;
		height: 32px;
	}

	.mb-leads-success-modal__title {
		font-size: 21px;
	}

	.mb-leads-success-modal__text {
		font-size: 15px;
	}

	.mb-leads-success-modal__button {
		margin-top: 22px;
		padding: 12px 20px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mb-leads-success-modal,
	.mb-leads-success-modal__dialog,
	.mb-leads-success-modal__button {
		transition: none;
	}
}