.nqm[hidden] {
	display: none !important;
}

.nqm {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	transition: opacity .18s ease;
}

.nqm.is-visible {
	opacity: 1;
}

.nqm__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 18, 29, .78);
	backdrop-filter: blur(3px);
}

.nqm__dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(90vh, 820px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 16, 29, .36);
	transform: translateY(14px) scale(.985);
	transition: transform .18s ease;
}

.nqm.is-visible .nqm__dialog {
	transform: translateY(0) scale(1);
}

.nqm__dialog::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, #123f6c, #1688b7 62%, #45b9df);
}

.nqm__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #d8e5eb;
	border-radius: 50%;
	background: #fff;
	color: #476171;
	cursor: pointer;
}

.nqm__close:hover,
.nqm__close:focus-visible {
	border-color: #1688b7;
	background: #eff8fb;
	color: #123f6c;
	outline: none;
}

.nqm__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.nqm__header {
	padding: 42px 68px 27px;
	text-align: center;
	background: linear-gradient(180deg, #f3fafc 0%, #fff 100%);
}

.nqm__eyebrow {
	margin: 0 0 9px;
	color: #1688b7;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .17em;
}

.nqm__header h2 {
	margin: 0 0 11px;
	color: #123f6c;
	font-family: inherit;
	font-size: clamp(29px, 4vw, 41px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.035em;
}

.nqm__header > p:last-child {
	max-width: 600px;
	margin: 0 auto;
	color: #607582;
	font-size: 14px;
	line-height: 1.65;
}

.nqm__product {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 15px;
	margin: 0 52px 18px;
	padding: 11px;
	border: 1px solid #dbe7ed;
	border-radius: 10px;
	background: #f6fafc;
}

.nqm__product-image {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	overflow: hidden;
	border: 1px solid #e0e8ed;
	border-radius: 7px;
	background: #fff;
}

.nqm__product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nqm__product-copy span,
.nqm__product-copy strong,
.nqm__product-copy small {
	display: block;
}

.nqm__product-copy span {
	margin-bottom: 4px;
	color: #1688b7;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nqm__product-copy strong {
	color: #123f6c;
	font-size: 14px;
	line-height: 1.35;
}

.nqm__product-copy small {
	margin-top: 4px;
	color: #6a7e8a;
	font-size: 11px;
}

.nqm__form {
	padding: 5px 52px 42px;
}

.nqm__form .wpforms-container {
	margin: 0 !important;
}

.nqm__form .wpforms-field-container {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 17px 20px;
}

.nqm__form .wpforms-field {
	width: 100% !important;
	padding: 0 !important;
}

.nqm__form #wpforms-258-field_3-container {
	grid-column: 1 / -1;
}

.nqm__form .wpforms-field-label {
	margin: 0 0 7px !important;
	color: #234760 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
}

.nqm__form .wpforms-required-label {
	color: #1688b7 !important;
}

.nqm__form input[type="text"],
.nqm__form input[type="email"],
.nqm__form textarea {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid #d1dfe5 !important;
	border-radius: 7px !important;
	background: #f6f8f9 !important;
	color: #1d3545 !important;
	box-shadow: none !important;
}

.nqm__form input[type="text"],
.nqm__form input[type="email"] {
	height: 45px !important;
	padding: 0 13px !important;
}

.nqm__form textarea {
	min-height: 116px !important;
	padding: 11px 13px !important;
	resize: vertical;
}

.nqm__form input:focus,
.nqm__form textarea:focus {
	border-color: #1688b7 !important;
	background: #fff !important;
	outline: 3px solid rgba(22, 136, 183, .13) !important;
}

.nqm__form .wpforms-submit-container {
	padding-top: 21px !important;
}

.nqm__form button[type="submit"] {
	width: 100% !important;
	min-height: 47px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #123f6c !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .02em;
}

.nqm__form button[type="submit"]:hover,
.nqm__form button[type="submit"]:focus {
	background: #1688b7 !important;
	color: #fff !important;
}

.nqm__form .wpforms-confirmation-container-full {
	margin: 0 !important;
	padding: 22px 24px !important;
	border: 1px solid #b9dfcf !important;
	border-radius: 10px !important;
	background: #effaf5 !important;
	color: #1d5b45 !important;
}

.nqm__form .wpforms-error,
.nqm__form em.wpforms-error {
	color: #b42318 !important;
	font-size: 11px !important;
}

body.nqm-is-open {
	position: fixed;
	width: 100%;
	overflow: hidden;
}

@media (max-width: 680px) {
	.nqm {
		align-items: end;
		padding: 10px;
	}

	.nqm__dialog {
		max-height: 94vh;
		border-radius: 16px 16px 10px 10px;
	}

	.nqm__header {
		padding: 38px 25px 23px;
	}

	.nqm__header > p:last-child {
		font-size: 13px;
	}

	.nqm__form {
		padding: 3px 22px 29px;
	}

	.nqm__product {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 11px;
		margin: 0 22px 15px;
	}

	.nqm__product-image {
		width: 58px;
		height: 58px;
	}

	.nqm__form .wpforms-field-container {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.nqm__form #wpforms-258-field_3-container {
		grid-column: auto;
	}

	.nqm__close {
		top: 13px;
		right: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nqm,
	.nqm__dialog {
		transition: none;
	}
}
