/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/

/* ===== BẢNG GIÁ XE – CSS DÙNG CHUNG ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

table th {
  background-color: #f8f8f8;
  font-weight: bold;
  color: #1a1a1a;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.call-zalo-fixed {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 9999;
  font-family: sans-serif;
  padding: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.call-zalo-fixed a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 40px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: pulse 1.5s infinite;
  white-space: nowrap;               /* Giữ chữ trên 1 dòng */
  overflow: hidden;                  /* Ẩn phần tràn */
  text-overflow: ellipsis;           /* Hiển thị dấu ... nếu quá dài */
  max-width: 140px;                  /* Giới hạn chiều rộng */
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
}

.call-zalo-fixed .hotline {
  background-color: #e53935;
}

.call-zalo-fixed .zalo {
  background-color: #0084ff;
}

.call-zalo-fixed img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Hiệu ứng */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Desktop: đặt bên phải */
@media (min-width: 1025px) {
  .call-zalo-fixed {
    left: auto;
    right: 20px;
    transform: none;
    max-width: none;
  }

  .call-zalo-fixed a {
    max-width: none;
    text-overflow: initial;
    overflow: visible;
  }
}
a.button.xem-danh-gia-xe {
  color: #002C5F;
  border: 1px solid #002C5F;
  border-radius: 999px;
  background-color: transparent;
  padding: 10px 20px;
  font-size: 14px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
}

a.button.xem-danh-gia-xe:hover {
  background-color: #002C5F;
  color: #fff;
}
/* --- CSS cho Icon SVG Inline (Giữ nguyên như cũ) --- */
.inline-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: bottom;
    margin-right: 0.2em;
}

.inline-svg-icon svg {
    width: 1.2em;
    height: 1.2em;
    stroke: currentColor; 
}

/* === CÁC LỚP MÀU TÙY CHỈNH MỚI === */

/* Lớp màu xanh dương */
.icon-mau-xanh-duong svg {
    stroke: #0073e6; /* Mã màu xanh dương */
}

/* Lớp màu xanh lá cây */
.icon-mau-xanh-la svg {
    stroke: #28a745; /* Mã màu xanh lá cây */
}

/* Lớp màu vàng */
.icon-mau-vang svg {
    stroke: #fcc100; /* Mã màu vàng */
}
/* Lớp màu đỏ */
.icon-mau-do svg {
    stroke: #dc3545; /* Mã màu đỏ */
}



/* ===== CONTACT FORM 7 – TOÀN BỘ STYLE ĐỒNG NHẤT ===== */
.wpcf7 form {
  background-color: transparent;
  padding: 24px;
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  color: #FFD700;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
  box-sizing: border-box;
}
.wpcf7 form label,
.wpcf7 form legend {
  display: block;
  margin-bottom: 6px;
  color: #FFD700;
  font-weight: 600;
  font-size: 15px;
}
.wpcf7 form fieldset {
  border: 1px solid #FFD700;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid #666;
  border-radius: 6px;
  background-color: #1f1f1f;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #ffeba7;
  opacity: 0.8;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #FFD700;
  background-color: rgba(255, 255, 255, 0.05);
  outline: none;
}
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 40px;
}
.wpcf7 select option {
  background-color: #000;
  color: #fff;
}
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: #FFD700;
  margin-right: 8px;
  transform: scale(1.1);
}

/* ==== RADIO MẶC ĐỊNH – CĂN TRÁI TOÀN BỘ ==== */
.wpcf7 .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.wpcf7 .wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFD700;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.wpcf7 input[type="radio"] {
  accent-color: #FFD700;
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Nút gửi */
.wpcf7 input[type="submit"] {
  background-color: #FFD700;
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.3s ease;
  width: 100%;
}
.wpcf7 input[type="submit"]:hover {
  background-color: #ffc400;
}
.wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #FFD700;
  background-color: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  font-size: 14px;
}
.wpcf7-not-valid-tip {
  color: #ff4d4d;
  font-size: 13px;
  margin-top: -6px;
  margin-bottom: 8px;
}

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-overlay.active {
  display: flex;
  animation: fadeInScale 0.3s ease forwards;
}
.popup-content {
  background: #111;
  color: #FFD700;
  padding: 30px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.popup-content form {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.popup-content img.popup-banner {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}
.popup-title {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: center;
}
.popup-subtitle {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}
.popup-close {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  color: #fff;
  font-size: 24px;
  border: none;
  cursor: pointer;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== CĂN GIỮA ẢNH ===== */
.aligncenter,
.wp-block-image img.aligncenter,
.woocommerce div.product div.images img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea,
  .wpcf7 select {
    font-size: 14px;
    padding: 10px 14px;
  }
  .popup-content {
    padding: 20px 15px;
  }
}
@media (max-width: 480px) {
  .wpcf7 .wpcf7-radio {
    justify-content: flex-start;
    gap: 12px 20px;
  }
  .wpcf7 .wpcf7-radio label {
    font-size: 14px;
    gap: 5px;
  }
  .wpcf7 input[type="radio"] {
    width: 16px;
    height: 16px;
  }
}
/* === SLIDER GALLERY FINAL – GALLERY CHI TIẾT BÀI VIẾT & SẢN PHẨM === */
.custom-gallery-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  margin: 24px auto;
  max-width: 100%;
  box-sizing: border-box;
}

.custom-gallery-main {
  position: relative;
  flex: 1;
  max-width: 800px;
}

.custom-gallery-main img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100px;
  max-height: 600px;
  overflow-y: auto;
}

.custom-gallery-thumbs img {
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.custom-gallery-thumbs img.active,
.custom-gallery-thumbs img:hover {
  border-color: #FFD700;
}

/* Nút điều hướng */
.custom-gallery-main .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
}

.custom-gallery-main .nav-arrow.prev { left: 10px; }
.custom-gallery-main .nav-arrow.next { right: 10px; }

/* MOBILE: thumbnail bên dưới */
@media (max-width: 768px) {
  .custom-gallery-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .custom-gallery-thumbs {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .custom-gallery-thumbs img {
    width: 80px;
  }
}