/* ==========================================================================
   TRANG HOI DAP /hoi-dap-xe-dien.html - GIAO DIEN 3            04/09/2026
   ==========================================================================
   Chi nap o page=hoidap (inc/header.php), giong cach css/cart.css chi nap o
   trang gio hang. Form dung lai bo .gd3-lh-* cua trang lien he
   (css/category.css) nen o day chi co phan rieng: o tim, danh sach hoi/dap,
   the gui cau hoi dinh theo cuon, hotline.

   TONG MAU: VANG - DEN theo thuong hieu (yeu cau 04/09/2026), khong dung
   xanh la cua trang lien he. Nut chinh nen den chu vang #ffd900 (giong
   .gd3-btn-cart trang chi tiet), nut phu / hotline nen vang #fff100 chu
   den (giong .gd3-btn-hotline), vien focus vang. Cac luat .gd3-lh-* mau
   xanh trong category.css duoc ghi de trong pham vi .gd3-hd.
   ========================================================================== */
.gd3-hd .gd3-lh-nut { background: #000; color: #ffd900; }
.gd3-hd .gd3-lh-nut:hover { background: #222; color: #fff100; }
.gd3-hd .gd3-lh-cot input:focus, .gd3-hd .gd3-lh-cot textarea:focus { border-color: #e6b800; box-shadow: 0 0 0 3px rgba(255, 198, 0, .28); }
.gd3-hd .gd3-lh-tieude i { color: #111; }
.gd3-hd .gd3-lh-o-icon { background: #ffc600; color: #111; }

.gd3-hd-mota {
	margin: -6px 0 22px;
	max-width: 820px;
	font-size: 14px;
	line-height: 1.7;
	color: #666;
}

/* ---- O tim ---- */
.gd3-hd-tim {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 18px;
	border: 1px solid #dcdfdd;
	border-radius: 8px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.gd3-hd-tim:focus-within { border-color: #e6b800; box-shadow: 0 0 0 3px rgba(255, 198, 0, .28); }
.gd3-hd-tim > i { flex: 0 0 auto; margin: 0 4px 0 14px; color: #999; font-size: 14px; }
.gd3-hd-tim input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 8px;
	border: 0;
	background: transparent;
	font-size: 14px;
	font-family: inherit;
	color: #111;
}
.gd3-hd-tim input:focus { outline: 0; }
.gd3-hd-tim input::-webkit-search-cancel-button { -webkit-appearance: none; }
.gd3-hd-tim button {
	flex: 0 0 auto;
	margin: 4px;
	padding: 8px 18px;
	border: 0;
	border-radius: 6px;
	background: #000;
	color: #ffd900;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.gd3-hd-tim button:hover { background: #222; color: #fff100; }
.gd3-hd-tim-xoa {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-right: 4px;
	border-radius: 50%;
	color: #888;
	text-decoration: none;
}
.gd3-hd-tim-xoa:hover { background: #f1f2f1; color: #111; text-decoration: none; }

.gd3-hd-muc {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 800;
	color: #111;
}
.gd3-hd-muc span { font-weight: 400; color: #888; font-size: 14px; }

/* ---- Trong ---- */
.gd3-hd-trong {
	padding: 40px 20px;
	border: 1px dashed #d9dcda;
	border-radius: 10px;
	text-align: center;
	color: #777;
}
.gd3-hd-trong i { font-size: 38px; color: #c9ccca; margin-bottom: 10px; }
.gd3-hd-trong p { margin: 0 0 16px; font-size: 14px; }

/* ---- Danh sach hoi / dap ---- */
.gd3-hd-ds { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.gd3-hd-muc-hoi {
	border: 1px solid #e8ebe9;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.gd3-hd-muc-hoi:target { border-color: #e6b800; box-shadow: 0 0 0 3px rgba(255, 198, 0, .28); }
.gd3-hd-ghim { border-color: #ffc600; }
.gd3-hd-hoi, .gd3-hd-dap { display: flex; gap: 12px; padding: 14px 16px; }
.gd3-hd-dap { background: #fffbe6; border-top: 1px solid #f5e7a8; }
.gd3-hd-avatar {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffc600;
	color: #111;
	font-size: 16px;
	font-weight: 800;
}
.gd3-hd-avatar-shop { background: #111; color: #ffd900; font-size: 15px; }
.gd3-hd-than { flex: 1 1 auto; min-width: 0; }
.gd3-hd-nguoi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 4px;
	font-size: 13px;
	color: #333;
}
.gd3-hd-nguoi b { font-size: 14px; color: #111; }
.gd3-hd-ngay { color: #999; font-size: 12px; }
.gd3-hd-nhan {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
}
.gd3-hd-nhan-ghim { background: #ffc600; color: #111; }
.gd3-hd-nhan-shop { background: #111; color: #ffd900; }
.gd3-hd-sp { margin: 0 0 6px; font-size: 12.5px; color: #777; }
.gd3-hd-sp a { color: #111; font-weight: 700; border-bottom: 2px solid #ffc600; }
.gd3-hd-noidung { font-size: 14.5px; line-height: 1.7; color: #222; word-wrap: break-word; overflow-wrap: anywhere; }
.gd3-hd-noidung p { margin: 0 0 8px; }
.gd3-hd-noidung p:last-child { margin-bottom: 0; }
/* Cau tra loi soan san dang danh sach (diem noi bat) - 05/09/2026 */
.gd3-hd-noidung ul { margin: 4px 0 0; padding-left: 20px; }
.gd3-hd-noidung ul li { margin: 0 0 6px; }
.gd3-hd-noidung ul li:last-child { margin-bottom: 0; }
.gd3-hd-noidung ul li b { color: #111; }
.gd3-hd-traloi p { margin: 0 0 8px; }
.gd3-hd-traloi p:last-child { margin-bottom: 0; }
.gd3-hd-traloi img { max-width: 100%; height: auto; }
.gd3-hd-traloi a { color: #111; font-weight: 600; border-bottom: 2px solid #ffc600; }

/* ---- Cot phai: the gui cau hoi + hotline ---- */
.gd3-hd-the {
	padding: 18px 18px 14px;
	border: 1px solid #e8ebe9;
	border-top: 4px solid #ffc600;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.gd3-hd-the .gd3-lh-tieude { font-size: 17px; }
.gd3-hd-the .gd3-lh-tieude i { margin-right: 4px; }
.gd3-hd-the .gd3-lh-motangan { margin-bottom: 12px; }
.gd3-hd-the .gd3-lh-cot { margin-bottom: 10px; }
.gd3-hd-the .gd3-lh-hang { gap: 10px; }
.gd3-hd-the .gd3-lh-cot textarea { min-height: 96px; }
.gd3-hd-the .gd3-lh-bao { margin-bottom: 12px; padding: 10px 12px; font-size: 13px; }
.gd3-hd-nut { width: 100%; justify-content: center; margin-top: 2px; }
.gd3-hd-hotline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid #f5e7a8;
	border-radius: 10px;
	background: #fff100;
	color: inherit;
	text-decoration: none;
}
.gd3-hd-hotline:hover { background: #ffd900; color: inherit; text-decoration: none; }
.gd3-hd-hotline .gd3-lh-o-icon { background: #111; color: #ffd900; }
.gd3-hd-hotline .gd3-lh-o-nhan { color: #5a4a00; }
.gd3-hd-hotline b { font-size: 16px; color: #111; }

@media (min-width: 992px) {
	/* Dinh the gui cau hoi khi cuon danh sach dai - can hang .row cao hon
	   the (align-items mac dinh stretch nen cot phai cao bang cot trai). */
	.gd3-hd-dinh { position: sticky; top: 16px; }
}
@media (max-width: 991.98px) {
	.gd3-hd-dinh { margin-bottom: 22px; }
}
@media (max-width: 575.98px) {
	.gd3-hd-hoi, .gd3-hd-dap { padding: 12px; gap: 10px; }
	.gd3-hd-avatar { flex-basis: 32px; width: 32px; height: 32px; font-size: 14px; }
	.gd3-hd-noidung { font-size: 14px; }
	.gd3-hd-the { padding: 14px 14px 12px; }
	/* 05/09/2026 user: "Dien thoai va email nen nam 1 hang tren mobi" -> giu
	   1 hang (ghi de luat xep doc cua category.css .gd3-lh-hang), o nho hon. */
	.gd3-hd-the .gd3-lh-hang { flex-direction: row; gap: 8px; }
	.gd3-hd-the .gd3-lh-hang input { padding-left: 10px; padding-right: 10px; font-size: 14px; }
}

/* ---- Khoi "Hoi dap ve san pham nay" trong trang chi tiet (inc/detail.php,
   04/09/2026): form ben trai, 3 cau moi nhat ben phai; dien thoai xep doc
   (form truoc). Tieu de khoi la .gd3-detail-block-title cua detail.css. */
.gd3-hdsp .gd3-detail-block-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd3-hdsp-so { font-weight: 400; color: #888; font-size: 15px; }
.gd3-hdsp-hang { display: flex; gap: 22px; align-items: flex-start; }
.gd3-hdsp-form { flex: 0 0 40%; max-width: 420px; min-width: 0; }
.gd3-hdsp-ds { flex: 1 1 0; min-width: 0; }
.gd3-hdsp .gd3-hd-the h3.gd3-lh-tieude { font-size: 16px; line-height: 1.4; }
.gd3-hdsp .gd3-hd-ds { margin-bottom: 0; }
.gd3-hdsp .gd3-hd-trong { padding: 28px 16px; }
.gd3-hdsp .gd3-hd-trong p { margin-bottom: 0; }
.gd3-hdsp-them { margin: 12px 0 0; font-size: 14px; }
.gd3-hdsp-them a { color: #111; font-weight: 700; border-bottom: 2px solid #ffc600; text-decoration: none; }
@media (max-width: 991.98px) {
	.gd3-hdsp-hang { flex-direction: column; gap: 16px; }
	.gd3-hdsp-form { flex-basis: auto; max-width: none; width: 100%; }
	.gd3-hdsp-ds { width: 100%; }
}

/* "Cau hoi thuong gap" (hoidap.tu_dong = 1, 05/09/2026): avatar dau ? nen
   vang nhat, khong ten khach/ngay. Nut "Xem them N cau hoi" trong khoi cua
   san pham (inc/detail.php). */
.gd3-hd-tu-dong .gd3-hd-hoi .gd3-hd-avatar { background: #fff3b8; color: #8a6400; font-size: 18px; }
.gd3-hd-tu-dong .gd3-hd-hoi .gd3-hd-nguoi b { color: #8a6400; font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; }
.gd3-hdsp-mo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 13.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.gd3-hdsp-mo:hover { background: #fff8d6; border-color: #ffd900; }


/* ==========================================================================
   KHUNG XAC NHAN SAU KHI GUI CAU HOI (inc/hoidap_xong.php)     14/09/2026
   ==========================================================================
   Thay han the .gd3-hd-the chua bieu mau. Dung o ca trang hoi dap chung lan
   khoi hoi dap trong trang chi tiet san pham. Ban giao dien 1 cua khoi nay
   nam o cuoi css/rieng/hoi-dap.css.
   ========================================================================== */
.gd3-hdx {
	border: 1px solid #b7e2ca;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.gd3-hdx-dau {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: #eaf7f0;
	border-bottom: 1px solid #cdeed7;
}

.gd3-hdx-tick {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #067647;
	color: #fff;
	font-size: 20px;
	line-height: 44px;
	text-align: center;
}

.gd3-hdx-chu { flex: 1 1 auto; min-width: 0; }
.gd3-hdx-chu h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; line-height: 1.3; color: #10603c; }
.gd3-hdx-chu p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3f6b4b; }

/* Ma cau hoi: khach chup man hinh hoac doc qua dien thoai khi goi hotline. */
.gd3-hdx-ma {
	flex: 0 0 auto;
	padding: 6px 14px;
	border: 1px dashed #9ad3ac;
	border-radius: 9px;
	background: #fff;
	text-align: center;
}
.gd3-hdx-ma small { display: block; font-size: 11px; color: #6b8f77; }
.gd3-hdx-ma b { display: block; font-size: 17px; font-weight: 800; color: #10603c; }

/* So thu tu tu ve bang bo dem CSS - dau cham mac dinh cua <ol> khong to mau
   duoc va khong thang hang voi chu. */
.gd3-hdx-buoc {
	margin: 0;
	padding: 16px 20px 6px;
	list-style: none;
	counter-reset: gd3hdx;
}
.gd3-hdx-buoc li {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 0 38px;
	list-style: none;
}
.gd3-hdx-buoc li:before {
	counter-increment: gd3hdx;
	content: counter(gd3hdx);
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffc600;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	line-height: 26px;
	text-align: center;
}
.gd3-hdx-buoc b { display: block; font-size: 14.5px; font-weight: 700; color: #111; }
.gd3-hdx-buoc span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: #666; }

.gd3-hdx-rieng { margin: 0; padding: 10px 20px 14px; font-size: 13px; line-height: 1.5; color: #666; }
.gd3-hdx-rieng i { margin-right: 6px; color: #b58600; }
.gd3-hdx-rieng b { color: #111; font-weight: 700; }

.gd3-hdx-nut {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 20px 18px;
	border-top: 1px solid #eee;
}

.gd3-hdx-nut a.gd3-hdx-goi {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	border-radius: 10px;
	background: #ffc600;
	color: #111;
	text-decoration: none;
}
.gd3-hdx-nut a.gd3-hdx-goi:hover { background: #ffd900; color: #111; text-decoration: none; }
.gd3-hdx-nut a.gd3-hdx-goi i { font-size: 19px; }
.gd3-hdx-nut a.gd3-hdx-goi small { display: block; font-size: 11px; font-weight: 600; line-height: 1.1; color: #5a4600; }
.gd3-hdx-nut a.gd3-hdx-goi b { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; white-space: nowrap; }

.gd3-hdx-nut a.gd3-hdx-them {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 18px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: #333;
	text-decoration: none;
}
.gd3-hdx-nut a.gd3-hdx-them:hover { border-color: #111; color: #111; text-decoration: none; }

@media (max-width: 767.98px) {
	/* Dong dau xuong hai hang: dau tick + chu o tren, ma cau hoi keo het be
	   ngang o duoi - de chung mot hang thi ma bop phan chu con chua noi hai
	   tu. Hai nut cung moi cai mot hang cho de bam. */
	.gd3-hdx-dau { flex-wrap: wrap; gap: 12px; padding: 16px 14px; }
	.gd3-hdx-tick { flex-basis: 38px; width: 38px; height: 38px; font-size: 17px; line-height: 38px; }
	.gd3-hdx-chu h3 { font-size: 17px; }
	.gd3-hdx-ma { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
	.gd3-hdx-ma small,
	.gd3-hdx-ma b { display: inline; }
	.gd3-hdx-buoc { padding: 14px 14px 4px; }
	.gd3-hdx-rieng { padding: 8px 14px 12px; }
	.gd3-hdx-nut { padding: 12px 14px 16px; gap: 10px; }
	.gd3-hdx-nut a.gd3-hdx-goi,
	.gd3-hdx-nut a.gd3-hdx-them { flex: 1 1 100%; justify-content: center; }
}
