.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .6);
	overflow: auto;
	z-index: 999;
	transition: .4s all;
	opacity: 0;
	visibility: hidden;
	cursor: pointer;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.modal-overlay *,
.modal-overlay *:before,
.modal-overlay *:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

.modal-overlay_visible {
	opacity: 1;
	visibility: visible;
}

.modal-table {
	display: table;
	width: 100%;
	height: 100%;
}

.modal-table-cell {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	padding: 0 15px;
}

.modal {
	transition: .4s all;
	display: inline-block;
	padding: 20px 30px;
	max-width: 400px;
	width: 100%;
	background: #fff;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, .25);
	color: #333;
	text-align: left;
	font-family: inherit;
	margin: 30px 0;
	transform: translate(0, 20%);
	position: relative;
	border-radius: 4px 6px 4px 4px;
	cursor: auto;
	font-size: 16px;
}

.modal-overlay_visible .modal {
	transform: translate(0);
}

.ns-popular-card__request-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.625rem 1rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	border-radius: 0.5rem;
	border: 1px solid rgba(161, 211, 38, 0.75);
	background: transparent;
	color: #0f172a;
	text-decoration: none;
	box-shadow: none;
	white-space: nowrap;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}

.ns-popular-card__request-price:hover {
	background: #a1d326;
	border-color: rgba(161, 211, 38, 0.6);
	color: #0f172a;
}

.ns-popular-card__request-price:active {
	transform: scale(0.99);
}

.modal__header {
	font-size: 24px;
	line-height: 1.15;
	font-weight: 500;
	padding: 0 0 10px 0;
	color: #0f172a; /* slate-900 */
	font-family: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	letter-spacing: -0.01em;
}

.modal__subheader {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	color: #64748b; /* slate-500 */
	padding: 0 0 18px 0;
}

.modal__content p {
	padding: 0 0 10px 0;
	margin: 0;
}

.modal__close {
	position: absolute;
	right: 10px;
	top: 0;
	background: #a1d326;
	width: 25px;
	height: 25px;
	border-radius: 0 0 4px 4px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	padding: 0;
	border: none;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.modal__close:hover {
	background: #86b01b;
	box-shadow: 0 2px 6px rgba(161, 211, 38, 0.35);
}

.modal__close:before,
.modal__close:after {
	content: "";
	display: block;
	height: 16px;
	width: 1px;
	transform: rotate(45deg);
	background: #0f172a;
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	top: 0;
	bottom: 0;
}

.modal__close:after {
	transform: rotate(-45deg);
}

/* Contact Form 7 styling inside modals (global) */
.ns-cf7-form {
	position: relative;
}

.ns-cf7-form .wpcf7 {
	font-family: inherit;
}

.ns-cf7-form .wpcf7 form {
	margin: 0;
}

.ns-cf7-form .wpcf7 p {
	margin: 0 0 14px 0;
	padding: 0;
}

.ns-cf7-form .wpcf7 label {
	display: block;
	font-size: 13px;
	line-height: 1.35;
	color: #64748b; /* slate-500 */
	margin: 0 0 6px 0;
}

.ns-cf7-form .wpcf7 input[type="text"],
.ns-cf7-form .wpcf7 input[type="tel"],
.ns-cf7-form .wpcf7 input[type="email"],
.ns-cf7-form .wpcf7 textarea {
	width: 100%;
	display: block;
	background: #f8fafc; /* slate-50 */
	border: 1px solid rgba(148, 163, 184, 0.35); /* slate-400/35 */
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.2;
	color: #0f172a; /* slate-900 */
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
	box-sizing: border-box;
}

.ns-cf7-form .wpcf7 input[type="text"],
.ns-cf7-form .wpcf7 input[type="tel"],
.ns-cf7-form .wpcf7 input[type="email"] {
	height: 40px;
	padding-top: 0;
	padding-bottom: 0;
}

.ns-cf7-form .wpcf7 textarea {
	resize: none;
	height: 60px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.ns-cf7-form .wpcf7 input[readonly] {
	opacity: .9;
	background: #f1f5f9; /* slate-100 */
	cursor: default;
}

.ns-cf7-form .wpcf7 input:focus,
.ns-cf7-form .wpcf7 textarea:focus {
	background: #ffffff;
	border-color: #A1D326; /* brand lime */
	box-shadow: 0 0 0 3px rgba(161, 211, 38, 0.25);
}

.ns-cf7-form .wpcf7 input::placeholder,
.ns-cf7-form .wpcf7 textarea::placeholder {
	color: #94a3b8; /* slate-400 */
}

.ns-cf7-form .wpcf7 input[type="submit"] {
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 15px;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a; /* slate-900 */
	background: #A1D326; /* brand lime */
	cursor: pointer;
	transition: background-color .2s ease, transform .05s ease;
}

.ns-cf7-form .wpcf7 input[type="submit"]:hover {
	background: #86b01b;
}

.ns-cf7-form .wpcf7 input[type="submit"]:active {
	transform: scale(0.99);
}

.ns-cf7-form .wpcf7 .wpcf7-spinner {
	display: inline-block;
	vertical-align: middle;
	position: absolute;
	margin: 0;
	left: 50%;
	bottom: 90px;
	transform: translateX(-50%);
}

.ns-cf7-form .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

.ns-cf7-form .wpcf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 6px;
	color: #dc2626; /* red-600 */
}

.ns-cf7-form .wpcf7 .wpcf7-response-output {
	margin: 14px 0 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.35;
}

.ns-cf7-form .wpcf7 form.invalid .wpcf7-response-output,
.ns-cf7-form .wpcf7 form.failed .wpcf7-response-output,
.ns-cf7-form .wpcf7 form.aborted .wpcf7-response-output {
	border-color: rgba(220, 38, 38, 0.35);
	background: rgba(220, 38, 38, 0.06);
	color: #991b1b;
}

.ns-cf7-form .wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(22, 163, 74, 0.35);
	background: rgba(22, 163, 74, 0.06);
	color: #166534;
}

.ns-cf7-form .wpcf7 .wpcf7-list-item {
	margin: 0;
}

.ns-cf7-form .wpcf7 .wpcf7-acceptance label,
.ns-cf7-form .wpcf7 .wpcf7-checkbox label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 12px;
	color: #64748b;
}

.ns-cf7-form .wpcf7 .wpcf7-acceptance input[type="checkbox"],
.ns-cf7-form .wpcf7 .wpcf7-checkbox input[type="checkbox"] {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 4px;
	border: 1px solid #cbd5e1; /* slate-300 */
	background: #ffffff;
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	position: relative;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}

.ns-cf7-form .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked,
.ns-cf7-form .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked {
	background: #A1D326; /* brand lime */
	border-color: #A1D326;
	box-shadow: 0 0 0 3px rgba(161, 211, 38, 0.25);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}

.ns-cf7-form .wpcf7 .wpcf7-acceptance input[type="checkbox"]:focus,
.ns-cf7-form .wpcf7 .wpcf7-checkbox input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(161, 211, 38, 0.25);
}

/* Ссылки в тексте согласия и других полях CF7 */
.ns-cf7-form .wpcf7 .wpcf7-list-item-label a,
.ns-cf7-form .wpcf7 .wpcf7-acceptance a,
.ns-cf7-form .wpcf7 .wpcf7-checkbox a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 0.15s ease;
}

.ns-cf7-form .wpcf7 .wpcf7-list-item-label a:hover,
.ns-cf7-form .wpcf7 .wpcf7-acceptance a:hover,
.ns-cf7-form .wpcf7 .wpcf7-checkbox a:hover {
	text-decoration: none;
}

