/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */
/* Service Table Styles */
/* Bảng Giá Dịch Vụ - Chỉ áp dụng trong class cha này */
/* ========================
   BẢNG GIÁ DỊCH VỤ - PRICE PAGE
   Chỉ áp dụng trong .price-page để tránh xung đột
   ======================== */

.price-page #page-bodyhtml {
  margin: 3rem 0; /* space-y-12 tương đương */
}

.price-page .small-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 60px;
  width: 80%;
  max-width: 281px;
}

.price-page .page-header {
  background-color: #0770ba0d;
  padding-top: 7rem;
  padding-bottom: 7rem;
  text-align: center;
}

.price-page #page-bodyhtml {
  max-width: 56rem; /* max-w-4xl = 896px */
  margin-left: auto; /* mx-auto */
  margin-right: auto;
  padding-left: 1rem; /* px-4 = 16px */
  padding-right: 1rem;
  margin-top: -2rem; /* -mt-8 = -32px */
}

.price-page iframe {
  display: none;
}

.price-page h3 {
  background: linear-gradient(
    to right,
    #0770ba,
    #055a96
  ); /* bg-gradient-to-r from-[#0770ba] to-[#055a96] */
  color: white !important; /* chữ trắng */
  font-size: 1.25rem; /* text-xl */
  font-weight: bold;
  padding: 1rem 1.5rem; /* py-4 px-6 */
  margin: 0 0 0 0; /* loại bỏ margin mặc định */
  border-radius: 0.75rem 0.75rem 0 0; /* bo góc trên (rounded-t-xl) */
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 nếu bạn muốn thêm icon sau này */
}

.price-page figure.table {
  display: block;
  background: white;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 3rem;
}

.price-page figure.table::before td {
  display: table-cell;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.price-page figure.table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

/* Các dòng dữ liệu */
.price-page figure.table tbody tr {
  display: table-row;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.3s ease;
}

.price-page figure.table tbody tr:nth-child(n + 2):hover {
  background-color: #f0f9ff; /* hover nhẹ màu xanh nhạt */
}

.price-page figure.table tbody tr:last-child {
  border-bottom: none;
}

/* Các ô dữ liệu */
.price-page figure.table td {
  padding: 1rem 1.5rem;
  text-align: left;
  vertical-align: middle;
}

.price-page figure.table tr:nth-child(1) {
  background-color: #f9fafb;
  color: #4b5563 !important;
  text-transform: uppercase;
}

.price-page figure.table tr:nth-child(1) td:nth-child(3) {
  text-align: right;
}

/* Cột 1: Dịch vụ */
.price-page figure.table tr:nth-child(n + 2) td:nth-child(1) {
  font-weight: 500;
  color: #1f2937;
  width: 50%;
}

/* Cột 2: Đơn vị */
.price-page figure.table tr:nth-child(n + 2) td:nth-child(2) {
  color: #6b7280;
  font-size: 0.875rem;
  width: 20%;
}

/* Cột 3: Chi phí */
.price-page figure.table tr:nth-child(n + 2) td:nth-child(3) {
  font-weight: bold;
  color: #0770ba;
  text-align: right;
  width: 30%;
}

/* Responsive: cuộn ngang trên mobile */
@media (max-width: 768px) {
  .price-page figure.table {
    overflow-x: auto;
    display: block;
  }

  .price-page figure.table table {
    min-width: 600px;
  }
}

@media (min-width: 640px) {
  .price-page #page-bodyhtml {
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem;
  }
}

/* lg:px-8 (≥ 1024px) */
@media (min-width: 1024px) {
  .price-page #page-bodyhtml {
    padding-left: 2rem; /* 32px */
    padding-right: 2rem;
  }
}

/* Chỉ áp dụng cho form contact - không ảnh hưởng chỗ khác */
.contact-form-wrapper .contact-tooltip {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0.25rem;
  color: #ef4444 !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
}

/* Ẩn hoàn toàn tooltip cũ của Bootstrap */
.contact-form-wrapper .tooltip {
  display: none !important;
}

/* Viền đỏ khi lỗi */
.contact-form-wrapper .has-error input,
.contact-form-wrapper .has-error textarea,
.contact-form-wrapper .has-error select {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.show-menu #bar1 {
  top: 10px;
  transform: rotate(45deg);
}

.show-menu #bar2 {
  opacity: 0;
}

.show-menu #bar3 {
  top: 10px;
  transform: rotate(-45deg);
}
