/* ============================================
   CSS Chân Trang - tiengtrungcoban.com
   Theme: Flatsome
   File: footer-custom.css
   ============================================ */

/* Nhúng Font Be Vietnam Pro */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

/* --- Reset riêng cho Footer để không lỗi giao diện WP --- */
.footer-wrap {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #192437;
  color: #c8d4e3;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
}
.footer-wrap *, .footer-wrap *::before, .footer-wrap *::after {
  box-sizing: border-box;
}
.footer-wrap p, .footer-wrap ul, .footer-wrap li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-wrap a {
  text-decoration: none;
  box-shadow: none;
  outline: none;
}

/* ── Top bar ── */
.footer-wrap .footer-top {
  background: #111e2e;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-wrap .footer-top .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-wrap .footer-top .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #54877e;
  margin-right: 6px;
  white-space: nowrap;
}
.footer-wrap .footer-top .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-wrap .footer-top .tag-list a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(84,135,126,.45);
  color: #9bbfbb;
  font-size: 12.5px;
  transition: all .2s;
}
.footer-wrap .footer-top .tag-list a:hover {
  background: #54877e;
  border-color: #54877e;
  color: #fff;
}

/* ── Main ── */
.footer-wrap .footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

/* ── Partners ── */
.footer-wrap .partners {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  align-items: stretch;
}
.footer-wrap .partner-item {
  flex: 1 1 160px;
  min-width: 140px;
  background: #1e2f43;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}
.footer-wrap .partner-item:hover {
  background: #243a50;
  border-color: rgba(84,135,126,.5);
  transform: translateY(-2px);
}
.footer-wrap .partner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.footer-wrap .pi-red    { background: rgba(215,93,93,.2);   color: #e07070; }
.footer-wrap .pi-teal   { background: rgba(84,135,126,.2);  color: #54877e; }
.footer-wrap .pi-blue   { background: rgba(66,133,244,.2);  color: #7ab1f5; }
.footer-wrap .pi-gold   { background: rgba(215,160,50,.2);  color: #d4a050; }
.footer-wrap .pi-green  { background: rgba(46,125,82,.2);   color: #4caf80; }
.footer-wrap .pi-orange { background: rgba(192,92,26,.2);   color: #e0834a; }
.footer-wrap .pi-purple { background: rgba(107,63,160,.2);  color: #a57fd4; }
.footer-wrap .pi-pink   { background: rgba(176,48,112,.2);  color: #d4689a; }
.footer-wrap .partner-name {
  font-size: 12px;
  font-weight: 600;
  color: #c8d4e3;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}

/* ── Divider ── */
.footer-wrap .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84,135,126,.4) 20%, rgba(84,135,126,.4) 80%, transparent);
  margin-bottom: 36px;
}

/* ── Location grid ── */
.footer-wrap .location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.footer-wrap .loc-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #d75d5d;
  text-transform: uppercase;
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(215,93,93,.25);
}
.footer-wrap .loc-heading svg {
  width: 14px;
  height: 14px;
  fill: #d75d5d;
  flex-shrink: 0;
}
.footer-wrap .loc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.footer-wrap .loc-list li {
  margin-bottom: 5px;
}
.footer-wrap .loc-list a {
  color: #8fa8be;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.footer-wrap .loc-list a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #54877e;
  flex-shrink: 0;
  transition: background .15s;
}
.footer-wrap .loc-list a:hover {
  color: #e8f0ee;
}
.footer-wrap .loc-list a:hover::before {
  background: #d75d5d;
}
.footer-wrap .loc-list span {
  color: #5c7080;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-wrap .loc-list span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a4e5e;
  flex-shrink: 0;
}

/* ── Bottom grid ── */
.footer-wrap .bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0;
}
.footer-wrap .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-wrap .logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #d75d5d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.footer-wrap .logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #e0e9f3;
  line-height: 1.2;
}
.footer-wrap .logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #54877e;
}
.footer-wrap .brand-desc {
  color: #6a8499;
  font-size: 13px;
  line-height: 1.7;
}
.footer-wrap .col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9bb5c8;
  margin-bottom: 14px;
}
.footer-wrap .quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-wrap .quick-tags a {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid rgba(84,135,126,.35);
  border-radius: 4px;
  color: #7aa89f;
  font-size: 12px;
  transition: all .18s;
}
.footer-wrap .quick-tags a:hover {
  background: #54877e;
  border-color: #54877e;
  color: #fff;
}

/* ══════════════════════════════════════
   Contact Form 7 — Override Flatsome
   ══════════════════════════════════════ */
.footer-wrap .wpcf7 {
  margin: 0 !important;
  padding: 0 !important;
}
.footer-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-wrap .wpcf7-form p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tất cả field: text, email, tel, number, url, select, textarea */
.footer-wrap .wpcf7-form input[type="text"],
.footer-wrap .wpcf7-form input[type="email"],
.footer-wrap .wpcf7-form input[type="tel"],
.footer-wrap .wpcf7-form input[type="number"],
.footer-wrap .wpcf7-form input[type="url"],
.footer-wrap .wpcf7-form select,
.footer-wrap .wpcf7-form textarea {
  width: 100% !important;
  background: #111e2e !important;
  background-color: #111e2e !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  color: #c8d4e3 !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  resize: none !important;
  transition: border-color .15s !important;
}

/* Placeholder */
.footer-wrap .wpcf7-form input[type="text"]::placeholder,
.footer-wrap .wpcf7-form input[type="email"]::placeholder,
.footer-wrap .wpcf7-form input[type="tel"]::placeholder,
.footer-wrap .wpcf7-form input[type="number"]::placeholder,
.footer-wrap .wpcf7-form input[type="url"]::placeholder,
.footer-wrap .wpcf7-form textarea::placeholder {
  color: #3e5568 !important;
  opacity: 1 !important;
}

/* Focus */
.footer-wrap .wpcf7-form input[type="text"]:focus,
.footer-wrap .wpcf7-form input[type="email"]:focus,
.footer-wrap .wpcf7-form input[type="tel"]:focus,
.footer-wrap .wpcf7-form input[type="number"]:focus,
.footer-wrap .wpcf7-form input[type="url"]:focus,
.footer-wrap .wpcf7-form select:focus,
.footer-wrap .wpcf7-form textarea:focus {
  border-color: #54877e !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Textarea height */
.footer-wrap .wpcf7-form textarea {
  height: 70px !important;
  min-height: 70px !important;
}

/* Select: mũi tên tùy chỉnh */
.footer-wrap .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2354877e' d='M5 6L0 0h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
  cursor: pointer !important;
}
.footer-wrap .wpcf7-form select option {
  background: #111e2e !important;
  background-color: #111e2e !important;
  color: #c8d4e3 !important;
}

/* Nút submit */
.footer-wrap .wpcf7-form input[type="submit"] {
  width: auto !important;
  background: #d75d5d !important;
  background-color: #d75d5d !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fff !important;
  padding: 9px 20px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  transition: background .15s !important;
}
.footer-wrap .wpcf7-form input[type="submit"]:hover {
  background: #c24d4d !important;
  background-color: #c24d4d !important;
}

/* Thông báo lỗi / thành công */
.footer-wrap .wpcf7-not-valid-tip {
  color: #e07070 !important;
  font-size: 11px !important;
  margin-top: 3px !important;
}
.footer-wrap .wpcf7-response-output {
  border: none !important;
  padding: 6px 0 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  color: #54877e !important;
}

/* ── Footer Bottom ── */
.footer-bottom {
  background: #111e2e;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px;
  text-align: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  color: #4e6578;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: #d4a050;
  text-decoration: none;
  font-weight: 600;
}
.footer-bottom a:hover {
  color: #e8b860;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-wrap .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-wrap .location-grid {
    grid-template-columns: 1fr;
  }
  .footer-wrap .bottom-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-wrap .partners {
    gap: 8px;
  }
  .footer-wrap .partner-item {
    flex: 1 1 140px;
  }
}
@media (max-width: 480px) {
  .footer-wrap .footer-main {
    padding: 32px 16px 24px;
  }
  .footer-bottom {
    padding: 14px 16px;
  }
}

/* Fix Chrome autofill trắng/vàng trong footer */
.footer-wrap .wpcf7-form input:-webkit-autofill,
.footer-wrap .wpcf7-form input:-webkit-autofill:hover,
.footer-wrap .wpcf7-form input:-webkit-autofill:focus,
.footer-wrap .wpcf7-form input:-webkit-autofill:active,
.footer-wrap .wpcf7-form select:-webkit-autofill,
.footer-wrap .wpcf7-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #111e2e inset !important;
  box-shadow: 0 0 0 1000px #111e2e inset !important;
  -webkit-text-fill-color: #c8d4e3 !important;
  caret-color: #c8d4e3 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Fix chiều cao ô select CF7 trong footer */
.footer-wrap .wpcf7-form select {
  height: 40px !important;
  line-height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}