/**
 * ==============================================================================
 * Trang Trí 4 Mùa (trangtri4mua.com) — Policy & Static Pages Stylesheet
 * Locations: /chinh-sach-doi-tra/, /chinh-sach-van-chuyen/, /chinh-sach-thanh-toan/,
 *            /chinh-sach-bao-mat/, /showroom/, /lien-he/, /gioi-thieu/
 * Surface Archetype: Decide / Reassure (High Trust, Clarity & Conversion)
 * Version: 2.0.0
 * ==============================================================================
 */

/* ==============================================================================
 * 1. 2-COLUMN POLICY LAYOUT & STRUCTURE
 * ============================================================================== */
/* Align Hero Section and Page Title with Content Grid */
.hero-section.is-width-constrained {
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: 32px 24px 16px 24px !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

.hero-section .page-title,
.entry-header .page-title {
	font-family: var(--tt4m-font-sans, 'Be Vietnam Pro', -apple-system, sans-serif) !important;
	font-weight: 800 !important;
	color: var(--tt4m-primary, #14532D) !important;
	font-size: clamp(1.75rem, 3.2vw, 2.3rem) !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	margin: 0 !important;
}

.ct-container-full:has(.tt4m-page-layout),
.ct-container-full:has(.tt4m-static-page) {
	padding-top: 0 !important;
	padding-bottom: 40px !important;
}

.tt4m-page-layout {
	display: grid !important;
	grid-template-columns: 280px minmax(0, 1fr) !important;
	gap: 40px !important;
	align-items: start !important;
	max-width: 1240px !important;
	margin: 16px auto 56px auto !important;
	padding: 0 24px !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

.tt4m-static-page {
	max-width: 1240px !important;
	margin: 16px auto 56px auto !important;
	padding: 0 24px !important;
	box-sizing: border-box !important;
	width: 100% !important;
}
.tt4m-page-layout > p {
	display: none !important;
}

.tt4m-page-layout > .tt4m-sidebar-col {
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 280px !important;
	position: sticky;
	top: 96px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tt4m-page-layout > .tt4m-main-col {
	grid-column: 2 !important;
	grid-row: 1 !important;
	min-width: 0 !important;
	color: var(--tt4m-text, #1F2937);
	font-size: 15.5px;
	line-height: 1.7;
}

@media (max-width: 992px) {
	.hero-section.is-width-constrained {
		padding: 24px 16px 12px 16px !important;
	}

	.tt4m-page-layout,
	.tt4m-static-page {
		display: flex !important;
		flex-direction: column !important;
		gap: 28px !important;
		margin: 12px auto 40px auto !important;
		padding: 0 16px !important;
	}

	/* Content comes FIRST on mobile so users read immediately without scrolling past sidebar */
	.tt4m-page-layout > .tt4m-main-col {
		order: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		position: static !important;
		top: auto !important;
	}

	/* Sidebar navigation and support card sit cleanly below the content */
	.tt4m-page-layout > .tt4m-sidebar-col {
		order: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		position: static !important;
		top: auto !important;
		border-top: 1.5px solid var(--tt4m-border, #E5E7EB);
		padding-top: 24px;
		margin-top: 8px;
	}
}

.tt4m-main-col h2 {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--tt4m-primary, #14532D);
	margin: 2rem 0 1rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid rgba(20, 83, 45, 0.12);
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.tt4m-main-col h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--tt4m-text, #1F2937);
	margin: 1.5rem 0 0.75rem 0;
	line-height: 1.4;
}

.tt4m-main-col p {
	margin-bottom: 1.15rem;
	color: #374151;
}

.tt4m-main-col ul,
.tt4m-main-col ol {
	margin: 0 0 1.5rem 0;
	padding-left: 1.5rem;
	color: #374151;
}

.tt4m-main-col li {
	margin-bottom: 0.5rem;
	line-height: 1.65;
}

.tt4m-static-lead {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #1F2937;
	background: #ffffff;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
	font-weight: 450;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ==============================================================================
 * 2. STICKY SIDEBAR NAVIGATION (.tt4m-policy-nav)
 * ============================================================================== */

.tt4m-policy-nav {
	background: #ffffff;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	margin-bottom: 24px;
}

.tt4m-policy-nav h4 {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tt4m-primary, #14532D);
	margin: 0 0 14px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--tt4m-border, #E5E7EB);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tt4m-policy-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tt4m-policy-nav li {
	margin-bottom: 6px;
}

.tt4m-policy-nav li:last-child {
	margin-bottom: 0;
}

.tt4m-policy-nav a {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--tt4m-text, #1F2937);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid transparent;
	min-height: 44px;
}

.tt4m-policy-nav a:hover {
	background: var(--tt4m-bg-alt, #F9FAFB);
	color: var(--tt4m-primary, #14532D);
	transform: translateX(3px);
	border-color: rgba(20, 83, 45, 0.1);
}

/* Active Link Styling */
.tt4m-policy-nav a.is-active {
	background: var(--tt4m-primary, #14532D) !important;
	color: #ffffff !important;
	font-weight: 700;
	border-left: 4px solid var(--tt4m-gold, #D97706) !important;
	box-shadow: 0 4px 14px rgba(20, 83, 45, 0.22);
}

.tt4m-policy-nav a.is-active:hover {
	background: var(--tt4m-primary-dark, #0F3F22) !important;
	color: #ffffff !important;
	transform: none;
}

/* ==============================================================================
 * 3. POLICY COMMITMENT CARDS (.tt4m-commit-grid & .tt4m-commit-item)
 * ============================================================================== */

.tt4m-commit-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 24px 0 28px;
}

@media (max-width: 640px) {
	.tt4m-commit-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.tt4m-commit-item {
	background: #ffffff;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 12px;
	padding: 18px 20px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tt4m-commit-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(20, 83, 45, 0.07);
	border-color: rgba(20, 83, 45, 0.3);
}

.tt4m-commit-badge {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(20, 83, 45, 0.1);
	color: var(--tt4m-primary, #14532D);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	flex-shrink: 0;
}

.tt4m-commit-text {
	flex: 1;
	min-width: 0;
}

.tt4m-commit-text h4 {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--tt4m-primary, #14532D);
	margin: 0 0 4px 0;
	line-height: 1.35;
}

.tt4m-commit-text p {
	font-size: 13.5px;
	color: var(--tt4m-secondary, #6B7280);
	line-height: 1.55;
	margin: 0;
}

/* ==============================================================================
 * 4. PROCEDURAL STEPS WITH CONNECTED LINE LAYOUT (.tt4m-steps / .tt4m-steps-container)
 * ============================================================================== */

.tt4m-steps,
.tt4m-steps-container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 28px 0;
	padding-left: 10px;
}

/* Connected Vertical Guide Line */
.tt4m-steps::before,
.tt4m-steps-container::before {
	content: '';
	position: absolute;
	left: 28px;
	top: 24px;
	bottom: 24px;
	width: 2px;
	background: linear-gradient(180deg, var(--tt4m-primary, #14532D) 0%, var(--tt4m-gold, #D97706) 100%);
	z-index: 1;
	border-radius: 1px;
}

.tt4m-step-item,
.tt4m-step-item-alt {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 18px 22px;
	background: #ffffff;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	position: relative;
	z-index: 2;
	transition: all 0.22s ease;
}

.tt4m-step-item:hover,
.tt4m-step-item-alt:hover {
	transform: translateX(4px);
	border-color: rgba(20, 83, 45, 0.3);
	box-shadow: 0 6px 16px rgba(20, 83, 45, 0.06);
}

.tt4m-step-number {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tt4m-primary, #14532D);
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(20, 83, 45, 0.28);
	border: 3px solid #ffffff;
	flex-shrink: 0;
}

.tt4m-step-content {
	flex: 1;
	min-width: 0;
}

.tt4m-step-content h4 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--tt4m-text, #1F2937);
	line-height: 1.35;
}

.tt4m-step-content p {
	margin: 0;
	font-size: 14px;
	color: var(--tt4m-secondary, #6B7280);
	line-height: 1.6;
}

@media (max-width: 600px) {
	.tt4m-steps,
	.tt4m-steps-container {
		padding-left: 0;
	}

	.tt4m-steps::before,
	.tt4m-steps-container::before {
		left: 18px;
	}

	.tt4m-step-item,
	.tt4m-step-item-alt {
		padding: 14px 16px;
		gap: 14px;
	}

	.tt4m-step-number {
		flex: 0 0 32px;
		width: 32px;
		height: 32px;
		font-size: 13.5px;
	}
}

/* ==============================================================================
 * 5. SHOWROOM & CONTACT INFO CARDS (.tt4m-contact-card & .tt4m-map-container)
 * ============================================================================== */

.tt4m-contact-card {
	background: #ffffff;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	margin-bottom: 24px;
}

.tt4m-contact-card-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--tt4m-primary, #14532D);
	margin: 0 0 16px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tt4m-border, #E5E7EB);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tt4m-contact-card p {
	font-size: 14.5px;
	line-height: 1.65;
	color: #374151;
	margin-bottom: 14px;
}

.tt4m-contact-card p:last-child {
	margin-bottom: 0;
}

.tt4m-contact-card a {
	color: var(--tt4m-primary, #14532D);
	text-decoration: none;
	transition: color 0.15s ease;
}

.tt4m-contact-card a:hover {
	color: var(--tt4m-cta, #C41E2F);
	text-decoration: underline;
}

.tt4m-contact-highlight {
	background: #F9FAFB;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	margin-bottom: 0;
}

.tt4m-contact-highlight h4 {
	font-size: 15.5px;
	font-weight: 800;
	color: var(--tt4m-primary, #14532D);
	margin: 0 0 10px 0;
}

.tt4m-contact-highlight p {
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
	margin-bottom: 8px;
}

.tt4m-contact-highlight p:last-of-type {
	margin-bottom: 14px;
}

.tt4m-contact-highlight a {
	color: var(--tt4m-primary, #14532D);
	text-decoration: none;
	font-weight: 700;
}

.tt4m-contact-highlight a:hover {
	text-decoration: underline;
}

.tt4m-contact-highlight .btn-zalo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tt4m-zalo, #0068FF);
	color: #ffffff !important;
	padding: 9px 18px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	min-height: 44px;
	width: 100%;
	transition: background 0.2s ease;
}

.tt4m-contact-highlight .btn-zalo:hover {
	background: #0056D2;
}

/* Map Container & Embedded iframe */
.tt4m-map-container {
	position: relative;
	width: 100%;
	height: 380px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	margin: 24px 0;
	background: #F3F4F6;
}

.tt4m-map-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 600px) {
	.tt4m-map-container {
		height: 280px;
		border-radius: 10px;
	}

	.tt4m-contact-card {
		padding: 18px 16px;
		border-radius: 12px;
	}
}

/* ==============================================================================
 * 6. DATA TABLES (.tt4m-table & .tt4m-table-wrap)
 * ============================================================================== */

.tt4m-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 24px 0 28px;
	border-radius: 12px;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
	background: #ffffff;
}

.tt4m-table {
	width: 100%;
	min-width: 580px;
	border-collapse: collapse;
	text-align: left;
	font-size: 14.5px;
	line-height: 1.6;
}

.tt4m-table thead th {
	background: #E8F5E9;
	color: var(--tt4m-primary, #14532D);
	font-weight: 700;
	padding: 14px 18px;
	border-bottom: 2px solid var(--tt4m-primary, #14532D);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.tt4m-table tbody td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--tt4m-border, #E5E7EB);
	color: var(--tt4m-text, #1F2937);
	vertical-align: top;
}

/* Striped rows */
.tt4m-table tbody tr:nth-child(even) {
	background: var(--tt4m-bg-alt, #F9FAFB);
}

.tt4m-table tbody tr:hover {
	background: rgba(20, 83, 45, 0.035);
}

.tt4m-table tbody tr:last-child td {
	border-bottom: 0;
}

.tt4m-table code {
	background: #F3F4F6;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px;
	color: var(--tt4m-primary, #14532D);
	font-family: monospace;
}

/* ==============================================================================
 * 7. COMPLEMENTARY POLICY ELEMENTS (CALLOUTS, CAPACITY GRID, B2B BOX)
 * ============================================================================== */

/* Callout Alert Boxes */
.tt4m-callout {
	padding: 16px 20px;
	border-radius: 10px;
	margin: 24px 0;
	border-left: 4px solid var(--tt4m-primary, #14532D);
	background: #F0FDF4;
}

.tt4m-callout p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: #1F2937;
}

.tt4m-callout h4 {
	margin: 0 0 6px 0;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--tt4m-primary, #14532D);
}

.tt4m-callout-gold {
	border-left-color: var(--tt4m-gold, #D97706);
	background: #FFFBEB;
}

.tt4m-callout-gold h4 {
	color: #92400E;
}

/* Capacity Grid (Showroom Experiences) */
.tt4m-capacity-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 24px 0 28px;
}

@media (max-width: 640px) {
	.tt4m-capacity-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.tt4m-capacity-card {
	background: #ffffff;
	border: 1px solid var(--tt4m-border, #E5E7EB);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tt4m-capacity-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(20, 83, 45, 0.07);
	border-color: rgba(20, 83, 45, 0.3);
}

.tt4m-capacity-card h4 {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--tt4m-primary, #14532D);
	margin: 0 0 8px 0;
}

.tt4m-capacity-card p {
	font-size: 13.5px;
	color: var(--tt4m-secondary, #6B7280);
	line-height: 1.55;
	margin: 0;
}
