/* Popup "Yêu cầu báo giá" (modules/quote-request.php). */
.h2-quote {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.h2-quote.is-open {
	display: flex;
}

.h2-quote__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.h2-quote__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px 40px 28px;
	border-radius: 20px;
	background: linear-gradient(160deg, #0448b2 0%, #2c64bd 100%);
	color: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.h2-quote__close {
	position: absolute;
	top: 8px;
	right: 12px;
	min-height: 0;
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.h2-quote__title {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	color: #fff;
}

.h2-quote__product {
	margin: 0 0 18px;
	font-size: 14px;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
}

.h2-quote__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.h2-quote .h2-quote__input {
	width: 100%;
	height: auto;
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #222;
	font-size: 15px;
	text-align: center;
}

.h2-quote textarea.h2-quote__input {
	border-radius: 16px;
	text-align: left;
	resize: vertical;
}

.h2-quote__groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	margin: 4px 0;
}

.h2-quote__groups label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
}

.h2-quote__groups input {
	flex: 0 0 auto;
	margin: 0;
}

.h2-quote__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.h2-quote__msg {
	min-height: 0;
	margin: 0;
	font-size: 14px;
	text-align: center;
}

.h2-quote__msg.is-error {
	color: #ffe58a;
}

.h2-quote__msg.is-success {
	color: #b7f7c1;
	font-weight: 600;
}

.h2-quote__submit {
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	background: #ffe500;
	color: #c4161c;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.h2-quote__submit:hover {
	background: #ffd400;
}

.h2-quote__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

@media (max-width: 575px) {
	.h2-quote__dialog {
		padding: 28px 18px 22px;
	}

	.h2-quote__groups {
		grid-template-columns: minmax(0, 1fr);
	}
}
