/* ==========================================================================
   GIALOP.VN — Landing page THU LỐP CŨ — ĐỔI LỐP MỚI
   Chỉ dùng cho thucudoimoi.html.

   Bốn trang dịch vụ kia lấy XƯỞNG hoặc VỊ TRÍ KHÁCH làm trung tâm. Trang này
   lấy "TÌNH TRẠNG LỐP QUYẾT ĐỊNH GIÁ THU" làm trục, nên mọi khối đều phục vụ
   một việc: làm rõ thứ quyết định giá, chặn kỳ vọng sai trước khi khách tới.

       hero SÁNG, form kiểm tra 9 field + upload ảnh   ≠ hero tối / bảng điều phối
       thang 4 mức tình trạng A–D có thanh đo gai      → chỉ có ở trang này
       bảng điều kiện NHẬN / KHÔNG NHẬN đối chiếu      → chỉ có ở trang này
       3 luồng xử lý lốp sau khi thu                   → chỉ có ở trang này

   Dùng chung: mockup.css   (token, header, footer, menu mobile, .gl-btn,
                             .gl-field, .gl-ph)
               category.css (.gl-crumb)

   Bản gốc từ mockup, đã chuyển vào theme; nạp trong inc/core/enqueue.php.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token riêng — nền sáng, mực navy làm chủ đạo, xanh lá cho mức thu tốt
   -------------------------------------------------------------------------- */
:root {
	--td-navy: var(--gl-navy);
	--td-navy-d: var(--gl-navy-d);
	--td-paper: #f7f8fa;
	--td-line-soft: #e8ebf1;
	--td-good: #1a9e5c;
	--td-fair: #e0a012;
	--td-poor: #e23744;
	--td-ink-soft: #55607a;
}

/* --------------------------------------------------------------------------
   2. HERO — 2 cột: cột trái dựng kỳ vọng, cột phải là form kiểm tra
   -------------------------------------------------------------------------- */
.td-hero {
	background: var(--gl-white);
	padding-block: 56px 72px;
	border-bottom: 1px solid var(--td-line-soft);
}

.td-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.td-hero__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gl-muted);
}

.td-hero__title {
	margin-top: 16px;
	font-size: clamp(32px, 4.4vw, 46px);
	line-height: 1.12;
	color: var(--td-navy);
	text-wrap: balance;
}

.td-hero__desc {
	margin-top: 20px;
	max-width: 480px;
	font-size: 15.5px;
	color: var(--td-ink-soft);
	text-wrap: pretty;
}

/* Card navy — câu quan trọng nhất của trang, đặt ngay dưới mô tả */
.td-note {
	margin-top: 34px;
	padding: 30px 32px;
	background: var(--td-navy);
	color: var(--gl-white);
	border-radius: 2px;
}

.td-note__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: var(--gl-yellow);
}

.td-note__title {
	margin-top: 12px;
	font-size: 23px;
	letter-spacing: -.01em;
}

.td-note__desc {
	margin-top: 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .78);
}

.td-note__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--gl-white);
	transition: gap .15s ease, color .15s ease;
}
.td-note__link:hover { gap: 15px; color: var(--gl-yellow); }

/* --------------------------------------------------------------------------
   3. FORM KIỂM TRA — card viền mảnh, 2 cột field
   -------------------------------------------------------------------------- */
.td-form {
	padding: 34px 36px 36px;
	background: var(--gl-white);
	border: 1.5px solid var(--td-line-soft);
	border-radius: 2px;
	box-shadow: var(--gl-shadow);
}

.td-form__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.td-form__eyebrow {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gl-muted);
}

.td-form__title {
	margin-top: 8px;
	font-size: 25px;
	color: var(--td-navy);
}

.td-form__mark { flex-shrink: 0; color: var(--td-navy); opacity: .8; }

.td-form__sub {
	margin-top: 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--td-ink-soft);
}

/* --------------------------------------------------------------------------
   4. THANG 4 MỨC TÌNH TRẠNG — trục chính của trang
   -------------------------------------------------------------------------- */
.td-grades {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.td-grade {
	display: flex;
	flex-direction: column;
	padding: 26px 24px 24px;
	background: var(--gl-white);
	border: 1.5px solid var(--td-line-soft);
	border-top: 4px solid var(--td-g, var(--gl-line));
	border-radius: 2px;
	transition: box-shadow .18s ease, transform .18s ease;
}
.td-grade:hover { transform: translateY(-3px); box-shadow: var(--gl-shadow-md); }

.td-grade--a { --td-g: var(--td-good); }
.td-grade--b { --td-g: #3fa9d6; }
.td-grade--c { --td-g: var(--td-fair); }
.td-grade--d { --td-g: var(--td-poor); }

.td-grade__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 2px;
	background: var(--td-g);
	color: var(--gl-white);
	font-weight: 800;
	font-size: 16px;
}

.td-grade__name { margin-top: 14px; font-size: 17px; color: var(--td-navy); }
.td-grade__spec { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--td-ink-soft); }

/* Thanh đo độ sâu gai — phần trăm do inline style đặt, dễ thay bằng ACF */
.td-meter {
	margin-top: 18px;
	height: 7px;
	background: var(--td-line-soft);
	border-radius: 999px;
	overflow: hidden;
}
.td-meter__fill { display: block; height: 100%; background: var(--td-g); border-radius: 999px; }
.td-grade__depth { margin-top: 9px; font-size: 12.5px; font-weight: 700; color: var(--td-g); }

.td-grade__price {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px dashed var(--td-line-soft);
}
.td-grade__price b { display: block; margin-top: 4px; font-size: 19px; color: var(--td-navy); }
.td-grade__price span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gl-muted); }

.td-grades__foot {
	margin-top: 22px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--td-ink-soft);
}
.td-grades__foot svg { flex-shrink: 0; margin-top: 3px; color: var(--td-navy); }

/* --------------------------------------------------------------------------
   5. QUY TRÌNH 5 BƯỚC — trục ngang có vạch nối
   -------------------------------------------------------------------------- */
.td-flow {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	counter-reset: td-step;
}

.td-flow__item {
	position: relative;
	padding: 0 22px 0 0;
	counter-increment: td-step;
}

/* Vạch nối chạy qua tâm số thứ tự */
.td-flow__item::before {
	content: "";
	position: absolute;
	top: 21px;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(255, 255, 255, .18);
}
.td-flow__item:last-child::before { right: auto; width: 44px; }

.td-flow__num {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gl-yellow);
	color: var(--td-navy-d);
	font-weight: 800;
	font-size: 16px;
}
.td-flow__num::after { content: counter(td-step, decimal-leading-zero); }

.td-flow__name { margin-top: 20px; font-size: 16.5px; color: var(--gl-white); }
.td-flow__desc { margin-top: 10px; padding-right: 8px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------------------
   6. ĐIỀU KIỆN NHẬN / KHÔNG NHẬN — 2 cột đối chiếu
   -------------------------------------------------------------------------- */
.td-cond {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.td-cond__col {
	padding: 30px 30px 32px;
	background: var(--gl-white);
	border: 1.5px solid var(--td-line-soft);
	border-radius: 2px;
}
.td-cond__col--no { background: var(--td-paper); }

.td-cond__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1.5px solid var(--td-line-soft);
}
.td-cond__head i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
}
.td-cond__col--yes .td-cond__head i { background: #e8f6ee; color: var(--td-good); }
.td-cond__col--no .td-cond__head i { background: #fdecee; color: var(--td-poor); }
.td-cond__head h3 { font-size: 18px; color: var(--td-navy); }

.td-cond__list { margin-top: 18px; display: grid; gap: 14px; }
.td-cond__list li {
	display: flex;
	gap: 12px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--td-ink-soft);
}
.td-cond__list li b { color: var(--gl-text); font-weight: 700; }
.td-cond__list svg { flex-shrink: 0; margin-top: 3px; }
.td-cond__col--yes .td-cond__list svg { color: var(--td-good); }
.td-cond__col--no .td-cond__list svg { color: var(--td-poor); }

/* --------------------------------------------------------------------------
   7. LỐP CŨ ĐI ĐÂU — 3 luồng xử lý
   -------------------------------------------------------------------------- */
.td-after {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.td-after__item {
	padding: 28px 26px 30px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 2px;
}
.td-after__item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 2px;
	background: rgba(245, 200, 66, .16);
	color: var(--gl-yellow);
}
.td-after__item h3 { margin-top: 18px; font-size: 17px; color: var(--gl-white); }
.td-after__item p { margin-top: 11px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.td-after__pct { margin-top: 16px; font-size: 26px; font-weight: 800; color: var(--gl-yellow); }
.td-after__pct span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------------------
   8. FAQ
   -------------------------------------------------------------------------- */
.td-faq { max-width: 880px; margin-inline: auto; display: grid; gap: 10px; }

.td-faq__item {
	background: var(--gl-white);
	border: 1.5px solid var(--td-line-soft);
	border-radius: 2px;
	overflow: hidden;
}

.td-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	padding: 20px 24px;
	text-align: left;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--td-navy);
}
.td-faq__q svg { flex-shrink: 0; color: var(--gl-muted); transition: transform .2s ease; }
.td-faq__q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--td-navy); }

.td-faq__a {
	padding: 0 24px 22px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--td-ink-soft);
}

/* --------------------------------------------------------------------------
   9. CTA KẾT
   -------------------------------------------------------------------------- */
.td-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 44px 46px;
	background: var(--td-navy);
	border-radius: 2px;
	color: var(--gl-white);
}
.td-cta h2 { font-size: clamp(24px, 3vw, 31px); text-wrap: balance; }
.td-cta p { margin-top: 12px; max-width: 520px; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .76); }
.td-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.td-cta .gl-btn { border-radius: 2px; }

/* --------------------------------------------------------------------------
   10. Thanh CTA dính đáy trên mobile
   -------------------------------------------------------------------------- */
.td-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	gap: 10px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: var(--gl-white);
	border-top: 1px solid var(--td-line-soft);
	box-shadow: 0 -6px 22px rgba(21, 42, 79, .12);
	transition: transform .25s ease;
}
.td-bar .gl-btn { flex: 1; padding: 13px 12px; font-size: 14.5px; border-radius: 2px; }
.td-bar__ghost { border: 1.5px solid var(--td-line-soft); color: var(--td-navy); }
.td-bar__ghost:hover { border-color: var(--td-navy); }
.td-bar[data-hide="true"] { transform: translateY(110%); }

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.td-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.td-hero__desc { max-width: none; }
	.td-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.td-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
	.td-flow__item:nth-child(3)::before { right: auto; width: 44px; }
}

@media (max-width: 860px) {
	.td-after { grid-template-columns: minmax(0, 1fr); }
	.td-cond { grid-template-columns: minmax(0, 1fr); }
	.td-cta { padding: 34px 28px; }
}

@media (max-width: 680px) {
	.td-hero { padding-block: 34px 48px; }
	.td-form { padding: 26px 22px 28px; }
	.td-note { padding: 24px 22px; }
	.td-grades { grid-template-columns: minmax(0, 1fr); }
	.td-flow { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
	/* Trên 1 cột thì vạch nối ngang vô nghĩa, bỏ hẳn */
	.td-flow__item::before { display: none; }
	/* Số bước và tên bước cùng một hàng, mô tả bên dưới. */
	.td-flow__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding-right: 0; }
	.td-flow__name { margin-top: 0; }
	.td-flow__desc { grid-column: 1 / -1; padding-right: 0; }
	.td-bar { display: flex; }
	/* Chừa chỗ cho thanh dính đáy, không che dòng bản quyền */
	.gl-footer__bottom { padding-bottom: 76px; }
}
