/* SECTION WHY CHOOSE US */
.why {
	padding: 0 120px;
	width: 100%;
	margin-bottom: 40px;
}

.why-intro {
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 400;
	line-height: 160%;
	text-align: center;
}

.why-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.why-images {
	background: linear-gradient(135deg, #DBEAFE 0%, #BEDBFF 100%);
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-gap: 20px;
	justify-content: center;
	max-width: 1000px;
	margin: 0 auto;
	border-radius: 12px;
	padding: 20px;
}

.why-images img {
	border: 1px solid #ddd;

	width: 100%;
	/* height: auto; */
	border-radius: 8px;
	display: block;
	object-fit: cover;
}

/* Ảnh 1 chiếm cột trái */
.why-images img:nth-child(1) {
	grid-column: 1;
	grid-row: 1;
	max-height: 200px;
}

/* Ảnh 2 nhỏ nằm bên phải */
.why-images img:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

/* Ảnh 3 lớn nằm bên dưới, kéo dài cả 2 cột */
.why-images img:nth-child(3) {
	grid-column: 1 / span 2;
	grid-row: 2;
	max-height: 220px;
	max-width: 80%;
	margin: 0 auto;
}

.why-list {
	flex: 1 1 400px;
	list-style: none;
	padding: 0;
}

.why-list div {
	margin-bottom: 32px
}

.why-list li {
	margin-bottom: 15px;
	padding-left: 20px;
	position: relative;
}

.why-list li::before {
	content: "✔";
	color: #007bff;
	position: absolute;
	left: 0;
	top: 0;
}

.btn-consult {
	display: inline-block;
	margin-top: 20px;
	background-color: #007bff;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 25px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

.btn-consult:hover {
	background-color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
	.why {
		padding: 20px 40px;
		margin-bottom: 0;
	}
	.why-content {
		grid: none;
		flex-direction: column;
	}
	.why-list {
		margin: 0;
	}
}
@media (min-width: 601px) and (max-width: 1024px) {
	.why {
		padding: 20px 40px;
		margin-bottom: 0;
	}
	.why-content {
		grid: none;
		flex-direction: column;
	}
	.why-list {
		margin: 0;
	}
}
@media (min-width: 1025px) {
}

/* SECTION STATS*/
.stats {
	text-align: center;
	padding: 0 40px;
}

.stats h2 {
	font-size: 1.5rem;
	line-height: 1.4;
	max-width: 600px;
	margin: auto;
}

.stats .highlight {
	color: #007bff;
	font-weight: bold;
}

.stats-sub {
	font-size: 1rem;
	color: #555;
	max-width: 750px;
	margin: 0 auto 30px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-item {
	background: #f8f8f8;
	border-radius: 8px;
	padding: 20px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-item h3 {
	font-size: 1.6rem;
	color: #007bff;
	margin-bottom: 5px;
}

.stat-item p {
	margin: 0;
	font-size: 0.95rem;
}

.stats-image img {
	width: 100%;
	border-radius: 8px;
	display: block;
	margin: 10px 0px;
}

/* Responsive */
@media (max-width: 768px) {
	.stats h2 {
		font-size: 1.5rem;
	}
	.stat-item h3 {
		font-size: 1.4rem;
	}
}

// css của submenu
/* ===== BẮT ĐẦU CSS CHO SUBMENU (MÃ MỚI) ===== */
.site-header.header-container {
    position: relative;
}
/* --- CONTAINER BAO BỌC SUBMENU --- */
#product-submenu {
    position: fixed !important;   /* Quay lại dùng fixed để căn theo màn hình */
    top: 68px !important;        /* Khoảng cách từ đỉnh màn hình (bằng chiều cao header) */
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;    /* Cho nó cao hết màn hình để lớp nền mờ che phủ */
    z-index: 999 !important;
    
    display: flex !important;
    justify-content: center !important; /* Căn giữa component .container */
	align-items: flex-start !important;  /* Căn component .container về phía trên */

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#product-submenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Đảm bảo component .container không bị quá rộng trên màn hình nhỏ */
#product-submenu .container {
	display: flex;
	justify-content: center;
	background: #c7c7c7;
	border-radius: 16px;
    height: fit-content; /* Chiều cao tự động theo nội dung */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
	padding: 20px
}

#product-submenu.show .container {
    transform: translateY(0);
}


/* --- ĐỊNH NGHĨA LẠI CSS CỦA COMPONENT BÊN TRONG SUBMENU --- */
/* Thêm `.product-submenu-container` vào trước mỗi selector để tránh xung đột style */

/* CỘT BÊN TRÁI (SIDEBAR) */
.product-submenu-container .sidebar {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    width: 320px;
    flex-shrink: 0;
	border-radius: 16px;
}

.product-submenu-container .sidebar .logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
	width: 100%;
}

.product-submenu-container .sidebar .logo-icon {
    width: 48px;
    height: 48px;
    background-color: #3b82f6;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 24px;
    color: white;
}

.product-submenu-container .sidebar h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0; /* Ghi đè margin mặc định của theme */
}

.product-submenu-container .sidebar .tagline {
    font-size: 14px;
	color: var(--color-cyan-66, #53EAFD);
	font-family: Segoe Script;
	font-weight: 400;
	font-style: Regular;
	font-size: 20.84px;
	leading-trim: NONE;
	line-height: 28px;
	letter-spacing: 0%;

}

.product-submenu-container .sidebar .description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.product-submenu-container .sidebar .features {
    list-style: none;
    margin: 0 0 40px 0; /* Ghi đè margin mặc định của theme */
    padding: 0;
}

.product-submenu-container .sidebar .features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.product-submenu-container .sidebar .features i {
    color: #3b82f6;
    margin-right: 12px;
    font-size: 12px;
}

.product-submenu-container .sidebar .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* CỘT Ở GIỮA (MENU) */
.product-submenu-container .main-content {
    padding: 0 20px;
    width: 380px;
    flex-shrink: 0;
	border-radius: 16px;
}

.product-submenu-container .menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e2e8f0;
}

.product-submenu-container .menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.product-submenu-container .menu-item .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 20px;
}

/* Màu sắc cho từng icon */
.product-submenu-container .book-icon { background-color: #fef3c7; color: #f59e0b; }
.product-submenu-container .cap-icon { background-color: #dbeafe; color: #3b82f6; }
.product-submenu-container .cap-icon-dark { background-color: #c7d2fe; color: #4f46e5; }
.product-submenu-container .user-icon { background-color: #e0e7ff; color: #6366f1; }

.product-submenu-container .menu-text h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
	margin: 0;
    clear: none; /* Ghi đè thuộc tính clear của theme */
}

.product-submenu-container .menu-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* CỘT BÊN PHẢI (CARD THÔNG TIN) */
.product-submenu-container .info-card {
    background: linear-gradient(135deg, #CEFAFE 0%, #BEDBFF 100%);
    padding: 20px;
    border-left: 1px solid #e2e8f0;
    width: 380px;
    flex-shrink: 0;
	border-radius: 16px;
}

.product-submenu-container .info-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.product-submenu-container .card-content {
    padding: 0 10px;
}

.product-submenu-container .card-tag {
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
    display: block;
}

.product-submenu-container .info-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 15px;
    clear: none; /* Ghi đè thuộc tính clear của theme */
}

.product-submenu-container .info-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-submenu-container .info-card .read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.product-submenu-container .info-card .read-more i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.product-submenu-container .info-card .read-more:hover i {
    transform: translateX(4px);
}


/* ===================================================
	CSS CHO MODAL KHẢO SÁT THÔNG TIN
   =================================================== */

/* Lớp 'hidden' để ẩn/hiện modal */
.survey-modal-wrapper.hidden {
	display: none;
}

/* Lớp phủ nền mờ cho toàn màn hình */
.survey-modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2000;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center; /* Trở lại căn giữa */
	padding: 20px; /* Padding chung */
}

/* Viền xám đậm bao quanh modal */
.survey-modal {
	border-radius: 12px;
	padding: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	max-width: 500px;
	width: 100%;
	
	/* Hiệu ứng trượt xuống */
	transform: translateY(-20px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.survey-modal-wrapper:not(.hidden) .survey-modal {
	transform: translateY(0);
	opacity: 1;
}

/* Nội dung modal (phần màu trắng) */
.survey-modal-content {
	background-color: #ffffff;
	border-radius: 10px;
	position: relative;

	/* --- THAY ĐỔI QUAN TRỌNG --- */
	display: flex; /* Bật Flexbox */
	flex-direction: column; /* Xếp chồng lên nhau */
	max-height: 90vh; /* Giới hạn chiều cao tối đa là 90% màn hình */
    overflow: hidden; /* Ẩn mọi thứ tràn ra khỏi box trắng */
}

/* --- Nút đóng (X) --- */
.survey-modal .close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10; /* Đảm bảo nó nằm trên header */
	background: none;
	border: none;
	font-size: 28px;
	font-weight: 300;
	color: #adb5bd;
	cursor: pointer;
	line-height: 1;
}

/* --- Form (Bây giờ là container chính) --- */
.survey-modal .modal-form {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Đảm bảo form không bị tràn */
}

/* --- Header (đứng yên) --- */
.survey-modal .modal-header {
	padding: 30px 30px 0 30px; /* Thêm padding cho header */
    flex-shrink: 0; /* Không cho header co lại */
}
.survey-modal .modal-header h2 {
	color: #212529;
	font-size: 24px;
	margin: 0 0 10px 0;
}
.survey-modal .modal-header p {
	color: #6c757d;
	font-size: 16px;
	margin-bottom: 20px; /* Giảm margin 1 chút */
}

/* --- VÙNG CUỘN (PHẦN MỚI) --- */
.survey-modal .form-scroll-area {
    overflow-y: auto; /* Chỉ cho phép vùng này cuộn dọc */
    flex-grow: 1; /* Tự động chiếm đầy không gian còn lại */
    padding: 0 30px; /* Thêm padding trái/phải cho nội dung form */
}

/* --- Form --- */
.survey-modal .form-group {
	margin-bottom: 20px;
}

/* Căn lề cho form-group cuối cùng để không dính sát */
.survey-modal .form-scroll-area .form-group:last-child {
    margin-bottom: 20px;
}

.survey-modal .form-group label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #495057;
	margin-bottom: 8px;
}
.survey-modal .form-group label span {
	color: #dc3545;
}

/* --- Ô nhập liệu (Input & Select) --- */
.survey-modal input[type="text"],
.survey-modal input[type="tel"],
.survey-modal input[type="email"],
.survey-modal select {
	width: 100%;
	height: 48px;
	padding: 0 15px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	font-size: 16px;
	font-family: 'Be Vietnam Pro', sans-serif;
	background-color: #f8f9fa;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.survey-modal input::placeholder {
	color: #adb5bd;
}
.survey-modal input:focus,
.survey-modal select:focus {
	border-color: #80bdff;
	box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
	outline: none;
	background-color: #fff;
}

/* --- Tùy chỉnh ô Select (Dropdown) --- */
.survey-modal .select-wrapper {
	position: relative;
}
.survey-modal select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	cursor: pointer;
}
.survey-modal .select-wrapper::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 15px;
	margin-top: -5px;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #868e96;
	pointer-events: none;
}

/* --- Nút bấm (Footer - Đứng yên) --- */
.survey-modal .form-footer {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 0; /* Bỏ margin-top cũ */
    padding: 20px 30px; /* Thêm padding cho footer */
    border-top: 1px solid #e9ecef; /* Thêm đường kẻ ngăn cách */
    flex-shrink: 0; /* Không cho footer co lại */
}

.survey-modal .btn {
	padding: 12px 25px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.survey-modal .btn-cancel {
	background-color: #fff;
	border: 1px solid #dee2e6;
	color: #495057;
}
.survey-modal .btn-cancel:hover {
	background-color: #f8f9fa;
}

.survey-modal .btn-submit {
	color: #fff;
	background: linear-gradient(90deg, #009cff, #00c6ff);
	box-shadow: 0 4px 10px rgba(0, 156, 255, 0.3);
}
.survey-modal .btn-submit:hover {
	opacity: 0.9;
}