/* ============================================================
   TechTide — Homepage (front-page.php) — TỐI GIẢN, KHỐI LIỀN MẠCH
   1) HERO: nền sáng / ảnh featured, CHỮ ĐEN, flow bình thường (không đè)
   2) SERVICES: thẻ kiểu Appen (số + tiêu đề + mô tả + tag)
   Tokens dùng chung từ style.css / header.css.
   ============================================================ */

/* Trang chủ: bỏ padding-top để hero nằm dưới header trong suốt (header chữ đen đè lên). */
body.home.tt-has-transparent-header{ padding-top: 0; }

/* ======================= HERO ======================= */
.tt-hero{
	position: relative;                 /* flow bình thường — KHÔNG fixed/sticky, không đè */
	display: flex;
	align-items: center;
	min-height: max(560px, 100vh);
	min-height: max(560px, 100dvh);     /* tuỳ ý chỉnh thấp hơn nếu banner ngắn */
	padding-top: calc(var(--tt-bar-top, 5px) + var(--tt-bar-h, 64px));
	background: var(--tt-bg);           /* nền trắng; ảnh featured (nếu có) phủ lên */
	overflow: hidden;
}
.tt-hero__media{
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: 0;
}
.tt-hero__inner{
	position: relative;
	z-index: 2;                          /* trên ảnh nền */
	width: min(100% - var(--tt-bar-side, 8px) * 2, var(--tt-bar-maxw, 1904px));
	margin-inline: auto;
	padding-inline: var(--tt-bar-pad, 28px);
	padding-block: clamp(2rem, 5vw, 4rem);
	display: flex;
	flex-direction: column;
	align-items: flex-start;             /* chữ + nút dồn TRÁI */
	gap: 24px;                           /* khoảng cách H1 / sub / nút = 24px (giống Appen) */
}
.tt-hero .tt-hero__title{      /* selector đủ nặng để thắng .home h1 (đang 600) */
	color: var(--tt-ink);               /* CHỮ ĐEN */
	font-size: clamp(2.25rem, 5vw, 3.5rem);   /* = 56px ở MacBook/iMac, co nhỏ ở màn hẹp */
	font-weight: 300;                   /* MẢNH — khớp Appen (cần file DM Sans 300) */
	line-height: 1.08;                  /* 60.48/56 */
	letter-spacing: -0.03em;            /* -1.68px ở 56px */
	margin: 0;
	max-width: 632px;                   /* GÓI ~nửa màn → chữ tự rớt dòng */
}
.tt-hero__sub{
	color: rgba(0,0,0,.55);             /* xám mềm — khớp Appen */
	font-size: 1rem;                    /* 16px */
	line-height: 1.65;                  /* 26.4/16 */
	max-width: 632px;                   /* cùng khung với H1 */
	margin: 0;
}
.tt-hero__actions{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}
.tt-hero__btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tt-font-body);
	font-weight: 500;                   /* khớp Appen */
	font-size: .95rem;                  /* 15.2px */
	line-height: 1.2;
	padding: 12px 28px;                 /* khớp Appen */
	border: 1px solid transparent;
	border-radius: 999px;               /* pill */
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
/* nút chính: nền ĐEN chữ trắng */
.tt-hero__btn--primary{ background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt-hero__btn--primary:hover{ background: #222; border-color: #222; transform: translateY(-1px); }
/* nút phụ: link gạch chân màu xám (#424242 — khớp Appen) */
.tt-hero__textlink{
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--tt-font-body);
	color: #424242;
	font-weight: 500;
	font-size: .95rem;                  /* 15.2px */
	padding: 4px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .15s ease;
}
.tt-hero__textlink:hover{ color: var(--tt-ink); }
.tt-hero a:focus-visible{
	outline: 2px solid var(--tt-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ===================== SERVICES (kiểu Appen) ===================== */
.tt-services{
  background: var(--tt-bg);
  padding-block: clamp(4rem, 7vw, 5.5rem);
}
.tt-services__inner{
  width: min(100% - var(--tt-bar-side, 8px) * 2, var(--tt-bar-maxw, 1904px));
  margin-inline: auto;
  padding-inline: var(--tt-bar-pad, 28px);
}
/* Header canh giữa: H2 + mô tả + link "View all" */
.tt-services__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  gap: 1rem;
}
.tt-services__title{
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
}
.tt-services__desc{
  color: rgba(0,0,0,.55);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}
.tt-services__cta{
  display: inline-block;
  margin-top: .25rem;
  color: var(--tt-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.tt-services__cta::after{ content: " \2192"; }
.tt-services__cta:hover{ text-decoration: underline; text-underline-offset: 4px; }
.tt-services__cta:focus-visible{ outline: 2px solid var(--tt-accent); outline-offset: 3px; border-radius: 6px; }

/* Lưới 3 cột (404px × 3, gap 24px, cap 1260px) */
.tt-services__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1260px;
  margin-inline: auto;
}
/* Thẻ: trắng, viền mảnh, bo 6px, bóng nhẹ — khớp Appen */
.tt-card{
  display: flex;
  flex-direction: column;
  min-height: 294px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 6px;
  box-shadow: rgba(0,0,0,.1) 0 4px 8px -2px, rgba(0,0,0,.06) 0 2px 4px -2px;
  text-decoration: none;
  color: var(--tt-ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tt-card:hover{ transform: translateY(-3px); box-shadow: rgba(0,0,0,.12) 0 14px 28px -8px, rgba(0,0,0,.07) 0 4px 8px -3px; }
.tt-card__num{ font-weight: 500; font-size: .85rem; color: var(--tt-ink-soft); margin: 0 0 16px; }
.tt-card__title{ font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: normal; margin: 0 0 .5rem; }
.tt-card__desc{ color: rgba(0,0,0,.55); font-size: .925rem; line-height: 1.55; margin: 0; }
.tt-card__tags{ list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 18px 0 0; margin-top: auto; }
.tt-card__tag{ font-size: .75rem; font-weight: 500; line-height: 1; color: var(--tt-ink-soft); background: var(--tt-bg-soft); border: 1px solid var(--tt-line); border-radius: 999px; padding: 6px 11px; }
.tt-card:focus-visible{ outline: 2px solid var(--tt-accent); outline-offset: 3px; }

/* (Đã bỏ hiệu ứng reveal "nổi ra từ từ" — các section hiện thẳng, không fade.) */

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px){
	.tt-services__grid{ grid-template-columns: repeat(2, 1fr); max-width: 832px; }
}
@media (max-width: 640px){
	.tt-hero{ min-height: max(520px, 84vh); min-height: max(520px, 84dvh); }
	.tt-hero__inner{ padding-inline: 1.25rem; gap: 20px; }
	.tt-hero .tt-hero__title{ font-size: clamp(2rem, 8vw, 2.5rem); max-width: 100%; }
	.tt-hero__sub{ max-width: 100%; }
	.tt-hero__actions{ gap: .9rem 1.2rem; }
}
@media (max-width: 560px){
	.tt-services__grid{ grid-template-columns: 1fr; max-width: 420px; }
  .tt-card{ padding: 24px; min-height: 0; }
}
/* ===================== INDUSTRIES (kiểu Appen — bố cục TAB, nền vàng nhạt) =====================
   Header canh giữa dùng lại .tt-services__head / .tt-services__title / .tt-services__desc / .tt-services__cta.
   Khối 2 cột: trái = list ngành (tab), phải = 4 thẻ (số + tiêu đề + 1 dòng mô tả) + nút "Explore [ngành] →".
   Desktop: bấm tab đổi panel (assets/js/home.js). Mobile (≤1024): ẩn list, xếp dọc, hiện hết panel.
   Phân cách Services↔Industries: CẮT THẲNG (không fade). */
.tt-industries{
	background: var(--tt-bg);
	border-top: 1px solid var(--tt-line);             /* line chia Digital Transformation ↔ Built for your industry */
	padding-block: clamp(4rem, 7vw, 5.5rem);
}
.tt-industries__inner{
	width: min(100% - var(--tt-bar-side, 8px) * 2, var(--tt-bar-maxw, 1904px));
	margin-inline: auto;
	padding-inline: var(--tt-bar-pad, 28px);
}

/* Khối 2 cột */
.tt-ind{
	display: grid;
	grid-template-columns: minmax(220px, 280px) 1fr;
	gap: clamp(1.75rem, 3vw, 3rem);
	max-width: 1260px;
	margin-inline: auto;
	align-items: start;
}

/* ---- Cột trái: list ngành (tab) ---- */
.tt-ind__tabs{
	display: flex; flex-direction: column; align-items: flex-start;
	gap: clamp(.9rem, 1.6vw, 1.3rem);
}
.tt-ind__tab{
	background: none; border: 0; padding: 0; cursor: pointer;
	font-family: var(--tt-font-display);
	font-size: clamp(1.35rem, 2.2vw, 1.9rem);
	font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
	color: rgba(0, 0, 0, .32);                        /* chưa chọn: mờ */
	text-align: left;
	transition: color .2s ease;
}
.tt-ind__tab:hover{ color: rgba(0, 0, 0, .6); }
.tt-ind__tabtext{ display: inline-block; }
.tt-ind__tab.is-active{ color: var(--tt-ink); }      /* đang chọn: đen */
.tt-ind__tab.is-active .tt-ind__tabtext{             /* + gạch dưới (KHÔNG mũi tên) */
	text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.tt-ind__tab:focus-visible{ outline: 2px solid var(--tt-accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Cột phải: panels ---- */
.tt-ind__panel{ display: none; }
.tt-ind__panel.is-active{ display: block; }
.tt-ind__panelname{ display: none; }                 /* desktop: ẩn (tên to đã ở cột trái) */

/* lưới thẻ + ĐƯỜNG CHIA DỌC: border-left chỉ cao bằng khối thẻ (đến mép dưới hàng 2) */
.tt-ind__cards{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));   /* fill panel → mép phải canh với Services */
	gap: 24px;
	border-left: 1px solid rgba(0, 0, 0, .14);
	padding-left: clamp(1.5rem, 2.5vw, 2.5rem);
}
.tt-ind__card{                                          /* giống thẻ Services (radius/viền/shadow/padding), chỉ khác chiều cao */
	display: flex; flex-direction: column;
	padding: 28px;
	background: #fff;
	border: 1px solid #e2e2de;
	border-radius: 6px;
	box-shadow: rgba(0, 0, 0, .1) 0 4px 8px -2px, rgba(0, 0, 0, .06) 0 2px 4px -2px;
}
.tt-ind__num{ font-weight: 500; font-size: .85rem; color: var(--tt-ink-soft); margin: 0 0 14px; }
.tt-ind__cardtitle{ font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--tt-ink); margin: 0 0 .45rem; }
.tt-ind__carddesc{ font-size: .9rem; line-height: 1.5; color: rgba(0, 0, 0, .55); margin: 0; }

/* nút Explore: dùng lại kiểu .tt-services__cta; canh thẳng với thẻ (qua đường chia) */
.tt-ind__explore{
	margin-top: clamp(1.5rem, 2.2vw, 2rem) !important;
	margin-left: clamp(1.5rem, 2.5vw, 2.5rem);
}

/* ===== RESPONSIVE — Industries ===== */
@media (max-width: 1024px){
	.tt-ind{ grid-template-columns: 1fr; gap: 0; }
	.tt-ind__tabs{ display: none; }                   /* ẩn list trái */
	.tt-ind__panel{ display: block; }                 /* hiện hết panel, xếp dọc */
	.tt-ind__panel + .tt-ind__panel{
		margin-top: clamp(2.5rem, 6vw, 3.5rem);
		padding-top: clamp(2rem, 5vw, 2.5rem);
		border-top: 1px solid rgba(0, 0, 0, .1);
	}
	.tt-ind__cards{ border-left: 0; padding-left: 0; }   /* bỏ đường chia trên mobile/tablet */
	.tt-ind__explore{ margin-left: 0; }
	.tt-ind__panelname{                               /* mobile: hiện tên ngành làm tiêu đề khối */
		display: block;
		font-family: var(--tt-font-display);
		font-size: clamp(1.5rem, 5vw, 1.9rem);
		font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
		color: var(--tt-ink); margin: 0 0 1.25rem;
	}
}
@media (max-width: 560px){
	.tt-ind__cards{ grid-template-columns: 1fr; }
	.tt-ind__card{ padding: 22px; }
}

/* ===================== STORY / OUR JOURNEY (bố cục kiểu Appen "30 Years of Pioneering Data") =====================
   2 cột: trái = ảnh TRÀN ra mép trái (bo 2 góc bên trong) · phải = tiêu đề + tagline + timeline 1 đường kẻ (KHÔNG chấm tròn).
   Mobile (≤900): xếp dọc — ảnh full-width vuông góc tràn hết, nội dung dưới. Sửa nội dung/ảnh ở inc/meta-fields.php. */
.tt-story{
	background: var(--tt-bg);
	padding-block: clamp(4.5rem, 8vw, 7rem);
	overflow-x: clip;                                  /* clip ngang (KHÔNG dùng overflow:hidden để không vỡ sticky) */
}
.tt-story__inner{ width: 100%; }                       /* full-width: để ảnh tràn ra sát mép trái màn hình */
.tt-story__grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;                                /* ảnh KHÔNG kéo dài theo chữ — giữ vuông cố định */
}

/* ---- Ảnh (cột trái) — VUÔNG cố định + STICKY, tràn ra mép trái, bo 2 góc bên phải (mặt trong) ---- */
.tt-story__media{ position: sticky; top: calc(var(--tt-bar-top, 5px) + var(--tt-bar-h, 64px) + 1.5rem); min-width: 0; }
.tt-story__img{
	width: 100%;
	aspect-ratio: 1 / 1;                               /* VUÔNG cố định (không kéo dài theo chữ) */
	object-fit: cover;
	border-radius: 0 14px 14px 0;
	display: block;
}
.tt-story__img--ph{                                    /* placeholder khi chưa có ảnh */
	background: linear-gradient(135deg, #f1f1f3, #e7e7ea);
	border: 1px solid var(--tt-line); border-left: 0;
}

/* ---- Nội dung (cột phải) ---- */
.tt-story__body{
	padding-left: clamp(2rem, 4vw, 4.5rem);            /* khoảng cách với ảnh */
	padding-right: clamp(1.5rem, 5vw, 5rem);           /* lề phải */
}
.tt-story__head{ margin-bottom: clamp(2rem, 3.5vw, 3rem); max-width: 720px; }
.tt-story__title{
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: -.01em;
	margin: 0;
}
.tt-story__tagline{
	color: #424242;
	font-size: 1.05rem;
	line-height: 1.55;
	margin: .9rem 0 0;
	max-width: 52ch;
}

/* ---- Timeline: 1 đường kẻ dọc liền. Line ĐEN chạy MƯỢT theo cuộn (--tt-progress); chữ sáng theo từng cụm (.is-active) ---- */
.tt-story__timeline{ position: relative; list-style: none; margin: 0; padding: 0; max-width: 720px; }
/* đường nền XÁM full chiều cao */
.tt-story__timeline::before{
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
	background: var(--tt-line);
}
/* phần ĐÃ cuộn qua: ĐEN, cao = --tt-progress × 100% (mượt từng li — JS cập nhật) */
.tt-story__timeline::after{
	content: ""; position: absolute; left: 0; top: 0; width: 1px;
	height: calc(var(--tt-progress, 0) * 100%);
	background: var(--tt-ink);
}
.tt-story__item{
	padding: 0 0 clamp(1.75rem, 3vw, 2.5rem) 1.75rem;
}
.tt-story__item:last-child{ padding-bottom: 0; }
.tt-story__year{
	display: block;
	font-family: var(--tt-font-mono);
	font-size: .8rem; font-weight: 500; letter-spacing: .08em;
	color: #c7c7c7;
	margin: 0 0 .45rem;
	transition: color .45s ease;
}
.tt-story__itemtitle{
	font-family: var(--tt-font-display);
	font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: normal;
	color: #c4c4c4;
	margin: 0 0 .4rem;
	transition: color .45s ease;
}
.tt-story__itemdesc{
	font-size: .95rem; line-height: 1.6;
	color: #cfcfcf;
	margin: 0;
	transition: color .45s ease;
}
/* CHỮ: cuộn qua vạch ~62% → cụm đó thành ĐEN (line đen do --tt-progress lo, không dính ở đây) */
.tt-story__item.is-active .tt-story__year{ color: var(--tt-ink-soft); }
.tt-story__item.is-active .tt-story__itemtitle{ color: var(--tt-ink); }
.tt-story__item.is-active .tt-story__itemdesc{ color: #424242; }

/* ===== RESPONSIVE — Story ===== */
@media (max-width: 900px){
	.tt-story__grid{ grid-template-columns: 1fr; }
	.tt-story__media{ position: static; }                     /* mobile: bỏ sticky */
	.tt-story__img{ border-radius: 0; }                       /* mobile: vuông góc, vẫn vuông 1:1, tràn hết */
	.tt-story__body{ padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.25rem, 5vw, 1.75rem) 0; }
	.tt-story__head, .tt-story__timeline{ max-width: none; }
}

/* ===================== DIGITAL TRANSFORMATION (kiểu "Data Capabilities" — tag + tiêu đề + mô tả) =====================
   Header CANH GIỮA dùng lại .tt-services__head / .tt-services__title / .tt-services__desc (KHÔNG CTA, KHÔNG mũi tên).
   2 thẻ: tag (pill xám) + tiêu đề + đoạn mô tả. Nền VÀNG (chuyển từ Industries lên).
   Thẻ thành link khi có URL (điền sau ở admin); chưa có URL → là <div> tĩnh. */
.tt-dx{
	background: var(--tt-bg-soft);                    /* nền xám nhạt (giống Values & Vision) */
	border-top: 1px solid var(--tt-line);             /* line ngang mảnh xám, full màn hình → ngăn cách section */
	padding-block: clamp(4rem, 7vw, 5.5rem);
}
.tt-dx__inner{
	width: min(100% - var(--tt-bar-side, 8px) * 2, var(--tt-bar-maxw, 1904px));
	margin-inline: auto;
	padding-inline: var(--tt-bar-pad, 28px);
}
.tt-dx__grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 1260px;
	margin-inline: auto;
}
.tt-dx__card{
	display: flex; flex-direction: column; gap: 12px;
	padding: 28px;
	background: #fff;
	border: 1px solid #e2e2de;
	border-radius: 6px;
	box-shadow: rgba(0, 0, 0, .1) 0 4px 8px -2px, rgba(0, 0, 0, .06) 0 2px 4px -2px;
	text-decoration: none; color: var(--tt-ink);
	transition: transform .15s ease, box-shadow .15s ease;
}
a.tt-dx__card:hover{ transform: translateY(-3px); box-shadow: rgba(0, 0, 0, .14) 0 12px 24px -10px, rgba(0, 0, 0, .08) 0 4px 8px -4px; }
a.tt-dx__card:focus-visible{ outline: 2px solid var(--tt-accent); outline-offset: 3px; }
.tt-dx__tag{
	align-self: flex-start;
	font-family: var(--tt-font-body);
	font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	color: var(--tt-ink-soft); background: var(--tt-line);
	border-radius: 6px; padding: 6px 11px;
	margin: 0;
}
.tt-dx__cardtitle{
	font-family: var(--tt-font-display);
	font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3;
	color: var(--tt-ink); margin: 0;
}
.tt-dx__carddesc{
	color: rgba(0, 0, 0, .55); font-size: 1rem; line-height: 1.6; margin: 0;
}

/* ===== RESPONSIVE — Digital transformation ===== */
@media (max-width: 760px){
	.tt-dx__grid{ grid-template-columns: 1fr; max-width: 520px; }
}

/* ===================== CONTACT US / CTA (dải nền ĐEN + popup form) =====================
   Dải đen: H2 trắng + mô tả xám + nút pill trắng (khớp fetch: H2 ~48px/-.02em, mô tả 18px/rgba .65, nút 15.2px/500 bo 50px).
   Modal: hộp trắng max 768px, padding 48px, viền #ECEFF0. Gửi AJAX (home.js) → wp_mail (inc/contact-form.php). */
.tt-cta{
	background: #000;
	padding-block: clamp(4rem, 8vw, 6.5rem);
	padding-inline: clamp(1.5rem, 5vw, 72px);
}
.tt-cta__inner{
	max-width: 1280px; margin-inline: auto;
	text-align: center;
	display: flex; flex-direction: column; align-items: center;
	gap: clamp(1rem, 2vw, 1.5rem);
}
.tt-cta .tt-cta__title{                              /* đủ nặng để thắng .home h2 */
	color: #fff;
	font-size: clamp(2rem, 4vw, 3rem);               /* ~48px */
	font-weight: 400;                                /* mảnh — khớp Appen */
	line-height: 1.1; letter-spacing: -.02em;
	max-width: 18ch; margin: 0;
}
.tt-cta__sub{
	color: rgba(255, 255, 255, .65);
	font-size: 1.125rem; line-height: 1.6;           /* 18px */
	max-width: 560px; margin: 0;
}
.tt-cta__btn{
	margin-top: .5rem;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: #000;
	font-family: var(--tt-font-body); font-weight: 500; font-size: .95rem; line-height: 1.2;
	padding: 12px 28px; border: 1px solid #fff; border-radius: 50px;
	cursor: pointer; text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.tt-cta__btn:hover{ background: #ededed; border-color: #ededed; transform: translateY(-1px); }
.tt-cta__btn:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }

/* ---- Modal (popup) ---- */
.tt-modal{ position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2rem); }
.tt-modal.is-open{ display: flex; }
body.tt-modal-open{ overflow: hidden; }
.tt-modal__backdrop{ position: absolute; inset: 0; background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.tt-modal__panel{
	position: relative;
	width: 100%; max-width: 768px;
	max-height: calc(100dvh - 2rem); overflow-y: auto;
	background: #fff; border: 1px solid #eceff0; border-radius: 14px;
	padding: clamp(1.75rem, 4vw, 48px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.tt-modal__close{
	position: absolute; top: 14px; right: 14px;
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--tt-ink-soft);
	transition: background-color .15s ease, color .15s ease;
}
.tt-modal__close:hover{ background: var(--tt-bg-soft); color: var(--tt-ink); }
.tt-modal__close:focus-visible{ outline: 2px solid var(--tt-accent); outline-offset: 2px; }

/* ---- Form ---- */
.tt-contact__title{ font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 2.5rem 0 0; }
.tt-contact__intro{ color: var(--tt-ink-soft); font-size: 1rem; line-height: 1.55; margin: .6rem 0 1.5rem; }
.tt-contact__hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tt-contact__form{ display: flex; flex-direction: column; gap: 1rem; }
.tt-field{ display: flex; flex-direction: column; gap: .4rem; }
.tt-field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tt-field label{ font-size: .85rem; font-weight: 500; color: var(--tt-ink); }
.tt-field input, .tt-field select, .tt-field textarea{
	font-family: var(--tt-font-body); font-size: 1rem; color: var(--tt-ink);
	padding: .7rem .85rem; border: 1px solid var(--tt-line); border-radius: 8px; background: #fff; width: 100%;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tt-field textarea{ resize: vertical; min-height: 110px; }
.tt-field input:focus, .tt-field select:focus, .tt-field textarea:focus{
	outline: none; border-color: var(--tt-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08);
}
.tt-contact__submit{
	margin-top: .25rem; align-self: flex-start;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--tt-ink); color: #fff;
	font-family: var(--tt-font-body); font-weight: 600; font-size: .95rem;
	padding: .8rem 1.8rem; border: 0; border-radius: 50px; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.tt-contact__submit:hover{ background: #222; transform: translateY(-1px); }
.tt-contact__submit:disabled{ opacity: .6; cursor: default; transform: none; }
.tt-contact__submit:focus-visible{ outline: 2px solid var(--tt-accent); outline-offset: 3px; }
.tt-contact__status{ font-size: .9rem; line-height: 1.5; margin: .25rem 0 0; min-height: 1.2em; }
.tt-contact__status.is-ok{ color: #1a7f4b; }
.tt-contact__status.is-err{ color: #c0392b; }

@media (max-width: 560px){
	.tt-field-row{ grid-template-columns: 1fr; }
}

/* ---- Required (*), thông báo lỗi & ô consent ---- */
.tt-req{ color: #e5484d; margin-left: 1px; }
.tt-field__err, .tt-consent__err{ display: none; color: #c0392b; font-size: .8rem; line-height: 1.4; margin: 0; }
.tt-field.is-invalid .tt-field__err, .tt-consent.is-invalid .tt-consent__err{ display: block; }
.tt-field.is-invalid input, .tt-field.is-invalid select, .tt-field.is-invalid textarea{ border-color: #c0392b; }
.tt-field.is-invalid input:focus, .tt-field.is-invalid select:focus, .tt-field.is-invalid textarea:focus{ border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }

.tt-consent{ display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.tt-consent__check{ display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; line-height: 1.45; color: var(--tt-ink); cursor: pointer; }
.tt-consent__check input{ width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--tt-ink); cursor: pointer; }
.tt-consent.is-invalid .tt-consent__check input{ outline: 2px solid #c0392b; outline-offset: 2px; border-radius: 3px; }
.tt-consent__text{ font-size: .8rem; line-height: 1.55; color: var(--tt-ink-soft); margin: 0; }
.tt-consent__text a{ color: var(--tt-ink); text-decoration: underline; text-underline-offset: 2px; }