/* =========================================================
   Footer AAS (bố cục theo trang /gioi-thieu-aas/)
   - Mọi selector nằm dưới .ft và dùng tiền tố ft- để không đụng Tailwind CDN / main.css của theme.
   - Markup: template-parts/site-footer.php · Form bản tin: Contact Form 7 (được style lại ở cuối file).
   ========================================================= */
.ft {
  --ft-navy: #203567;
  --ft-navy-800: #172a52;
  --ft-navy-900: #0f1d3d;
  --ft-green: #8cc63f;
  --ft-ease: cubic-bezier(.2, .7, .2, 1);
  position: relative; padding: 56px 0 0; color: #e3e9f3; overflow: hidden; isolation: isolate;
  font-family: "Bai Jamjuree", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.75; text-align: left;
  background: radial-gradient(ellipse at 70% 30%, rgba(47, 90, 160, .55), transparent 60%), linear-gradient(135deg, var(--ft-navy-900), var(--ft-navy-800) 50%, #10224a);
}
.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.ft ul { margin: 0; padding: 0; list-style: none; }
.ft li { margin: 0; }
.ft p { margin: 0; }
.ft h2 { margin: 0; font-family: inherit; line-height: 1.3; letter-spacing: -.02em; }
.ft a { display: inline; gap: 0; color: inherit; text-decoration: none; background: none; transition: color .2s; } /* theme đặt a { display: flex; gap: 8px } */
.ft a:hover { color: var(--ft-green); }
.ft img { display: block; max-width: 100%; height: auto; }
.ft svg { width: 20px; height: 20px; flex-shrink: 0; color: #e3e9f3; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ft :focus-visible { outline: 3px solid var(--ft-green); outline-offset: 3px; border-radius: 6px; }

.ft .ft-bg { position: absolute; right: 0; top: 0; z-index: -1; width: 78%; height: 100%; max-width: none; object-fit: cover; object-position: left center; opacity: .1; mix-blend-mode: screen; filter: hue-rotate(95deg) saturate(.6) blur(1px); pointer-events: none; }
.ft .ft-container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.ft-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1.1fr); gap: 40px 64px; }

/* Cột 1: logo · liên hệ · mạng xã hội */
.ft .ft-logo { display: inline-block; }
.ft .ft-logo img { width: 176px; transition: transform .3s var(--ft-ease); }
.ft .ft-logo:hover img { transform: scale(1.04); }
.ft .ft-contact { display: grid; gap: 14px; margin: 24px 0 26px; font-size: 16px; }
.ft .ft-contact li { display: flex; align-items: center; gap: 14px; }
.ft .ft-contact b { color: #fff; font-weight: 500; }
.ft .ft-contact-img { width: 20px; height: 20px; }
.ft .ft-socials { display: flex; flex-wrap: wrap; gap: 18px; }
.ft .ft-socials a { display: grid; place-items: center; width: 24px; height: 24px; transition: transform .3s var(--ft-ease); }
.ft .ft-socials a svg { width: 20px; height: 20px; color: #fff; transition: color .25s; }
.ft .ft-socials a img { width: 20px; height: 20px; }
.ft .ft-socials a:hover { transform: translateY(-4px) scale(1.1); }
.ft .ft-socials a:hover svg { color: var(--ft-green); }

/* Cột 2: trụ sở / chi nhánh */
.ft .ft-offices { display: grid; gap: 22px; align-content: start; }
.ft .ft-offices-title { font-size: 16px; font-weight: 600; color: #fff; }
.ft .ft-office { display: flex; gap: 14px; }
.ft .ft-office > svg { margin-top: 2px; }
.ft .ft-office h2 { margin: 0 0 10px; font-size: 16px; color: #fff; font-weight: 600; }
.ft .ft-office p { font-size: 16px; line-height: 1.75; color: #e3e9f3; }

/* Cột 3: bản tin + ứng dụng */
.ft .ft-newsletter h2, .ft .ft-apps-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #fff; }
.ft .ft-apps-title { margin-top: 30px; }
.ft .ft-apps { display: flex; flex-wrap: nowrap; gap: 20px 48px; }
.ft .ft-app { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.6; white-space: nowrap; color: #e3e9f3; }
.ft .ft-qr { flex-shrink: 0; width: 64px; height: 64px; background: #fff; overflow: hidden; transition: transform .35s var(--ft-ease), box-shadow .35s; }
.ft .ft-qr img { width: 100%; height: 100%; object-fit: contain; }
.ft .ft-app:hover .ft-qr { transform: scale(1.1); box-shadow: 0 0 0 3px var(--ft-green); }

/* Form bản tin (Contact Form 7): ô email + nút Gửi trong 1 khung bo tròn */
.ft .footer-form { margin: 0; }
.ft .footer-form > div.relative {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(255, 255, 255, .08);
  transition: border-color .25s, background-color .25s;
}
.ft .footer-form > div.relative:focus-within { border-color: var(--ft-green); background: rgba(255, 255, 255, .12); }
.ft .footer-form input[type="email"], .ft .footer-form input[type="text"] {
  flex: 1; min-width: 0; width: auto; height: auto; min-height: 34px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none;
  color: #fff; font: inherit; font-size: 14px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.ft .footer-form input::placeholder { color: #a9b6cc; opacity: 1; }
.ft .footer-form input:focus { outline: none; }
.ft .footer-form .wpcf7-submit {
  all: unset; box-sizing: border-box; position: static; transform: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  height: 34px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--ft-navy-900); color: var(--ft-green); box-shadow: inset 0 0 0 1px var(--ft-green);
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.ft .footer-form .wpcf7-submit::before, .ft .footer-form .wpcf7-submit::after { content: none !important; }
.ft .footer-form .wpcf7-submit:hover { background: var(--ft-green); color: var(--ft-navy-900); }
.ft .footer-form .wpcf7-submit:focus-visible { outline: 3px solid var(--ft-green); outline-offset: 3px; }
.ft .footer-form .wpcf7-submit[disabled] { cursor: not-allowed; }
.ft .footer-form .wpcf7-submit .inner { all: unset; display: inline-flex; align-items: center; gap: 8px; }
.ft .footer-form .wpcf7-submit .inner::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ft .footer-form .wpcf7-submit figure { display: none; }
.ft .footer-form .wpcf7-submit .text { all: unset; }
.ft .footer-form .custom-message, .ft .custom-message { display: block; margin-top: 8px; }

/* Thanh dưới cùng */
.ft .ft-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600;
}
.ft .ft-bottom nav { display: flex; flex-wrap: wrap; }
.ft .ft-bottom nav a { padding: 0 16px; color: #d0d9e7; }
.ft .ft-bottom nav a:first-child { padding-left: 0; }
.ft .ft-bottom nav a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
.ft .ft-bottom p { display: flex; gap: 16px; color: #fff; }
.ft .ft-bottom p a { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .25); }
.ft .ft-bottom p span:only-child, .ft .ft-bottom p a:only-child { padding-left: 0; border-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ft .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft .ft-side { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .ft .ft-container { width: calc(100% - 40px); }
  .ft .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .ft .ft-apps { gap: 16px; }
  .ft .ft-app { gap: 12px; }
  .ft .ft-qr { width: 56px; height: 56px; }
  .ft .ft-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 90px; }
  .ft .ft-bottom nav { gap: 6px 20px; }
  .ft .ft-bottom nav a { padding: 0; }
  .ft .ft-bottom nav a + a, .ft .ft-bottom p a { border-left: 0; }
  .ft .ft-bottom p { flex-wrap: wrap; gap: 4px 12px; }
  .ft .ft-bottom p a { padding-left: 0; }
}


/* =========================================================
   Nút nổi (FAB) kiểu trang /gioi-thieu-aas/ – 2 nhóm menu + nút lên đầu trang
   Markup: template-parts/site-fab.php · JS: assets/js/site-fab.js
   ========================================================= */
.ftf {
  --ftf-navy: #203567; --ftf-navy-900: #0f1d3d; --ftf-green: #8cc63f; --ftf-green-600: #669f3f; --ftf-green-700: #4d7a26; --ftf-off: #f1f7f3; --ftf-line: #dde5e1;
  --ftf-ease: cubic-bezier(.2, .7, .2, 1);
  position: fixed; right: 18px; bottom: 22px; z-index: 90; display: grid; gap: 10px; justify-items: end;
  font-family: "Bai Jamjuree", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5;
}
.ftf *, .ftf *::before, .ftf *::after { box-sizing: border-box; }
.ftf ul { margin: 0; padding: 0; list-style: none; }
.ftf a { color: inherit; text-decoration: none; background: none; display: flex; }
.ftf button { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.ftf svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ftf .ftf-group { position: relative; }
.ftf .ftf-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 50px; min-width: 50px; padding: 0 13px; border-radius: 999px;
  background: var(--ftf-navy); color: #fff; box-shadow: 0 12px 26px -10px rgba(15, 29, 61, .6);
  transition: background-color .25s, gap .3s var(--ftf-ease), transform .3s var(--ftf-ease);
}
.ftf .ftf-green { background: var(--ftf-green); color: var(--ftf-navy-900); }
.ftf .ftf-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 700; transition: max-width .35s var(--ftf-ease); }
.ftf .ftf-btn:hover, .ftf .ftf-btn[aria-expanded="true"] { gap: 8px; transform: translateY(-2px); }
.ftf .ftf-btn:hover .ftf-label, .ftf .ftf-btn[aria-expanded="true"] .ftf-label { max-width: 110px; }
.ftf .ftf-green::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--ftf-green); animation: ftf-ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ftf-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
.ftf .ftf-menu {
  position: absolute; right: calc(100% + 10px); bottom: 0; display: grid; gap: 4px; min-width: 230px; padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 28px 60px -22px rgba(15, 29, 61, .38); border: 1px solid var(--ftf-line);
  opacity: 0; visibility: hidden; transform: translateX(10px) scale(.96); transform-origin: right bottom;
  transition: opacity .22s, transform .25s var(--ftf-ease), visibility .22s;
}
.ftf .ftf-group.ftf-open .ftf-menu { opacity: 1; visibility: visible; transform: none; }
.ftf .ftf-menu a {
  align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ftf-navy); white-space: nowrap;
  transition: background-color .2s, color .2s, padding-left .25s var(--ftf-ease);
}
.ftf .ftf-menu svg { width: 18px; height: 18px; color: var(--ftf-green-600); }
.ftf .ftf-menu a:hover { background: var(--ftf-off); color: var(--ftf-green-700); padding-left: 16px; }
.ftf .ftf-top {
  background: #fff; color: var(--ftf-navy); border: 1px solid var(--ftf-line);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ftf-ease), background-color .2s, color .2s;
}
.ftf .ftf-top.ftf-visible { opacity: 1; visibility: visible; transform: none; }
.ftf .ftf-top:hover { background: var(--ftf-navy); color: var(--ftf-green); transform: none; }
.ftf :focus-visible { outline: 3px solid var(--ftf-green); outline-offset: 3px; border-radius: 12px; }
@media (max-width: 767px) { .ftf { right: 12px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .ftf *, .ftf *::before, .ftf *::after { animation: none !important; transition-duration: .01ms !important; } }
