/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/










/* ===== FORM CF7 TỔNG THỂ ===== */
.cf7-career-form {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding: 0px;
	margin-bottom: 2px !important;
	max-width: 720px;
}

.cf7-career-form .wpcf7-form {
  max-width: 720px;
  margin: 0 auto;
}


/* ===== LABEL ===== */
.cf7-career-form .cf7-field-label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* ===== INPUT / SELECT / TEXTAREA ===== */
.cf7-career-form .cf7-input,
.cf7-career-form .wpcf7-text,
.cf7-career-form .wpcf7-email,
.cf7-career-form .wpcf7-tel,
.cf7-career-form select.wpcf7-select,
.cf7-career-form .wpcf7-textarea {
  width: 100%;
  margin-bottom: 2px !important;
  box-sizing: border-box;
  padding: 1px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #111827;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.cf7-career-form .cf7-input::placeholder,
.cf7-career-form .wpcf7-textarea::placeholder {
  color: #9ca3af;
}

.cf7-career-form .cf7-input:focus,
.cf7-career-form .wpcf7-textarea:focus,
.cf7-career-form select.wpcf7-select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

/* ===== SELECT: VỊ TRÍ ỨNG TUYỂN ===== */
.cf7-career-form select.wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* ===== TEXTAREA: GHI CHÚ THÊM ===== */
.cf7-career-form .wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== FILE CV: NÚT GIẢ + INPUT THẬT ẨN ===== */
.cf7-career-form span.wpcf7-form-control-wrap[data-name="file-cv"] {
  position: relative;
  display: block;
  margin-top: 4px;
}

/* input file thật – phủ toàn bộ vùng, nhưng ẩn */
.cf7-career-form input.wpcf7-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* nút giả phía ngoài */
.cf7-career-form span.wpcf7-form-control-wrap[data-name="file-cv"]::before {
  content: "⤴  File PDF or DOC";
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #111827;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

/* ===== SUBMIT: NÚT TEAL + ICON SVG ===== */
.cf7-career-form .wpcf7-submit {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
  
  /* Padding cân bằng, hoàn hảo cho icon-ký-tự */
  padding: 1px 18px; 
  
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Sẽ tạo khoảng cách giữa "➤" và "Gửi hồ sơ..." */

  font-size: 15px;
  font-weight: 500;
  text-transform: unset;
  letter-spacing: unset;

  background-color: #009689;
  color: #ffffff; /* Icon "➤" sẽ tự động nhận màu trắng này */
  cursor: pointer;

  box-shadow: 0 8px 18px rgba(2, 150, 164, 0.5);

  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

/* --- ĐÃ XÓA --- */
/* Khối CSS cho .wpcf7-submit::before đã được xóa 
   vì chúng ta không còn dùng nó nữa */

/* Các hiệu ứng :hover và :active vẫn giữ nguyên */
.cf7-career-form .wpcf7-submit:hover {
  background-color: #009689;
  box-shadow: 0 10px 22px rgba(2, 150, 164, 0.65);
  transform: translateY(-1px);
}

.cf7-career-form .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(2, 150, 164, 0.5);
}

/* ===== THÔNG BÁO CF7 ===== */
.cf7-career-form .wpcf7-response-output {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 767px) {
.cf7-career-form {
	padding: 0 19px;
	}
}




/* ===== BẢNG GIÁ ===== */
.aixh-ps-table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* Bảng chính */
.aixh-ps-table {
  width: 100%;
  border-collapse: collapse;
  border: 0 !important; /* xoá border ngoài của theme */=
}

/* Reset border cho TẤT CẢ ô trong bảng này */
.aixh-ps-table th,
.aixh-ps-table td {
  text-align: left;
  padding: 15px;
  white-space: nowrap;
  border: 0 !important;
  text-transform: unset !important;
  letter-spacing: normal !important;
  font-size: 1.0em !important;
}

/* CHỈ DÒNG 1 (thead) có line ở dưới */
.aixh-ps-table thead tr th,
.aixh-ps-table thead tr td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Dòng 2: “Giá / tháng” bình thường, không line */
.aixh-ps-table tbody th {
  font-weight: 400;
}

/* Mobile vẫn là bảng, chỉ cần kéo ngang */
@media (max-width: 767px) {
  .aixh-ps-table {
    min-width: 640px;
  }
}





/* ==== FORM FLAT SUBSCRIBE ==== */

.form-flat {
  width: 100%;                 /* ăn hết khu vực chứa */
  margin: 0 auto;
  display: flex;
  justify-content: center;     /* canh giữa khối form */
}

/* bỏ <br> phá layout ngang */
.form-flat p br {
  display: none;
}

/* Hàng input + nút */
.form-flat p {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  justify-content: center;
}

/* Chiều cao & bo góc dùng chung cho cả input + nút */
.form-flat input[type="email"],
.form-flat .wpcf7-submit.button {
  min-height: 52px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* Ô email – chiếm hết phần còn lại */
.form-flat input[type="email"] {
  flex: 1 1 auto;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  padding: 0 18px;
  background-color: #ffffff;
  color: #111827;
  outline: none;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.form-flat input[type="email"]::placeholder {
  color: #9ca3af;
}

.form-flat input[type="email"]:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

/* Nút submit – teal, cùng chiều cao với input */
.form-flat .wpcf7-submit.button {
  flex: 0 0 auto;
  padding: 0 32px;
  border: none;
  background-color: #1a73e8 !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.form-flat .wpcf7-submit.button:hover {
  background-color: #1a73e8 !important;
  box-shadow: 0 14px 34px rgba(2, 150, 164, 0.7);
}

/* Cho hàng form làm mốc để định vị spinner */
.form-flat p {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  position: relative;              /* THÊM DÒNG NÀY */
}

/* Đưa spinner ra khỏi flex-flow, overlay nhẹ bên phải nút */
.form-flat .wpcf7-spinner {
  position: absolute;
  right: 8px;                      /* chỉnh xa/gần nút tuỳ ý */
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
}


/* Mobile: ép nút xuống dòng, full width, giữ chiều cao đẹp */
@media (max-width: 640px) {
  .form-flat p {
    flex-direction: column;
    align-items: stretch;
	gap: 4px;
  }

  .form-flat .wpcf7-submit.button {
    width: 100%;
  }
}










/* --- AIHUB DASHBOARD CSS --- */

/* Reset cơ bản cho vùng chứa */
.aihub-dashboard-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    background-color: transparent;
    color: #333;
    line-height: 1.5;
}

/* Đảm bảo box-sizing chuẩn */
.aihub-dashboard-wrapper *, 
.aihub-dashboard-wrapper *::before, 
.aihub-dashboard-wrapper *::after {
    box-sizing: border-box;
}

/* --- HEADER --- */
.aihub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.aihub-title {
    font-size: 15px;
    font-weight: 300;
    color: #555;
    margin: 0 !important; /* !important để đè margin mặc định của Flatsome */
    padding: 0;
}

.aihub-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #28c76f;
    font-weight: 600;
}

.aihub-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: #28c76f;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(40, 199, 111, 0.3);
    animation: aihub-dot-pulse 1.6s ease-out infinite;
}

/* --- GRID SYSTEM (DESKTOP DEFAULT) --- */
.aihub-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Cột trên Desktop */
    gap: 13px;
    margin-bottom: 15px;
}

/* --- CARDS --- */
.aihub-card {
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
    border: none;
}

.aihub-card:hover {
    transform: translateY(-3px);
}

/* Màu nền các thẻ */
.aihub-card-blue { background-color: #eef6ff; }
.aihub-card-orange { background-color: #fff8ec; }
.aihub-card-green { background-color: #effff4; }
.aihub-card-red { background-color: #fff5f5; }

.aihub-card-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
}

.aihub-card-value {
    font-size: 16px;
    font-weight: normal;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Chỉ số tăng giảm */
.aihub-trend {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.aihub-trend-up { color: #28c76f; }
.aihub-trend-down { color: #ea5455; }
.aihub-text-muted { color: #888; font-size: 12px; }

/* --- CHART SECTION --- */
.aihub-chart-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.aihub-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    margin-top: 15px;
    gap: 8px;
}

.aihub-bar {
    background-color: #438ef3;
    border-radius: 4px 4px 0 0;
    flex: 1;
    transition: height 0.5s ease;
}

.aihub-bar:hover {
    opacity: 0.8;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 767px) {
    .aihub-stats-grid {

        gap: 15px;
    }
    
    .aihub-card-value {
        font-size: 15px;
    }
    
    .aihub-card {
        min-height: auto; /* Tự động chiều cao trên mobile */
    }
}


@keyframes aihub-dot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 199, 111, 0.35);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(40, 199, 111, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 199, 111, 0);
    }
}





/* ==== FitBlend CF7 contact form (v2) ==== */
.fitblend-contact-form {
  width: 100%;
}

/* Row 2 cột đầu */
.fitblend-contact-form .fitblend-row {
  display: flex;
  gap: 12px;
  margin-bottom: 3px;
}

.fitblend-contact-form .fitblend-row--2cols .fitblend-field {
  flex: 1 1 0;
}

/* Field chung */
.fitblend-contact-form .fitblend-field {
  margin-bottom: 4px; /* gần nhau hơn */
}

.fitblend-contact-form .fitblend-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;        /* label đậm 500 */
  color: #111827;
}

/* Input / textarea */
.fitblend-contact-form input[type="text"],
.fitblend-contact-form input[type="email"],
.fitblend-contact-form input[type="tel"],
.fitblend-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f5f5f7;
  font-size: 15px;
  color: #111827;
  outline: none;
  height: 45px;            /* ô nhập cao 36px */
  box-shadow: none;        /* bỏ shadow hoàn toàn */
  transition: border-color 0.18s ease, background 0.18s ease;
}

/* Textarea riêng: cao hơn, không ép height 36 */
.fitblend-contact-form textarea {
  height: 100px;
  resize: vertical;
}

/* Select (dropdown chọn gói) */
.fitblend-contact-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 36px 8px 12px; /* chừa chỗ bên phải cho icon */
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #f5f5f7;
  font-size: 15px;
  color: #111827;
  outline: none;
  height: 45px;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease;

  /* Ẩn arrow mặc định, dùng arrow custom */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Mũi tên xuống custom bằng SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
}

/* Focus giống input */
.fitblend-contact-form select:focus {
  border-color: #1a73e8;
  background-color: #ffffff;
  box-shadow: none;
}

/* Option bên trong */
.fitblend-contact-form select option {
  color: #111827;
}


/* Placeholder */
.fitblend-contact-form ::placeholder {
  color: #9ca3af;
}

/* Focus */
.fitblend-contact-form input[type="text"]:focus,
.fitblend-contact-form input[type="email"]:focus,
.fitblend-contact-form input[type="tel"]:focus,
.fitblend-contact-form textarea:focus {
  border-color: #1a73e8;
  background: #ffffff;
  box-shadow: none;        /* không shadow khi focus */
}

/* Submit button */
.fitblend-contact-form .fitblend-submit-wrap {
  margin-top: 6px;
}

.fitblend-contact-form .wpcf7-submit {
  width: 100%;
  margin-bottom: 2px;
  border: none;
  border-radius: 8px;
  background: #1a73e8;
  color: #ffffff;
  height: 48px;            /* nút cao 48px */
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-transform: none;    /* không ép UPPERCASE */
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.fitblend-contact-form .wpcf7-submit:hover {
  background: #1a73e8;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

/* CF7 error text */
.fitblend-contact-form .wpcf7-not-valid-tip {
  margin-top: 3px;
  font-size: 13px;
  color: #dc2626;
}

/* Global CF7 response message */
.fitblend-contact-form ~ .wpcf7-response-output {
  margin-top: 12px;
  border-radius: 8px;
  font-size: 14px;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .fitblend-contact-form .fitblend-row {
    flex-direction: column;
    gap: 8px;
  }
}







/* Card ngoài: full chiều cao col, có hover nổi lên */
.aixh-icon-card {
  margin: 0 auto;
  padding: 32px;
  border-radius: 18px;
  background: #f9fbff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;           /* full chiều cao col chứa nó */
  display: flex;
  border: 1px solid #ececec;
}

.aixh-icon-card__inner {
  flex: 1;
  border-radius: 18px;
  min-height: 230px;
  background: linear-gradient(135deg, #e6f0ff 0%, #f4f8ff 100%);
  display: flex;
  align-items: center;     /* giữa dọc */
  justify-content: center; /* giữa ngang */
}

/* Icon giữa, 80x80 */
.aixh-icon-card__icon {
  width: 90px;
  height: 90px;
  display: block;
  object-fit: contain;
}

/* Hover: card nổi lên */
.aixh-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Mobile */
@media (max-width: 480px) {
  .aixh-icon-card {
    padding: 20px;
    border-radius: 20px;
  }

  .aixh-icon-card__inner {
    min-height: 200px;
    border-radius: 20px;
  }
}
