/* =========================================================
   SECTION THÔNG TIN LIÊN HỆ
   Áp dụng đúng cấu trúc HTML hiện tại của .section.thongtin
========================================================= */

.section.thongtin {
	--contact-primary: #28cb8b;
	--contact-primary-dark: #078563;
	--contact-dark: #075b48;
	--contact-deep: #043f34;
	--contact-text: #173b32;
	--contact-muted: #74877f;
	--contact-border: #d9e7e1;
	--contact-input-bg: #f7faf9;

	position: relative;
	overflow: hidden;
	background: transparent;
}

/* Đồng bộ cách tính kích thước trong toàn section */
.section.thongtin,
.section.thongtin * {
	box-sizing: border-box;
}

/* Xóa nền section theo yêu cầu */
.section.thongtin .section-bg {
	background: transparent;
}

/* Giữ nội dung phía trên phần nền mặc định của Flatsome */
.section.thongtin .section-content {
	position: relative;
	z-index: 2;
	padding: 25px 20px;
}


/* =========================================================
   BỐ CỤC CHUNG DESKTOP
========================================================= */

/* Chia section thành hai cột và giới hạn chiều rộng 1320px */
.section.thongtin .section-content > .row {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
	gap: 24px;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

/* Xóa khoảng đệm mặc định của cột Flatsome */
.section.thongtin .section-content > .row > .col {
	width: 100%;
	max-width: none;
	padding: 0;
	flex-basis: auto;
}

/* Giúp hai card có chiều cao bằng nhau */
.section.thongtin .section-content > .row > .col > .col-inner {
	height: 100%;
}


/* =========================================================
   CARD THÔNG TIN LIÊN HỆ BÊN TRÁI
========================================================= */

.section.thongtin .ben-trai > .col-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: 44px 42px;
	overflow: hidden;
	border-radius: 18px;
	background:
		linear-gradient(
			145deg,
			var(--contact-deep) 0%,
			var(--contact-dark) 58%,
			#078868 100%
		);
	box-shadow: 0 20px 48px rgba(5, 74, 58, 0.18);
}

/* Họa tiết vòng tròn trang trí trong card bên trái */
.section.thongtin .ben-trai > .col-inner::before {
	position: absolute;
	right: -120px;
	bottom: -120px;
	width: 270px;
	height: 270px;
	content: "";
	border: 44px solid rgba(255, 255, 255, 0.06);
	border-radius: 50%;
	pointer-events: none;
}

/* Xóa khoảng cách mặc định của các khối text UX Builder */
.section.thongtin .ben-trai .text {
	position: relative;
	z-index: 2;
	margin: 0;
}

/* Xóa margin mặc định của thẻ p */
.section.thongtin .ben-trai .text p {
	margin: 0;
}


/* =========================================================
   TIÊU ĐỀ THÔNG TIN LIÊN HỆ
========================================================= */

.section.thongtin .ben-trai .text1 {
	margin-bottom: 26px;
	padding-top: 26px;
}

/* Đường nhấn phía trên tiêu đề */
.section.thongtin .ben-trai .text1::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 50px;
	height: 4px;
	content: "";
	border-radius: 999px;
	background: #55e9b0;
}

/* Kiểu chữ tiêu đề */
.section.thongtin .ben-trai .text1 p {
	color: #ffffff;
	font-size: clamp(27px, 2.2vw, 36px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.5px;
}


/* =========================================================
   DANH SÁCH THÔNG TIN LIÊN HỆ
========================================================= */

/* Tạo bố cục icon và nội dung cho từng dòng */
.section.thongtin .ben-trai .text2,
.section.thongtin .ben-trai .text3,
.section.thongtin .ben-trai .text4,
.section.thongtin .ben-trai .text5 {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 15px;
	align-items: center;
	min-height: 78px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
	transition:
		padding-left 0.25s ease,
		background-color 0.25s ease;
}

/* Xóa đường kẻ dưới thông tin cuối cùng */
.section.thongtin .ben-trai .text5 {
	border-bottom: 0;
}

/* Khung icon chung */
.section.thongtin .ben-trai .text2::before,
.section.thongtin .ben-trai .text3::before,
.section.thongtin .ben-trai .text4::before,
.section.thongtin .ben-trai .text5::before {
	display: block;
	width: 48px;
	height: 48px;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 13px;
	background-color: rgba(255, 255, 255, 0.11);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 21px 21px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Icon số điện thoại */
.section.thongtin .ben-trai .text2::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.62 10.79a15.46 15.46 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* Icon email */
.section.thongtin .ben-trai .text3::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* Icon văn phòng */
.section.thongtin .ben-trai .text4::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

/* Icon nhà máy */
.section.thongtin .ben-trai .text5::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 21h18V8l-6 3V7l-6 3V4H3v17zm4-2H5v-3h2v3zm5 0H9v-3h3v3zm5 0h-3v-3h3v3z'/%3E%3C/svg%3E");
}

/* Kiểu chữ chung của thông tin */
.section.thongtin .ben-trai .text2 p,
.section.thongtin .ben-trai .text3 p,
.section.thongtin .ben-trai .text4 p,
.section.thongtin .ben-trai .text5 p {
	color: rgba(255, 255, 255, 0.95);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

/* Làm nổi bật số điện thoại và email */
.section.thongtin .ben-trai .text2 p,
.section.thongtin .ben-trai .text3 p {
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
}

/* Hiệu ứng nhẹ khi rê chuột vào từng dòng */
.section.thongtin .ben-trai .text2:hover,
.section.thongtin .ben-trai .text3:hover,
.section.thongtin .ben-trai .text4:hover,
.section.thongtin .ben-trai .text5:hover {
	padding-left: 8px;
	background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   CARD FORM BÊN PHẢI
========================================================= */

.section.thongtin .ben-phai > .col-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: 46px;
	border: 1px solid rgba(7, 91, 72, 0.1);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 20px 48px rgba(20, 72, 59, 0.1);
}

/* Cho Contact Form 7 chiếm toàn bộ card */
.section.thongtin .ben-phai .wpcf7,
.section.thongtin .ben-phai .wpcf7-form {
	width: 100%;
	margin: 0;
}


/* =========================================================
   BỐ CỤC FORM CONTACT FORM 7
========================================================= */

/* Form chia hai cột trên desktop */
.section.thongtin .kht-contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
	width: 100%;
}

/* Xóa khoảng cách mặc định của các thẻ p */
.section.thongtin .kht-contact-form > p {
	min-width: 0;
	margin: 0;
}

/* Nội dung và nút gửi chiếm toàn bộ chiều ngang */
.section.thongtin .kht-contact-form > p:nth-of-type(5),
.section.thongtin .kht-contact-form > p:nth-of-type(6) {
	grid-column: 1 / -1;
}

/* Kiểu chữ label */
.section.thongtin .kht-contact-form label {
	display: block;
	margin: 0;
	color: var(--contact-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

/* Ẩn các thẻ xuống dòng do CF7 sinh ra */
.section.thongtin .kht-contact-form label > br {
	display: none;
}

/* Khoảng cách giữa label và input */
.section.thongtin .kht-contact-form-control-wrap {
	display: block;
	width: 100%;
	margin-top: 8px;
}


/* =========================================================
   INPUT, EMAIL, SỐ ĐIỆN THOẠI VÀ TEXTAREA
========================================================= */

.section.thongtin .kht-contact-form input[type="text"],
.section.thongtin .kht-contact-form input[type="email"],
.section.thongtin .kht-contact-form input[type="tel"],
.section.thongtin .kht-contact-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	color: var(--contact-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	border: 1px solid var(--contact-border);
	border-radius: 10px;
	background: var(--contact-input-bg);
	box-shadow: none;
	transition:
		border-color 0.25s ease,
		background-color 0.25s ease,
		box-shadow 0.25s ease;
}

/* Chiều cao các trường nhập một dòng */
.section.thongtin .kht-contact-form input[type="text"],
.section.thongtin .kht-contact-form input[type="email"],
.section.thongtin .kht-contact-form input[type="tel"] {
	height: 50px;
	padding: 0 16px;
}

/* Kích thước trường nội dung */
.section.thongtin .kht-contact-form textarea {
	height: 145px;
	min-height: 145px;
	padding: 14px 16px;
	line-height: 1.6;
	resize: vertical;
}

/* Màu chữ gợi ý */
.section.thongtin .kht-contact-form input::placeholder,
.section.thongtin .kht-contact-form textarea::placeholder {
	color: #91a39c;
	opacity: 1;
}

/* Trạng thái focus */
.section.thongtin .kht-contact-form input:focus,
.section.thongtin .kht-contact-form textarea:focus {
	outline: none;
	border-color: var(--contact-primary);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(40, 203, 139, 0.12);
}

/* Trạng thái trường nhập bị lỗi */
.section.thongtin .kht-contact-form .wpcf7-not-valid {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.08);
}


/* =========================================================
   NÚT GỬI LIÊN HỆ
========================================================= */

.section.thongtin .kht-contact-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin: 2px 0 0;
	padding: 0 24px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.5px;
	border: 0;
	border-radius: 10px;
	background:
		linear-gradient(
			135deg,
			var(--contact-primary-dark) 0%,
			var(--contact-primary) 100%
		);
	box-shadow: 0 12px 24px rgba(40, 203, 139, 0.24);
	cursor: pointer;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		filter 0.25s ease;
}

/* Hiệu ứng khi rê chuột vào nút */
.section.thongtin .kht-contact-submit:hover {
	transform: translateY(-2px);
	filter: brightness(1.03);
	box-shadow: 0 16px 30px rgba(40, 203, 139, 0.31);
}

/* Hiệu ứng khi nhấn nút */
.section.thongtin .kht-contact-submit:active {
	transform: translateY(0);
}


/* =========================================================
   SPINNER VÀ THÔNG BÁO CONTACT FORM 7
========================================================= */

/* Giữ spinner nằm trong khu vực nút gửi */
.section.thongtin .kht-contact-form > p:last-child {
	position: relative;
}

/* Căn spinner bên phải nút */
.section.thongtin .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 15px;
	margin: 0;
	transform: translateY(-50%);
}

/* Thông báo lỗi của từng trường */
.section.thongtin .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: #d63638;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

/* Khung thông báo sau khi gửi form */
.section.thongtin .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 13px 15px;
	color: var(--contact-text);
	font-size: 14px;
	line-height: 1.55;
	border-radius: 9px;
	background: #f7faf9;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media screen and (max-width: 849px) {

	/* Giảm lề ngang của section */
	.section.thongtin .section-content {
		padding: 20px 15px;
	}

	/* Chuyển bố cục thành một cột */
	.section.thongtin .section-content > .row {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	/* Điều chỉnh padding hai card */
	.section.thongtin .ben-trai > .col-inner,
	.section.thongtin .ben-phai > .col-inner {
		padding: 34px 28px;
		border-radius: 16px;
	}

	/* Giữ form hai cột trên tablet ngang */
	.section.thongtin .kht-contact-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media screen and (max-width: 549px) {

	/* Thu gọn khoảng cách section */
	.section.thongtin .section-content {
		padding: 10px 12px;
	}

	/* Thu gọn khoảng cách giữa hai card */
	.section.thongtin .section-content > .row {
		gap: 15px;
	}

	/* Thu gọn padding trong hai card */
	.section.thongtin .ben-trai > .col-inner,
	.section.thongtin .ben-phai > .col-inner {
		padding: 26px 20px;
		border-radius: 14px;
	}

	/* Thu gọn tiêu đề */
	.section.thongtin .ben-trai .text1 {
		margin-bottom: 18px;
		padding-top: 22px;
	}

	.section.thongtin .ben-trai .text1 p {
		font-size: 25px;
	}

	.section.thongtin .ben-trai .text1::before {
		width: 42px;
	}

	/* Thu gọn từng dòng thông tin */
	.section.thongtin .ben-trai .text2,
	.section.thongtin .ben-trai .text3,
	.section.thongtin .ben-trai .text4,
	.section.thongtin .ben-trai .text5 {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 12px;
		min-height: 66px;
		padding: 12px 0;
	}

	/* Thu nhỏ icon */
	.section.thongtin .ben-trai .text2::before,
	.section.thongtin .ben-trai .text3::before,
	.section.thongtin .ben-trai .text4::before,
	.section.thongtin .ben-trai .text5::before {
		width: 42px;
		height: 42px;
		border-radius: 11px;
		background-size: 18px 18px;
	}

	/* Thu nhỏ nội dung liên hệ */
	.section.thongtin .ben-trai .text2 p,
	.section.thongtin .ben-trai .text3 p,
	.section.thongtin .ben-trai .text4 p,
	.section.thongtin .ben-trai .text5 p {
		font-size: 14px;
		line-height: 1.65;
	}

	/* Tắt hiệu ứng dịch ngang trên thiết bị cảm ứng */
	.section.thongtin .ben-trai .text2:hover,
	.section.thongtin .ben-trai .text3:hover,
	.section.thongtin .ben-trai .text4:hover,
	.section.thongtin .ben-trai .text5:hover {
		padding-left: 0;
	}

	/* Chuyển form thành một cột */
	.section.thongtin .kht-contact-form {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
	}

	/* Mọi trường form chiếm toàn bộ chiều ngang */
	.section.thongtin .kht-contact-form > p {
		grid-column: 1 / -1;
	}

	/* Thu gọn chiều cao input */
	.section.thongtin .kht-contact-form input[type="text"],
	.section.thongtin .kht-contact-form input[type="email"],
	.section.thongtin .kht-contact-form input[type="tel"] {
		height: 48px;
		font-size: 14px;
	}

	/* Thu gọn textarea */
	.section.thongtin .kht-contact-form textarea {
		height: 125px;
		min-height: 125px;
		font-size: 14px;
	}

	/* Giữ nút đủ lớn để thao tác cảm ứng */
	.section.thongtin .kht-contact-submit {
		height: 50px;
	}
}