/* ============================================= */
/* CUSTOM OVERRIDES - XE DU LỊCH HÀ NỘI        */
/* ============================================= */

/* ============================================= */
/* MODAL Z-INDEX FIX - Fix backdrop che mất modal */
/* ============================================= */
/* Đảm bảo modal luôn nằm trên backdrop */
.modal {
  z-index: 1060 !important;
}

.modal-dialog {
  z-index: 1065 !important;
}

.modal-content {
  z-index: 1070 !important;
}

/* Backdrop phải nằm dưới modal */
.modal-backdrop {
  z-index: 1055 !important;
}

/* Đảm bảo modal-backdrop.show cũng bị override */
.modal-backdrop.fade,
.modal-backdrop.show {
  z-index: 1055 !important;
}

/* Hotline floating button animation */
.hotline-phone-ring-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999999;
}

.hotline-phone-ring {
  position: relative;
  visibility: visible;
  background-color: transparent;
  width: 110px;
  height: 110px;
  cursor: pointer;
  z-index: 11;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: visibility 0.5s;
  left: 0;
  bottom: 0;
  display: block;
}

.hotline-phone-ring-circle {
  width: 85px;
  height: 85px;
  top: 10px;
  left: 10px;
  position: absolute;
  background-color: transparent;
  border-radius: 100%;
  border: 2px solid #e60808;
  -webkit-animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
  animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
  transition: all 0.5s;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  opacity: 0.5;
}

.hotline-phone-ring-circle-fill {
  width: 55px;
  height: 55px;
  top: 25px;
  left: 25px;
  position: absolute;
  background-color: rgba(230, 8, 8, 0.7);
  border-radius: 100%;
  border: 2px solid transparent;
  -webkit-animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
  animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
  transition: all 0.5s;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

.hotline-phone-ring-img-circle {
  background-color: #e60808;
  width: 33px;
  height: 33px;
  top: 37px;
  left: 37px;
  position: absolute;
  background-size: 20px;
  border-radius: 100%;
  border: 2px solid transparent;
  -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
  animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotline-phone-ring-img-circle .pps-btn-img {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.hotline-phone-ring-img-circle .pps-btn-img img {
  width: 20px;
  height: 20px;
}

.hotline-bar {
  position: absolute;
  background: rgba(230, 8, 8, 0.75);
  height: 40px;
  width: 220px;
  line-height: 40px;
  border-radius: 3px;
  padding: 0 10px;
  background-size: 100%;
  cursor: pointer;
  transition: all 0.8s;
  -webkit-transition: all 0.8s;
  z-index: 9;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50px !important;
  left: 33px;
  bottom: 37px;
  opacity: 0;
  visibility: hidden;
}

.hotline-phone-ring-wrap:hover .hotline-bar {
  opacity: 1;
  visibility: visible;
  left: 45px;
}

.hotline-bar > a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  text-indent: 45px;
  display: block;
  letter-spacing: 0.5px;
  line-height: 40px;
  font-family: Arial;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotline-bar > a:hover,
.hotline-bar > a:active {
  color: #fff;
}

/* Zalo Custom Style */
.hotline-phone-ring-wrap.custom-zalo {
  bottom: 80px;
}

.hotline-phone-ring-wrap.custom-zalo .hotline-phone-ring-circle {
  border-color: #2196f3;
}

.hotline-phone-ring-wrap.custom-zalo .hotline-phone-ring-circle-fill {
  background-color: rgba(33, 150, 243, 0.7);
}

.hotline-phone-ring-wrap.custom-zalo .hotline-phone-ring-img-circle {
  background-color: #2196f3;
}

.hotline-phone-ring-wrap.custom-zalo .hotline-bar {
  background: rgba(33, 150, 243, 0.75);
}

@keyframes phonering-alo-circle-anim {
  0% {
    transform: rotate(0) scale(0.5) skew(1deg);
    opacity: 0.1;
  }
  30% {
    transform: rotate(0) scale(0.7) skew(1deg);
    opacity: 0.5;
  }
  100% {
    transform: rotate(0) scale(1) skew(1deg);
    opacity: 0.1;
  }
}

@keyframes phonering-alo-circle-fill-anim {
  0% {
    transform: rotate(0) scale(0.7) skew(1deg);
    opacity: 0.6;
  }
  50% {
    transform: rotate(0) scale(1) skew(1deg);
    opacity: 0.6;
  }
  100% {
    transform: rotate(0) scale(0.7) skew(1deg);
    opacity: 0.6;
  }
}

@keyframes phonering-alo-circle-img-anim {
  0% {
    transform: rotate(0) scale(1) skew(1deg);
  }
  10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }
  20% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
  30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }
  40% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
  50% {
    transform: rotate(0) scale(1) skew(1deg);
  }
  100% {
    transform: rotate(0) scale(1) skew(1deg);
  }
}

/* Customer activity scroll animation */
.customer-activity {
  animation: slideUp 15s linear infinite;
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus visible for better accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Loading state for buttons */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Datetime picker custom styles */
.xdsoft_datetimepicker {
  font-family: var(--font-primary) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
  border: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
  background: #ffc700 !important;
  color: #000 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td:hover {
  background: rgba(255, 199, 0, 0.2) !important;
}

/* Toast notifications custom */
.toast {
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-primary) !important;
}

.toast-success {
  background-color: #10b981 !important;
}

.toast-error {
  background-color: #ef4444 !important;
}

.toast-warning {
  background-color: #f59e0b !important;
}

/* Print styles */
@media print {
  .floating-buttons,
  .site-header,
  .site-footer,
  .hotline-phone-ring-wrap {
    display: none !important;
  }

  .pricing-card {
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-accent: #ffdd00;
    --shadow-card: 0 0 0 2px #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================= */
/* HOME SECTION ITEMS STYLING                   */
/* ============================================= */
.home_hinh_thuc_item {
  padding: 15px;
  background: rgba(54, 141, 181, 0.05);
  border-radius: 10px;
  border-left: 3px solid #368db5;
  transition: all 0.3s ease;
  height: 100%;
}

.home_hinh_thuc_item:hover {
  background: rgba(54, 141, 181, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(54, 141, 181, 0.15);
}

.home_hinh_thuc_item h3 {
  margin-bottom: 10px;
}

.home_hinh_thuc_item p {
  margin-bottom: 0;
}

/* ============================================= */
/* FOOTER STYLING WITH ENHANCEMENTS              */
/* ============================================= */
.main-footer {
  background: linear-gradient(135deg, #0e70bb, #104282) !important;
  padding: 50px 0 30px;
  margin-top: 40px;
  border-top: 3px solid #ffc700;
  position: relative;
  overflow: hidden;
}

/* Animated background decoration */
.main-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 199, 0, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.main-footer::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 20px) rotate(180deg);
  }
}

/* Footer titles with icons */
.footer-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ff9000;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-contact:hover .footer-title::after,
.footer-about:hover .footer-title::after {
  width: 100px;
}

.footer-title i {
  color: #ff9000;
  font-size: 1.1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Footer contact items */
.footer-address {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.footer-address::before {
  content: "📍";
  position: absolute;
  left: 0;
  animation: bounce 2s ease-in-out infinite;
}

.footer-contact-item {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-contact-item:hover {
  transform: translateX(5px);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.footer-contact-item a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff9000;
  transition: width 0.3s ease;
}

.footer-contact-item a:hover::before {
  width: 100%;
}

.footer-contact-item a:hover {
  color: #ff9000;
}

.footer-contact-item i {
  font-size: 0.9rem;
  width: 20px;
}

/* Footer about section */
.footer-description {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left !important;
}

/* Features grid */
.footer-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-item:hover {
  background: rgba(255, 199, 0, 0.2);
  transform: translateX(5px);
}

.feature-item i {
  color: #ff9000;
  font-size: 0.9rem;
}

/* Bottom footer */
.bottom-footer {
  background: linear-gradient(135deg, #0a5a99, #063366) !important;
  color: #fff;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Corrected selector based on index.php HTML */
.footer-bottom h5 {
  color: #fff;
  font-weight: bold;
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center; /* Center on mobile if needed, or inherited */
}

.footer-bottom i {
  color: #ff9000 !important;
}

.footer-bottom a {
  color: #ff9000 !important;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.info-item i {
  color: #ff9000;
  font-size: 0.9rem;
}

.footer-slogan {
  color: #ff9000;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .main-footer {
    padding: 30px 0 20px;
  }

  /* Removed centering/stacking overrides - now inherits desktop flex-wrap layout */

  .footer-features {
    margin-top: 15px;
  }
}

/* ============================================= */
/* TABLE STYLING FIXES                          */
/* ============================================= */
.dc_table table thead tr {
  border: 2px solid #368db5;
}

.dc_table table thead th {
  border: 1px solid #368db5;
  padding: 12px 10px;
  background: linear-gradient(#0e70bb, #104282);
  color: #fff;
}

/* Override default first-child background */
.dc_table table tr:first-child {
  background: transparent !important;
  color: inherit !important;
}

.dc_table table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.dc_table table tbody td {
  padding: 10px;
}

/* ============================================= */
/* TICKER ANIMATION                             */
/* ============================================= */
/* ============================================= */
/* TICKER ANIMATION                             */
/* ============================================= */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: #fff;
  padding-left: 100%;
  box-sizing: content-box;
  border-radius: 0 0 20px 20px;
  border-bottom: 1px solid #eee;
  height: 50px; /* Fixed height for ticker */
  line-height: 50px;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  box-sizing: content-box;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-name: ticker;
  animation-name: ticker;
  -webkit-animation-duration: 40s;
  animation-duration: 40s;
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 1rem;
  color: #333;
}

@keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

/* ============================================= */
/* CUSTOM GRID SYSTEM FOR BOOKING FORM           */
/* ============================================= */
.custom-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.custom-col {
  position: relative;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.custom-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.custom-col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.custom-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.custom-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .custom-col-3,
  .custom-col-4,
  .custom-col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .custom-row .form-group {
    margin-bottom: 15px;
  }
}

/* Fix for form alignment */
.form-grid-container {
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.form-control {
  width: 100%;
  height: 45px; /* Consistent height */
}

.btn_datxe {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-transform: uppercase;
  background: #ff9000;
  border: none;
  color: #fff;
  transition: none; /* Disable transition to prevent flicker */
  cursor: pointer;
}

.btn_datxe:hover {
  background: #ff9000;
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* ============================================= */
/* MOBILE RESPONSIVE TABLE FIXES                */
/* ============================================= */
@media screen and (max-width: 768px) {
  /* Make table scrollable horizontally */
  .kc_text_block.dc_table,
  .dc_table {
    display: block !important; /* Override inline-block from style.css */
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .dc_table table {
    min-width: 650px; /* Force minimum width to prevent squashing */
    width: 100% !important;
    border-collapse: collapse; /* Ensure borders render correctly */
  }

  /* Improve cell spacing */
  .dc_table table th,
  .dc_table table td {
    padding: 8px 5px !important;
    font-size: 13px;
    white-space: normal; /* Allow text wrapping */
    border: 1px solid #ddd;
  }

  /* Fix header background */
  .dc_table table thead th {
    white-space: nowrap; /* Keep headers on one line if possible */
  }

  /* Highlight price column */
  .dc_table table td:nth-child(4) {
    font-weight: bold;
    color: #ff9000;
  }
}

/* Global mobile fix to prevent horizontal scroll on body */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .site-header,
  .hero-section,
  .booking-section,
  .kc-elm,
  .kc_row {
    max-width: 100vw;
  }
}

/* ============================================= */
/* SPECIAL OFFER SECTION - EXPANDING COLUMNS    */
/* ============================================= */
.special-offer-section .offer-container {
  display: flex;
  width: 100%;
  height: 400px;
  gap: 10px;
  overflow: hidden;
}

.special-offer-section .offer-col {
  position: relative;
  height: 100%;
  border-radius: 15px;
  cursor: pointer;
  flex: 2; /* Default: Chiếm 2 phần */
  transition: flex 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.special-offer-section .offer-col.active {
  flex: 8; /* Active: Chiếm 8 phần */
  cursor: default;
}

/* Background Images for each column */
#offer-col-1 {
  background-image: url("../img/offer_carpooling.png");
  background-size: cover;
  background-position: center;
}

#offer-col-2 {
  background-image: url("../img/offer_private.png");
  background-size: cover;
  background-position: center;
}

#offer-col-3 {
  background-image: url("../img/offer_loyalty.png");
  background-size: cover;
  background-position: center;
}

/* Overlay to darken image/color */
.special-offer-section .offer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.special-offer-section .offer-col.active .offer-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.special-offer-section .offer-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 20px;
  text-align: center;
  white-space: nowrap; /* Prevent breaking initially */
}

/* Logic hiển thị nội dung */
.special-offer-section .offer-icon {
  display: none;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.special-offer-section .offer-icon i {
  display: none;
}

.special-offer-section .offer-icon h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  opacity: 0.9;
  color: #ff9000;
  white-space: normal;
  text-align: center;
}

/* Khi active: Ẩn title ngắn/icon, Hiện detail */
.special-offer-section .offer-col.active .offer-icon {
  display: none; /* Hoặc có thể opacity: 0 và absolute để animation mượt hơn, nhưng display none an toàn layout */
}

.special-offer-section .offer-detail {
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s; /* Delay xuất hiện */
}

.special-offer-section .offer-col.active .offer-detail {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.special-offer-section .offer-detail h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: #fff;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.special-offer-section .offer-detail p {
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 80%;
  white-space: normal;
  color: #fff; /* Subtitle color */
  font-weight: 500;
}

.special-offer-section .offer-detail ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
}

.special-offer-section .offer-detail ul li {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff; /* Keep text white for readability on dark overlay */
}

.special-offer-section .offer-detail ul li i {
  margin-right: 10px;
  color: #ff9000; /* Icon color */
}

.special-offer-section .offer-detail .btn {
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 50px;
  background: #ff9000; /* Button Background */
  color: #fff; /* Button Text */
  font-weight: bold;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  cursor: pointer;
}

.special-offer-section .offer-detail .btn:hover {
  /* Only cursor pointer needed, remove translation/shadow if minimizing effects, 
       but keeping transition for smoothness is standard. 
       User said: "Onhover sẽ chỉ cần có cursor-pointer + title màu #fff" */
  transform: none;
  box-shadow: none;
  background: #ff9000;
  color: #fff;
}

/* Responsive Desktop nhỏ hơn */
@media (min-width: 1000px) and (max-width: 1200px) {
  .kc-elm.kc-css-719684.kc_row.bottom-footer {
    padding-top: 0px !important;
  }

  .footer-bottom {
    margin-top: 0px !important;
  }

  .kc-elm.kc-css-9164.kc_text_block.footer-bottom p {
    margin-bottom: 0px !important;
  }

  body.kc-css-system .kc-css-719684 {
    padding-bottom: 30px !important;
  }
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .special-offer-section .offer-container {
    flex-direction: column;
    height: auto;
  }

  .special-offer-section .offer-col {
    width: 100%;
    flex: none !important; /* Disable flex scaling on mobile */
    height: 80px; /* Collapsed height */
    margin-bottom: 10px;
    transition: height 0.5s ease;
  }

  .special-offer-section .offer-col.active {
    height: 400px; /* Expanded height */
  }

  .special-offer-section .offer-icon {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 20px;
  }

  .special-offer-section .offer-icon i {
    font-size: 24px;
    margin-bottom: 0;
    margin-right: 15px;
  }

  .special-offer-section .offer-icon h3 {
    font-size: 16px;
  }
}

/* ============================================= */
/* CUSTOMER REVIEWS SECTION - ROBUST FLEXBOX    */
/* ============================================= */
.customer-reviews-section {
  background: #f9f9f9;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.customer-reviews-section * {
  box-sizing: border-box; /* Safe Mode */
}

.customer-reviews-section .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

.reviews-container {
  display: block;
  width: 100%;
  margin-top: 30px;
}

/* Row Base */
.reviews-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
  justify-content: center;
}

/* Columns */
.review-col {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
  width: 100%; /* Default mobile */
}

/* Default Grid (Desktop) */
.reviews-row .review-col {
  width: 33.333333%;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

/* Review Card Styling */
.review-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e6f7ff;
  color: #0e70bb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.reviewer-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.reviewer-info .service-used {
  font-size: 13px;
  color: #0e70bb;
  display: block;
  font-weight: 600;
}

.review-rating {
  margin-bottom: 15px;
  color: #ffc700;
  font-size: 12px;
}

.review-content p {
  color: #555;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
  .reviews-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .reviews-row .review-col {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .footer-bottom {
    margin-top: 0px !important;
  }

  /* Target các thẻ p trong footer-bottom với nhiều selector variants */
  .footer-bottom p,
  .kc_text_block.footer-bottom p,
  .kc-elm.kc-css-9164.kc_text_block.footer-bottom p,
  div.kc-elm.kc-css-9164.kc_text_block.footer-bottom p {
    margin-bottom: 0px !important;
    line-height: 30px !important;
  }
}

/* Mobile: 1 column - BLOCK LAYOUT (Safest) */
@media (max-width: 768px) {
  .reviews-row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .reviews-row .review-col {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 20px !important;
  }

  .review-card {
    height: auto !important; /* Allow natural height expansion */
    margin-bottom: 10px;
  }
}

/* ============================================= */
/* SUCCESS MODAL STYLING                        */
/* ============================================= */
/* Modal title color */
#successModal .modal-title {
  color: #ff9000 !important;
}

/* Icon colors in modal */
#successModal .modal-title i,
#successModal .modal-body i.fa-check-circle {
  color: #ff9000 !important;
}

/* Button styling */
#successModal .ga-successful-btn {
  background-color: #ff9000 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

#successModal .ga-successful-btn:hover {
  background-color: #e68200 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 144, 0, 0.3);
}

/* ============================================= */
/* ERROR MODAL STYLING                          */
/* ============================================= */
/* Modal title color */
#errorModal .modal-title {
  color: #ff9000 !important;
}

/* Icon colors in modal */
#errorModal .modal-title i {
  color: #ff9000 !important;
}

/* Button styling */
#errorModal .btn-danger {
  background-color: #ff9000 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

#errorModal .btn-danger:hover {
  background-color: #e68200 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 144, 0, 0.3);
}
