/*
 * Popup & form tư vấn, hỏi đáp
 *
 * Tách từ main.css (10/2026). Thứ tự nạp: inc/enqueue.php → tri_css_parts().
 */

.tri-help-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 20px;
	width: var(--tri-frame);
	margin: 0 auto;
}

.tri-help-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 20px 28px;
	text-align: center;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

.tri-help-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.tri-help-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	z-index: -1;
	width: 100px;
	height: 20px;
	transform: translateX(-50%);
	border-radius: 0 0 var(--wp--custom--radius--control) var(--wp--custom--radius--control);
	background: var(--wp--preset--color--navy);
}

.tri-help-card > * {
	position: relative;
	z-index: 1;
}

.tri-help-card__media {
	width: 240px;
	max-width: 100%;
	height: 160px;
	border-radius: 12px;
	background: var(--wp--preset--color--muted);
}

.tri-help-card h3 {
	margin: 0;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--beau-sans);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font--weight-strong);
	line-height: 1.3;
}

.tri-help-card p {
	margin: 0;
	color: var(--wp--custom--color--ink-strong);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--body);
}

.tri-help-card__link {
	margin-top: auto;
	color: var(--wp--preset--color--royal);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font--weight-ui);
	text-decoration: none;
}

.tri-help-card__link::after {
	content: " >";
}

.tri-help-card__link:hover,
.tri-help-card__link:focus-visible {
	text-decoration: underline;
	outline: none;
}

.tri-faq {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 16px;
	max-width: var(--tri-frame);
	margin: 0 auto;
}

.tri-faq__item {
	position: relative;
	align-self: start;
	height: fit-content;
	overflow: hidden;
	border-radius: 20px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 4px 18px rgba(9, 31, 91, 0.08);
}

/* Chrome bọc phần trả lời trong ::details-content và chỉ ẩn bằng
   content-visibility, nên ô đóng vẫn giữ chiều cao. Ép display:none. */
.tri-faq__item:not([open])::details-content,
.tri-faq__item:not([open]) > .tri-faq__a {
	display: none;
}

.tri-faq__item::details-content {
	display: block;
	width: 100%;
}

.tri-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 16px 22px;
	cursor: pointer;
	list-style: none;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--beau-sans);
	font-weight: var(--wp--custom--font--weight-ui);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

.tri-faq__item summary::-webkit-details-marker {
	display: none;
}

.tri-faq__q {
	flex: 1;
	min-width: 0;
}

.tri-faq__chev {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
}

.tri-faq__chev::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--wp--preset--color--white);
	border-bottom: 2px solid var(--wp--preset--color--white);
	transform: rotate(-45deg);
	margin-left: -2px;
}

.tri-faq__item[open] summary {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	border-radius: 0;
}

.tri-faq__item[open] .tri-faq__chev {
	background: var(--wp--preset--color--white);
}

.tri-faq__item[open] .tri-faq__chev::before {
	border-color: var(--wp--preset--color--navy);
	transform: rotate(45deg);
	margin-left: 0;
	margin-top: -2px;
}

.tri-faq__a {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 16px 22px 18px;
	background: var(--wp--preset--color--white);
	color: var(--wp--custom--color--ink-strong);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--body);
}

.tri-faq__a a {
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
}

@media (min-width: 768px) {
	.tri-help-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 24px;

	}

	.tri-faq {
		grid-template-columns: repeat(2, 1fr);
		align-items: start;
		gap: 20px 24px;
		max-width: var(--tri-frame);

	}
}

/* -- Popup đăng ký tư vấn (template-parts/consult-popup.php) -------------
   <dialog> + showModal(): máy tính 2 cột (panel navy | form), điện thoại
   thành tấm trượt từ dưới lên. */
.tri-popup {
	--tri-pop-navy: var(--wp--preset--color--navy, #091f5b);
	--tri-pop-action: var(--wp--preset--color--action, #0053d1);
	--tri-pop-orange: var(--wp--preset--color--orange, #ec6207);
	--tri-pop-line: #dbe3f0;
	/* Reset chung của theme đặt margin: 0 cho mọi thẻ — phải trả lại cách
	   canh giữa mặc định của <dialog> modal. */
	position: fixed;
	inset: 0;
	width: min(920px, calc(100vw - 32px));
	max-width: none;
	height: fit-content;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tri-pop-navy);
	overflow: visible;
}

.tri-popup::backdrop {
	background: rgba(9, 31, 91, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

html:has(.tri-popup[open]) {
	overflow: hidden;
}

.tri-popup[open] .tri-popup__box {
	animation: tri-popup-in 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.tri-popup[open]::backdrop {
	animation: tri-popup-fade 0.3s ease both;
}

.tri-popup.is-closing .tri-popup__box {
	animation: tri-popup-out 0.2s ease both;
}

.tri-popup.is-closing::backdrop {
	animation: tri-popup-fade 0.2s ease reverse both;
}

.tri-popup__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
	max-height: calc(100dvh - 32px);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(9, 31, 91, 0.35);
	overflow: hidden;
}

.tri-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(9, 31, 91, 0.06);
	color: var(--tri-pop-navy);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tri-popup__close:hover,
.tri-popup__close:focus-visible {
	background: rgba(9, 31, 91, 0.14);
	transform: rotate(90deg);
	outline: none;
}

/* ── Cột trái: panel navy ── */
.tri-popup__side {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 40px 32px 32px;
	background: linear-gradient(160deg, #1646b4 0%, #0d2f86 45%, var(--tri-pop-navy) 100%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.tri-popup__orb {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(36px);
	pointer-events: none;
}

.tri-popup__orb--a {
	top: -70px;
	right: -60px;
	width: 220px;
	height: 220px;
	background: rgba(236, 98, 7, 0.45);
}

.tri-popup__orb--b {
	bottom: 60px;
	left: -90px;
	width: 200px;
	height: 200px;
	background: rgba(64, 140, 255, 0.45);
}

.tri-popup__eyebrow {
	align-self: flex-start;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffd2b3;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tri-popup__title {
	margin: 16px 0 10px;
	color: #fff;
	font-size: clamp(22px, 2.3vw, 28px);
	font-weight: 800;
	line-height: 1.25;
}

.tri-popup__lead {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	line-height: 1.6;
}

.tri-popup__perks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.tri-popup__perks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.tri-popup__tick {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: -1px;
	border-radius: 50%;
	background: var(--tri-pop-orange);
	color: #fff;
	box-shadow: 0 4px 12px rgba(236, 98, 7, 0.45);
}

.tri-popup__mascot {
	align-self: flex-end;
	width: 150px;
	height: auto;
	margin: auto -10px -32px 0;
	padding-top: 16px;
	/* Nền navy đã nung vào ảnh — làm mờ viền cho hoà vào gradient. */
	-webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
	mask-image: radial-gradient(closest-side, #000 72%, transparent);
}

/* Layout banner: ảnh tràn đáy cột trái (mọi breakpoint), chữ nằm trên.
   Absolute + copy padding-bottom để không hở nền navy dưới ảnh. */
.tri-popup__side--banner {
	position: relative;
	min-height: 420px;
	padding-bottom: 0;
	overflow: hidden;
}

.tri-popup__side--banner .tri-popup__copy {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	/* Chừa chỗ cho ảnh đáy — khớp height banner. */
	padding-bottom: clamp(220px, 54%, 360px);
}

.tri-popup__side--banner .tri-popup__orb {
	opacity: 0.4;
}

.tri-popup__side--banner .tri-popup__banner {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: 100%;
	max-width: none;
	height: clamp(220px, 54%, 360px);
	margin: 0;
	object-fit: cover;
	object-position: center 16%;
	/* Phai trên (hoà chữ/navy) + phai nhẹ đáy. */
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		#000 12%,
		#000 78%,
		rgba(0, 0, 0, 0.28) 100%
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		#000 12%,
		#000 78%,
		rgba(0, 0, 0, 0.28) 100%
	);
}

/* Lớp mờ thêm ở đáy — PC / tablet / điện thoại. */
.tri-popup__side--banner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: clamp(40px, 12%, 72px);
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(9, 31, 91, 0.72) 0%,
		rgba(9, 31, 91, 0.28) 42%,
		transparent 100%
	);
}

.tri-popup__box--inline .tri-popup__side--banner {
	min-height: 560px;
}

.tri-popup__box--inline .tri-popup__side--banner .tri-popup__copy {
	padding-bottom: clamp(260px, 56%, 400px);
}

.tri-popup__box--inline .tri-popup__side--banner .tri-popup__banner {
	height: clamp(260px, 56%, 400px);
}

/* ── Cột phải: form ── */
.tri-popup__main {
	position: relative;
	padding: 36px 36px 26px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.tri-popup__form-title {
	margin: 0 44px 18px 0;
	color: var(--tri-pop-navy);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}

.tri-popup__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 12px;
}

.tri-popup__field {
	position: relative;
	min-width: 0;
}

.tri-popup__field--full {
	grid-column: 1 / -1;
}

.tri-popup__icon {
	position: absolute;
	top: 0;
	left: 14px;
	display: flex;
	align-items: center;
	height: 50px;
	color: #8a97b5;
	pointer-events: none;
	transition: color 0.2s ease;
}

.tri-popup__field input {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	padding: 0 14px 0 42px;
	border: 1.5px solid var(--tri-pop-line);
	border-radius: 12px;
	background: #f6f8fc;
	color: var(--tri-pop-navy);
	font: inherit;
	font-size: 15px;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tri-popup__field input::placeholder {
	color: #8a97b5;
}

/* Ô "Bạn cần tư vấn gì?" — cùng kiểu ô nhập, cao 2 dòng. */
.tri-popup__field textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 64px;
	max-height: 140px;
	padding: 13px 14px 10px 42px;
	border: 1.5px solid var(--tri-pop-line);
	border-radius: 12px;
	background: #f6f8fc;
	color: var(--tri-pop-navy);
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	resize: vertical;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tri-popup__field textarea::placeholder {
	color: #8a97b5;
}

.tri-popup__field textarea:hover {
	border-color: #b9c7de;
}

.tri-popup__field textarea:focus {
	border-color: var(--tri-pop-action);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 83, 209, 0.12);
	outline: none;
}

.tri-popup__field textarea[aria-invalid="true"] {
	border-color: #d93025;
	background: #fff6f5;
}

/* Icon canh dòng đầu của ô cao chứ không giữa khối 50px. */
.tri-popup__field--note .tri-popup__icon {
	height: 48px;
}

.tri-popup__field input:hover {
	border-color: #b9c7de;
}

.tri-popup__field input:focus {
	border-color: var(--tri-pop-action);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 83, 209, 0.12);
	outline: none;
}

.tri-popup__field:focus-within .tri-popup__icon {
	color: var(--tri-pop-action);
}

.tri-popup__field input[aria-invalid="true"] {
	border-color: #d93025;
	background: #fff6f5;
}

.tri-popup__field:has(input[aria-invalid="true"]) .tri-popup__icon {
	color: #d93025;
}

.tri-popup__err {
	display: block;
	margin-top: 5px;
	color: #d93025;
	font-size: 12px;
	line-height: 1.35;
}

.tri-popup__err:empty {
	display: none;
}

.tri-popup__levels {
	min-width: 0;
	margin: 18px 0 0;
	padding: 0;
	border: 0;
}

.tri-popup__levels legend {
	margin-bottom: 10px;
	padding: 0;
	color: var(--tri-pop-navy);
	font-size: 14px;
	font-weight: 700;
}

.tri-popup__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tri-popup__chip {
	position: relative;
	cursor: pointer;
}

.tri-popup__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tri-popup__chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border: 1.5px solid var(--tri-pop-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tri-pop-navy);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tri-popup__chip:hover span {
	border-color: var(--tri-pop-action);
}

.tri-popup__chip input:checked + span {
	border-color: var(--tri-pop-navy);
	background: var(--tri-pop-navy);
	color: #fff;
	box-shadow: 0 6px 16px rgba(9, 31, 91, 0.25);
}

.tri-popup__chip input:checked + span::before {
	content: "✓";
	font-weight: 800;
}

.tri-popup__chip input:focus-visible + span {
	box-shadow: 0 0 0 4px rgba(0, 83, 209, 0.2);
}

.tri-popup__levels.is-invalid .tri-popup__chip span {
	border-color: #f3b4ae;
}

.tri-popup__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tri-popup__alert {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff3f2;
	color: #b3261e;
	font-size: 13px;
	line-height: 1.45;
}

.tri-popup__submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin-top: 20px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	box-shadow: 0 12px 26px rgba(236, 98, 7, 0.35);
}

.tri-popup__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tri-popup-spin 0.7s linear infinite;
}

.tri-popup__form.is-loading .tri-popup__spinner {
	display: inline-block;
}

.tri-popup__form.is-loading .tri-popup__submit {
	pointer-events: none;
	opacity: 0.85;
	animation: none;
}

.tri-popup__privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
}

.tri-popup__privacy svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

/* ── Màn thành công ── */
.tri-popup__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 24px 8px;
	text-align: center;
	outline: none;
}

.tri-popup__done[hidden] {
	display: none;
}

.tri-popup__check circle {
	stroke: #1a7f37;
	stroke-width: 3;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: tri-popup-draw 0.6s ease forwards;
}

.tri-popup__check path {
	stroke: #1a7f37;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
	animation: tri-popup-draw 0.35s 0.5s ease forwards;
}

.tri-popup__done-title {
	margin: 18px 0 8px;
	color: var(--tri-pop-navy);
	font-size: 22px;
	font-weight: 800;
}

.tri-popup__done-text {
	max-width: 34ch;
	margin: 0;
	color: #4a5568;
	font-size: 15px;
	line-height: 1.6;
}

.tri-popup__done-btn {
	margin-top: 22px;
	border-radius: 999px;
}

/* ── Tablet: panel trái gọn lại ── */
@media (max-width: 960px) {
	.tri-popup__side {
		padding: 32px 24px 24px;

	}

	.tri-popup__side--banner {
		padding-bottom: 0;
		min-height: 380px;

	}

	.tri-popup__side--banner .tri-popup__copy {
		padding-bottom: clamp(200px, 50%, 300px);

	}

	.tri-popup__side--banner .tri-popup__banner {
		width: 100%;
		height: clamp(200px, 50%, 300px);
		margin: 0;
		object-position: center 20%;

	}

	.tri-popup__side--banner::after {
		height: 56px;

	}

	.tri-popup__mascot {
		width: 120px;

	}

	.tri-popup__main {
		padding: 30px 26px 22px;

	}
}

/* ── Điện thoại: tấm trượt từ dưới lên ── */
@media (max-width: 767px) {
	.tri-popup {
		width: 100vw;
		max-height: 92dvh;
		margin: auto 0 0;

	}

	.tri-popup__box {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		max-height: 92dvh;
		border-radius: 22px 22px 0 0;

	}

	.tri-popup[open] .tri-popup__box {
		animation: tri-popup-up 0.36s cubic-bezier(0.2, 0.9, 0.3, 1) both;

	}

	.tri-popup.is-closing .tri-popup__box {
		animation: tri-popup-down 0.22s ease both;

	}

	/* Thanh kéo — gợi ý đây là tấm trượt. */
	.tri-popup__box::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		z-index: 4;
		width: 40px;
		height: 4px;
		border-radius: 4px;
		background: rgba(255, 255, 255, 0.55);
		transform: translateX(-50%);

	}

	.tri-popup__close {
		top: 12px;
		right: 12px;
		background: rgba(255, 255, 255, 0.16);
		color: #fff;

	}

	.tri-popup__side {
		padding: 26px 20px 18px;

	}

	.tri-popup__title {
		margin: 12px 44px 6px 0;
		font-size: 20px;

	}

	.tri-popup__lead {
		font-size: 13px;

	}

	.tri-popup__perks,
		.tri-popup__mascot {
		display: none;

	}

	.tri-popup__side--banner {
		min-height: 260px;
		padding-bottom: 0;

	}

	.tri-popup__side--banner .tri-popup__copy {
		padding-bottom: 148px;

	}

	.tri-popup__side--banner .tri-popup__banner {
		display: block;
		width: 100%;
		height: 148px;
		margin: 0;
		object-position: center 22%;

	}

	.tri-popup__side--banner::after {
		height: 44px;

	}

	/* Form trong trang / footer trên mobile: banner cao hơn, vẫn tràn đáy. */
	.tri-popup__box--inline .tri-popup__side--banner {
		min-height: 360px;

	}

	.tri-popup__box--inline .tri-popup__side--banner .tri-popup__perks {
		display: flex;

	}

	.tri-popup__box--inline .tri-popup__side--banner .tri-popup__copy {
		padding-bottom: clamp(180px, 42vw, 260px);

	}

	.tri-popup__box--inline .tri-popup__side--banner .tri-popup__banner {
		height: clamp(180px, 42vw, 260px);

	}

	.tri-popup__main {
		padding: 20px 18px calc(18px + env(safe-area-inset-bottom));

	}

	.tri-popup__form-title {
		display: none;

	}

	.tri-popup__grid {
		gap: 12px 10px;

	}

	.tri-popup__field input {
		height: 48px;
		font-size: 16px; /* 16px để iOS không tự zoom khi chạm vào ô. */

	}

	.tri-popup__icon {
		height: 48px;

	}

	.tri-popup__submit {
		font-size: 14px;

	}
}

@media (prefers-reduced-motion: reduce) {
	.tri-popup[open] .tri-popup__box,
		.tri-popup.is-closing .tri-popup__box,
		.tri-popup[open]::backdrop,
		.tri-popup__check circle,
		.tri-popup__check path {
		animation: none;
		stroke-dashoffset: 0;

	}

	.tri-popup__submit {
		animation: none;

	}
}

.tri-popup__box--inline {
	width: min(1040px, var(--tri-frame));
	max-width: 100%;
	max-height: none;
	margin-inline: auto;
	box-shadow: 0 24px 60px rgba(9, 31, 91, 0.16);
}

.tri-popup__box--inline .tri-popup__main {
	overflow: visible;
}

.tri-popup__title-2 {
	display: block;
	color: #ffd2b3;
}

/* Form trong trang giữ kiểu tiêu đề in hoa 2 dòng của khối cũ. */
.tri-popup__box--inline .tri-popup__title {
	text-transform: uppercase;
}

.tri-lead-sec--footer .tri-popup__box--inline {
	width: min(1040px, var(--tri-chrome));
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

/* -- Form đăng ký: lựa chọn "Bạn muốn" Tư vấn lộ trình | Học thử ---------- */
.tri-popup__intent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.tri-popup__intent-opt {
	position: relative;
	display: block;
	cursor: pointer;
}

.tri-popup__intent-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tri-popup__intent-opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 8px 12px;
	border: 1.5px solid var(--tri-pop-line, #dbe3f0);
	border-radius: 12px;
	background: #fff;
	color: var(--tri-pop-navy, #091f5b);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tri-popup__intent-opt span svg {
	flex-shrink: 0;
}

.tri-popup__intent-opt:hover span {
	border-color: var(--tri-pop-action, #0053d1);
}

.tri-popup__intent-opt input:checked + span {
	border-color: var(--tri-pop-orange, #ec6207);
	background: color-mix(in srgb, var(--tri-pop-orange, #ec6207) 9%, #fff);
	color: var(--tri-pop-orange, #ec6207);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--tri-pop-orange, #ec6207) 18%, transparent);
}

.tri-popup__intent-opt input:focus-visible + span {
	outline: 2px solid var(--tri-pop-action, #0053d1);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.tri-popup__box--inline {
		grid-template-columns: 1fr;
		border-radius: 20px;

	}

	.tri-popup__box--inline::before {
		content: none;

	}

	/* Trên trang (không phải tấm trượt) vẫn giữ quyền lợi, bỏ nhân vật. */
	.tri-popup__box--inline .tri-popup__perks {
		display: flex;

	}

	.tri-popup__box--inline .tri-popup__form-title {
		display: block;

	}

	.tri-lead-sec .tri-popup__box--inline {
		width: 100%;
		border-radius: 0;
		box-shadow: none;

	}

	.tri-popup__intent-opt span {
		min-height: 44px;
		padding: 8px;
		font-size: 13px;

	}
}

/* ══ Linh vật form đăng ký (assets/images/linh-vat/*.webp, nền trong suốt) ══
   Ảnh cũ nung sẵn nền navy nên phải mask mờ viền; ảnh mới trong suốt → bỏ
   mask, thêm bóng nhẹ cho nổi trên gradient cột trái. */
.tri-popup__mascot {
	width: 170px;
	margin: auto -6px -20px 0;
	-webkit-mask-image: none;
	mask-image: none;
	filter: drop-shadow(0 10px 18px rgba(0, 10, 46, 0.35));
}

@media (min-width: 768px) and (max-width: 1024px) {
	.tri-popup__mascot {
		width: 136px;

	}
}
