/**
 * Section 13 — Liên hệ. CLONE ban mau Fabrica, form noi that.
 * Bang so day du + cac cho khac ban mau: template-parts/home/section-lien-he.php.
 */

.w22-lh {
	/*
	 * 🔴 Section NAY co le doc rieng (giong `dich-vu` va `bang-gia`) — do that
	 * tu ban mau, khong phai tu y them. Cac section khac van de `.w22-than` lo.
	 */
	position: relative;
	padding: 200px var(--w22-le);
	background: var(--w22-nen);

	/* Chu cuon trong nut: ~420ms, vot qua ~7% (cung ho voi Section 08/09/10/12). */
	--lh-cong: linear(
		0, 0.132 3.75%, 0.332 7.5%, 0.545 11.75%, 0.807 18%, 0.967 24%,
		1.03 28%, 1.059 32.25%, 1.068 37.75%, 1.038 48.25%, 1.005 60.75%,
		0.996 73.25%, 0.998 88.75%, 1
	);
}

/* ---------- Nen: video phu kin, thut 6px hai ben ---------- */
.w22-lh-nen {
	position: absolute;
	inset: 0 6px;
	background: var(--w22-toi);
	border-radius: 25px;
	overflow: hidden;
}

.w22-lh-nen__phim {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}

.w22-lh-khung {
	position: relative;
	width: 100%;
	max-width: 1520px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--w22-khe-the);
	align-items: start;
}

/* ======================================================================
   Cot trai: the form trang
   ====================================================================== */
.w22-lh-cot-form {
	display: flex;
	flex-direction: column;
}

/*
 * The form KHONG rong co dinh: no chiem 69% cot o ban desktop (470,6/682 o
 * 1440 va 523/758 o 1920 — cung mot ti le), 87% o tablet, day cot o dien thoai.
 * Dat 470,6px cung thi o 1920 hep hon ban mau 52px.
 */
.w22-lh-form {
	position: relative;
	width: 100%;
	max-width: 69%;
	padding: 40px;
	background: var(--w22-nen-the);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
}

/* O bay chong may gui — an khoi mat nguoi va khoi trinh doc man hinh. */
.w22-lh-bay {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.w22-lh-dau {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.w22-lh-hieu {
	font-size: var(--w22-chu-20);
	line-height: 1.1;
	font-weight: var(--w22-dam);
	letter-spacing: var(--w22-gian);
	color: var(--w22-muc);
}

.w22-lh-tieu {
	align-self: stretch;
	font-size: 38px;
	line-height: 1.1;
	font-weight: var(--w22-dam);
	letter-spacing: var(--w22-gian-to);
	color: var(--w22-muc-2);
}

.w22-lh-tieu span {
	color: var(--w22-muc-mo);
}

/* ---------- Ba o nhap ---------- */
.w22-lh-o-nhom {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.w22-lh-o {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.w22-lh-nhan {
	font-size: var(--w22-chu-12);
	line-height: 1.3;
	font-weight: var(--w22-vua);
	letter-spacing: var(--w22-gian);
	color: var(--w22-muc-2);
}

.w22-lh-hop {
	width: 100%;
	padding: 12px 12px 12px 16px;
	background: var(--w22-nen);
	border-radius: 10px;
	display: block;
}

.w22-lh-nhap {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: var(--w22-chu-18);
	/* Do that: hop chu cao dung 34px. */
	line-height: 34px;
	font-weight: var(--w22-vua);
	letter-spacing: var(--w22-gian);
	color: var(--w22-muc);
}

.w22-lh-nhap::placeholder {
	color: #999;
}

.w22-lh-nhap:focus {
	outline: none;
}

.w22-lh-hop:focus-within {
	outline: 2px solid var(--w22-muc);
	outline-offset: 1px;
}

/*
 * Ban mau dung <input> mot dong cho "Message". Form nay nhan tin THAT nen phai
 * la <textarea>; giu dung chieu cao ban dau 34 roi cho no no ra khi go.
 */
.w22-lh-nhap--dai {
	box-sizing: border-box;
	height: 34px;
	min-height: 34px;
	max-height: 180px;
	line-height: 1.4;
	padding-block: 6px;
	resize: vertical;
}

/* ---------- Nut gui ---------- */
.w22-lh-nut {
	width: 100%;
	padding: 18px;
	background: var(--w22-toi);
	border: 0;
	border-radius: 50px;
	overflow: hidden;
	color: var(--w22-tren-toi);
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color 420ms var(--lh-cong);
}

.w22-lh-nut:hover,
.w22-lh-nut:focus-visible {
	background: #000;
}

.w22-lh-nut__chu {
	position: relative;
	display: block;
	/* 18 + 18 dem + 22 = 58 dung bang chieu cao nut cua ban mau. */
	height: 22px;
	overflow: hidden;
}

.w22-lh-nut__a,
.w22-lh-nut__b {
	display: block;
	font-family: inherit;
	font-size: var(--w22-chu-18);
	line-height: 1.2;
	font-weight: var(--w22-dam);
	letter-spacing: var(--w22-gian);
	white-space: nowrap;
	transition:
		transform 420ms var(--lh-cong),
		opacity 420ms var(--lh-cong);
}

.w22-lh-nut__a {
	position: absolute;
	left: 0;
	top: 0;
	transform: translateY(-40px);
	opacity: 0;
}

.w22-lh-nut:hover .w22-lh-nut__a,
.w22-lh-nut:focus-visible .w22-lh-nut__a {
	transform: translateY(0);
	opacity: 1;
}

.w22-lh-nut:hover .w22-lh-nut__b,
.w22-lh-nut:focus-visible .w22-lh-nut__b {
	transform: translateY(40px);
	opacity: 0;
}

/* ---------- Loi nhan ket qua + dieu khoan ---------- */
.w22-lh-bao {
	width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--w22-nen);
	font-size: var(--w22-chu-14);
	line-height: 1.4;
	font-weight: var(--w22-vua);
	letter-spacing: var(--w22-gian);
	color: var(--w22-muc);
}

.w22-lh-bao--loi,
.w22-lh-bao--spam {
	background: #fdecec;
}

.w22-lh-dieu-khoan {
	align-self: stretch;
	font-size: var(--w22-chu-12);
	line-height: 1.3;
	font-weight: var(--w22-vua);
	letter-spacing: var(--w22-gian);
	color: var(--w22-muc);
}

.w22-lh-dieu-khoan span {
	color: var(--w22-muc-mo);
}

.w22-lh-dieu-khoan a {
	color: var(--w22-muc);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color 280ms var(--lh-cong);
}

.w22-lh-dieu-khoan a:hover,
.w22-lh-dieu-khoan a:focus-visible {
	text-decoration-color: currentColor;
}

/*
 * Dong ban quyen nam duoi CUNG cot trai, cach the form 108,6px (ban mau dung
 * mot «Filler» cao chung ay).
 */
.w22-lh-ban-quyen {
	margin-top: 116.6px;
	font-size: var(--w22-chu-14);
	line-height: 1.3;
	font-weight: var(--w22-vua);
	letter-spacing: var(--w22-gian);
	color: var(--w22-tren-toi);
	opacity: 0.8;
}

/* ======================================================================
   Cot phai: chu tren nen video
   ====================================================================== */
.w22-lh-cot-chu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 60px;
}

.w22-lh-h2 {
	align-self: stretch;
	font-size: var(--w22-chu-144);
	line-height: 0.92;
	font-weight: var(--w22-dam);
	letter-spacing: var(--w22-gian-to);
	color: var(--w22-tren-toi);
}

.w22-lh-mo-ta {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 60px;
}

.w22-lh-doan {
	font-size: var(--w22-chu-30);
	line-height: 1.2;
	font-weight: var(--w22-vua);
	/* Do that: -1.2px o co 30 = -0.04em (KHONG phai -0.06em cua chu display). */
	letter-spacing: var(--w22-gian);
	color: rgba(255, 255, 255, 0.7);
}

.w22-lh-doan span {
	color: var(--w22-tren-toi);
}

.w22-lh-ke {
	display: block;
	width: 100%;
	height: 1px;
	background: var(--w22-tren-toi);
	opacity: 0.1;
}

.w22-lh-muc-ds {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--w22-khe-the);
	align-items: start;
}

.w22-lh-muc {
	padding-right: 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.w22-lh-muc__dau {
	/* Phai stretch thi `flex: 1` cua dong tieu de moi co cho gian. */
	align-self: stretch;
	display: flex;
	align-items: center;
	gap: 16px;
}

.w22-lh-muc__icon {
	flex: none;
	color: var(--w22-tren-toi);
}

.w22-lh-muc__ten {
	flex: 1;
	font-size: var(--w22-chu-18);
	line-height: 1.2;
	font-weight: var(--w22-dam);
	letter-spacing: var(--w22-gian);
	color: var(--w22-tren-toi);
}

.w22-lh-muc__ta {
	max-width: 280px;
	font-size: var(--w22-chu-15);
	line-height: 1.4;
	font-weight: var(--w22-vua);
	letter-spacing: var(--w22-gian);
	color: var(--w22-tren-toi);
	opacity: 0.6;
}

/* ======================================================================
   Tablet
   ====================================================================== */
@media (max-width: 1024px) {
	.w22-lh {
		padding: 100px var(--w22-le);
	}

	.w22-lh-form {
		max-width: 87%;
		padding: 32px;
		gap: 20px;
	}

	.w22-lh-tieu {
		font-size: 30px;
	}

	.w22-lh-hieu {
		font-size: 19px;
	}

	.w22-lh-o-nhom {
		gap: 12px;
	}

	.w22-lh-o {
		gap: 9px;
	}

	.w22-lh-nhan,
	.w22-lh-dieu-khoan {
		font-size: 11px;
	}

	.w22-lh-ban-quyen {
		margin-top: 60px;
		font-size: 13px;
	}

	.w22-lh-cot-chu {
		gap: 40px;
	}

	.w22-lh-h2 {
		font-size: 99px;
	}

	.w22-lh-mo-ta {
		gap: 44px;
	}

	.w22-lh-doan {
		font-size: 28px;
	}

	.w22-lh-muc__ten {
		font-size: 15px;
	}

	.w22-lh-muc__ta {
		max-width: 208px;
		font-size: var(--w22-chu-14);
	}
}

/* ======================================================================
   Dien thoai
   ====================================================================== */
@media (max-width: 600px) {
	.w22-lh {
		padding: var(--w22-le);
	}

	/* Kho nay khoi nen TRAN HET hai ben (thut 0). */
	.w22-lh-nen {
		inset: 0;
	}

	.w22-lh-khung {
		grid-template-columns: minmax(0, 1fr);
		gap: 60px;
	}

	.w22-lh-form {
		max-width: 100%;
		padding: 30px;
		border-radius: 12px;
		gap: 22px;
	}

	.w22-lh-dau {
		gap: 8px;
	}

	.w22-lh-hieu {
		font-size: var(--w22-chu-18);
	}

	.w22-lh-tieu {
		font-size: 24px;
	}

	.w22-lh-o-nhom {
		gap: 14px;
	}

	.w22-lh-o {
		gap: 10px;
	}

	.w22-lh-ban-quyen {
		margin-top: 30px;
	}

	.w22-lh-cot-chu {
		gap: 30px;
	}

	.w22-lh-h2 {
		font-size: 62px;
	}

	.w22-lh-mo-ta {
		gap: 34px;
	}

	.w22-lh-doan {
		font-size: 24px;
	}

	.w22-lh-muc-ds {
		gap: 24px;
	}

	.w22-lh-muc {
		padding-right: 0;
		/* Do that: khe trong moi muc hep lai con 14 o kho nay. */
		gap: 14px;
	}

	.w22-lh-muc__dau {
		gap: 12px;
	}

	.w22-lh-muc__ta {
		font-size: 13px;
	}

	/* Ban mau BO han dong ban quyen o kho nay. */
	.w22-lh-ban-quyen {
		display: none;
	}
}

/* ====================================================================== */
@media (prefers-reduced-motion: reduce) {
	.w22-lh-nut,
	.w22-lh-nut__a,
	.w22-lh-nut__b,
	.w22-lh-dieu-khoan a {
		transition: none;
	}
}
