/* ==========================================================================
   STYLE GUIDE & CUSTOM PROPERTIES (vemaybaybienhoa.com)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette - HSL Tailored Colors */
  --primary-hue: 208;
  --primary-sat: 79%;
  --primary-lightness: 28%;
  
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-lightness)); /* #0f4c81 - Trust, Safety */
  --primary-light: hsl(var(--primary-hue), var(--primary-sat), 38%);
  --primary-dark: hsl(var(--primary-hue), var(--primary-sat), 18%);
  --primary-glow: hsla(var(--primary-hue), var(--primary-sat), var(--primary-lightness), 0.15);
  
  --accent-hue: 37;
  --accent-sat: 90%;
  --accent: hsl(var(--accent-hue), var(--accent-sat), 55%); /* #f5a623 - Excitement, Promo */
  --accent-dark: hsl(var(--accent-hue), var(--accent-sat), 45%);
  --accent-glow: hsla(var(--accent-hue), var(--accent-sat), 55%, 0.2);
  
  --success: hsl(142, 72%, 29%); /* Safety, Done */
  --danger: hsl(354, 70%, 54%); /* Fraud warnings */
  
  --bg-main: hsl(210, 20%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --text-main: hsl(210, 30%, 15%);
  --text-muted: hsl(210, 15%, 45%);
  --border-color: hsl(210, 15%, 90%);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(15, 76, 129, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 76, 129, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 90px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center { text-align: center; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Floating Contact Widget */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  font-size: 24px;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.floating-phone {
  background: var(--success);
}

.floating-zalo {
  background: #0068ff;
}

/* Glassmorphism Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
  transition: var(--transition);
}

.header-top {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 8px 0;
}

.header-top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contacts {
  display: flex;
  gap: 20px;
}

.top-contacts a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-contacts a:hover {
  color: var(--accent);
}

.top-alert {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.logo-link {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: clamp(18px, 5.5vw, 28px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: clamp(8px, 2.2vw, 11px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-dark);
  letter-spacing: 1.5px;
  margin-top: -2px;
  white-space: nowrap;
}

/* Navigation Menu */
nav.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  font-size: 15px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-agent-btn {
  background: var(--primary-glow);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-agent-btn:hover {
  background: var(--primary);
  color: white;
}

/* Hamburger Menu Mobile */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: currentColor;
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section & Search Widget */
.hero-section {
  background: linear-gradient(135deg, hsla(var(--primary-hue), var(--primary-sat), 15%, 0.85), hsla(var(--primary-hue), var(--primary-sat), 25%, 0.85)), 
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
  min-height: 550px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-text {
  color: white;
}

.hero-text h2 {
  color: white;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.hero-feature-item i {
  color: var(--accent);
}

/* Booking Widget Form */
.booking-widget-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.4);
}

.booking-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.booking-tab-btn {
  background: none;
  border: none;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  font-size: 14px;
  position: relative;
  transition: var(--transition);
}

.booking-tab-btn.active {
  color: var(--primary);
}

.booking-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trip-type-radios {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.trip-type-radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.input-container {
  position: relative;
}

.input-container i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  background-color: white;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.booking-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

/* Service Highlights Section */
.section-title-wrap {
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 76, 129, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Promos & Hot Flights */
.promos-section {
  background-color: white;
}

.promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-main);
  transition: var(--transition);
}

.promo-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.promo-img-container {
  height: 200px;
  position: relative;
}

.promo-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.promo-content {
  padding: 24px;
}

.promo-route {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-price-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.price-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-value {
  font-size: 20px;
  color: var(--danger);
  font-weight: 800;
}

/* App Download section */
.app-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  overflow: hidden;
  position: relative;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.app-text h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 16px;
}

.app-text p {
  opacity: 0.9;
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 600px;
}

.download-buttons {
  display: flex;
  gap: 16px;
}

.btn-download {
  background: white;
  color: var(--primary-dark);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.btn-download:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Partners carousel */
.partners-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: white;
}

.partners-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.7;
}

.partner-logo {
  max-height: 45px;
  filter: grayscale(1);
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Anti-Fraud Banner / Core Info */
.info-banner-section {
  background-color: #fffbeb;
  border-left: 5px solid var(--accent);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 50px;
}

.info-banner-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-banner-icon {
  font-size: 32px;
  color: var(--accent-dark);
}

.info-banner-text h3 {
  font-size: 18px;
  color: #78350f;
  margin-bottom: 8px;
}

.info-banner-text p {
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
}

/* Footer Section */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 14px;
}

.footer-links-list a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* SMART APP BANNER */
#smart-app-banner {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-bottom: 1.5px solid var(--border-color);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .booking-widget-container {
    order: -1; /* Bring search widget to the top */
  }
  .hero-text {
    order: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .container {
    padding: 0 16px;
  }

  .header-top-flex {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .top-contacts {
    justify-content: center;
  }
  
  .top-alert {
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.4;
  }
  
  #smart-app-banner .container {
    padding: 10px 16px !important;
  }
  
  .section-padding {
    padding: 40px 0; /* Compact padding for section */
  }
  
  .main-header {
    height: var(--header-height);
  }
  
  nav.nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    align-items: flex-start;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    border-top: 1px solid var(--border-color);
  }
  
  nav.nav-menu.active {
    left: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Optimize Hero & Search Widget on Mobile */
  .hero-section {
    padding: 20px 0 40px;
    min-height: auto;
  }
  
  .hero-text {
    text-align: center;
    margin-top: 20px;
  }
  
  .hero-text h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .hero-text p {
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.85;
  }
  
  .hero-features {
    display: none; /* Hide long features list on mobile */
  }
  
  .booking-widget-container {
    padding: 15px; /* Smaller padding for mobile search widget */
    border-radius: var(--radius-md);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .download-buttons {
    justify-content: center;
  }

  /* Hide services and promos sections on mobile */
  .services-section,
  .promos-section {
    display: none !important;
  }
}

/* ==========================================================================
   DATACOM WIDGET CUSTOM OVERRIDES (vemaybaydongnai.vn)
   ========================================================================== */
#dtc-plugin, .dtc-plugin, #dtc-booking-results {
  font-family: var(--font-body) !important;
}

/* Color Matching: Header & Primary elements */
#dtc-plugin .dtc-search-header,
#dtc-booking-results .dtc-search-header {
  background-color: var(--primary) !important;
  background: var(--primary) !important;
  color: white !important;
}

#dtc-plugin .dtc-bg-primary,
#dtc-plugin .dtc-pri-bg,
#dtc-plugin .dtc-btn-primary,
#dtc-plugin .dtc-button-primary,
#dtc-booking-results .dtc-bg-primary,
#dtc-booking-results .dtc-pri-bg,
#dtc-booking-results .dtc-btn-primary,
#dtc-booking-results .dtc-button-primary {
  background-color: var(--primary) !important;
  color: white !important;
}

#dtc-plugin .dtc-pri-cl,
#dtc-booking-results .dtc-pri-cl {
  color: var(--primary) !important;
}

/* Active tab styles */
#dtc-plugin .dtc-active, 
#dtc-plugin .dtc-itin-select .dtc-active,
#dtc-booking-results .dtc-active, 
#dtc-booking-results .dtc-itin-select .dtc-active {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Make inputs, radios and checkboxes match primary color theme */
#dtc-plugin input[type="radio"]:checked,
#dtc-plugin input[type="checkbox"]:checked,
#dtc-plugin .dtc-form-check-input:checked,
#dtc-booking-results input[type="radio"]:checked,
#dtc-booking-results input[type="checkbox"]:checked,
#dtc-booking-results .dtc-form-check-input:checked {
  accent-color: var(--primary) !important;
}

/* Form inputs & select integration */
#dtc-plugin .dtc-form-control,
#dtc-plugin input,
#dtc-plugin select,
#dtc-plugin .dtc-search-input-container,
#dtc-booking-results .dtc-form-control,
#dtc-booking-results input,
#dtc-booking-results select,
#dtc-booking-results .dtc-search-input-container {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--border-color) !important;
  font-family: var(--font-body) !important;
  transition: var(--transition) !important;
}

#dtc-plugin .dtc-form-control:focus,
#dtc-plugin input:focus,
#dtc-plugin select:focus,
#dtc-booking-results .dtc-form-control:focus,
#dtc-booking-results input:focus,
#dtc-booking-results select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* Reset inner inputs inside containers to avoid double borders and backgrounds */
#dtc-plugin .dtc-search-input-container .dtc-form-control,
#dtc-plugin .dtc-search-input-container input,
#dtc-plugin .dtc-search-input-container select,
#dtc-plugin .dtc-form-floating .dtc-form-control,
#dtc-plugin .dtc-form-floating input,
#dtc-plugin .dtc-form-floating select,
#dtc-plugin .dtc-form-group .dtc-form-control,
#dtc-plugin .dtc-form-group input,
#dtc-plugin .dtc-form-group select {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Apply border glow to the parent container when the input inside is focused */
#dtc-plugin .dtc-search-input-container:focus-within,
#dtc-plugin .dtc-form-floating:focus-within,
#dtc-plugin .dtc-form-group:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

/* Compact Widget structure (Gọn hơn 1 xíu) */
#dtc-plugin {
  padding: 0 !important;
}

#dtc-plugin .dtc-search-header {
  padding: 10px 16px !important;
}

#dtc-plugin .dtc-search-header h2,
#dtc-plugin .dtc-search-header h3 {
  font-size: 16px !important;
}

#dtc-plugin .dtc-search-input-container,
#dtc-plugin .dtc-form-group,
#dtc-plugin .dtc-form-floating {
  margin-bottom: 8px !important;
}



#dtc-plugin .dtc-search-option {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
}

#dtc-plugin .dtc-form-check {
  margin-bottom: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Fix airline logo size in search widget options */
#dtc-plugin .dtc-form-check img,
#dtc-plugin .dtc-form-check-label-vertical img,
#dtc-plugin label img {
  max-height: 18px !important;
  max-width: 45px !important;
  width: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* CTA "Tìm chuyến bay" Button */
#dtc-plugin .dtc-search-btn,
#dtc-plugin .dtc-btn-search,
#dtc-plugin .dtc-search-button,
#dtc-plugin button[type="submit"],
#dtc-booking-results .dtc-search-btn,
#dtc-booking-results .dtc-btn-search,
#dtc-booking-results .dtc-search-button,
#dtc-booking-results button[type="submit"] {
  background-color: var(--accent) !important;
  background: var(--accent) !important;
  color: white !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border: none !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 14px var(--accent-glow) !important;
  cursor: pointer !important;
}

#dtc-plugin .dtc-search-btn:hover,
#dtc-plugin .dtc-btn-search:hover,
#dtc-plugin .dtc-search-button:hover,
#dtc-plugin button[type="submit"]:hover,
#dtc-booking-results .dtc-search-btn:hover,
#dtc-booking-results .dtc-btn-search:hover,
#dtc-booking-results .dtc-search-button:hover,
#dtc-booking-results button[type="submit"]:hover {
  background-color: var(--accent-dark) !important;
  background: var(--accent-dark) !important;
  box-shadow: 0 6px 20px var(--accent-glow) !important;
  transform: translateY(-2px) !important;
}

/* Optimization for Mobile Flight Search Results (Tránh lệch khung/tràn viền) */
@media (max-width: 768px) {
  /* Homepage search widget container spacing */
  .booking-widget-container {
    padding: 12px 10px !important;
    border-radius: var(--radius-md) !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevents Datacom widget inner overflow from causing page horizontal scroll */
  }
  
  #dtc-plugin,
  #dtc-plugin * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force trip type selector to wrap on small mobile screens instead of overflowing */
  .trip-type-radios {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 16px !important;
  }
  
  /* Results section settings */
  main section.section-padding:has(#dtc-booking-results) {
    padding: 10px 0 !important;
  }
  
  main section.section-padding:has(#dtc-booking-results) .container {
    padding: 0 8px !important;
  }
  
  #dtc-booking-results {
    padding: 8px 4px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Font size scale down for results table content to fit small screens */
  #dtc-booking-results * {
    font-size: 13px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  #dtc-booking-results h2, 
  #dtc-booking-results h3 {
    font-size: 15px !important;
  }
}

/* ==========================================================================
   DATACOM WIDGET CUSTOM COMPACT OVERRIDES (Rút gọn tối đa hiển thị chuyến bay)
   ========================================================================== */

/* 1. Giao diện dòng chuyến bay mặc định (Cực kỳ gọn gàng) */
#dtc-booking-results .dtc-flight-item {
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  border-radius: 6px !important;
  gap: 12px !important;
}

#dtc-booking-results .dtc-flight-summ {
  padding: 0 !important;
}

/* Thu nhỏ logo hãng hàng không */
#dtc-booking-results .dtc-flight-summ img {
  max-height: 24px !important;
  width: auto !important;
}

/* Giảm cỡ chữ thông tin chung */
#dtc-booking-results .dtc-flight-summ * {
  font-size: 12.5px !important;
  line-height: 1.3 !important;
}

/* Nhấn mạnh giờ bay nhưng thu nhỏ nhãn sân bay */
#dtc-booking-results .dtc-flight-summ div div:has(> b),
#dtc-booking-results .dtc-flight-summ b {
  font-size: 15px !important;
}

/* Thu nhỏ kích thước nút giá vé và nút chọn */
#dtc-booking-results .dtc-total-fare {
  padding: 4px 10px !important;
  height: 35px !important;
  min-width: 95px !important;
}
#dtc-booking-results .dtc-total-fare b {
  font-size: 14px !important;
}
#dtc-booking-results .dtc-btn-select-flight {
  padding: 4px 12px !important;
  height: 35px !important;
  font-size: 12.5px !important;
}

/* 2. Căn chỉnh chế độ "Thu gọn" thẳng hàng đẹp mắt trên Desktop */
@media (min-width: 769px) {
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    margin-bottom: 5px !important;
  }

  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 12px !important;
  }

  /* Định vị cột thẳng hàng cho chế độ thu gọn */
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child > div:nth-child(1) {
    width: 60px !important; /* Cột Logo */
  }
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child > div:nth-child(2) {
    width: 120px !important; /* Cột Tên hãng & ngày */
  }
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child > div:nth-child(3) {
    width: 80px !important; /* Giờ đi */
  }
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child > div:nth-child(4) {
    width: 90px !important; /* Thời gian bay */
  }
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child > div:nth-child(5) {
    width: 80px !important; /* Giờ đến */
  }
  body:has(#dtcCkbMinifyFlight:checked) .dtc-flight-summ > div:first-child > div:nth-child(6) {
    width: 80px !important; /* Mã chuyến bay / Chi tiết */
  }
}

/* 3. Tối ưu cực hạn trên thiết bị di động (Mobile) */
@media (max-width: 768px) {
  #dtc-booking-results .dtc-flight-item {
    padding: 5px 8px !important;
    margin-bottom: 5px !important;
    gap: 6px !important;
  }

  #dtc-booking-results * {
    font-size: 11.5px !important;
  }

  #dtc-booking-results .dtc-flight-summ img {
    max-height: 18px !important;
  }

  /* Thu gọn thông tin máy bay trên mobile để tránh xuống dòng */
  #dtc-booking-results .dtc-flight-summ div:has(> .fa-plane),
  #dtc-booking-results .dtc-flight-summ div[title*="Airbus"],
  #dtc-booking-results .dtc-flight-summ div[title*="Boeing"] {
    display: none !important;
  }
}

/* ==========================================================================
   HOMEPAGE HERO PROMO CARD STYLES
   ========================================================================== */
.hero-promo-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.25) !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: var(--transition) !important;
}

.hero-promo-card:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.hero-promo-icon {
  font-size: 24px !important;
  color: var(--accent) !important;
  background: rgba(245, 166, 35, 0.15) !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
  flex-shrink: 0 !important;
  animation: promo-pulse 2s infinite !important;
}

.hero-promo-info {
  flex-grow: 1 !important;
}

.hero-promo-title {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  margin-bottom: 3px !important;
}

.hero-promo-desc {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: white !important;
}

.hero-promo-desc strong {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

@keyframes promo-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(245, 166, 35, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero-promo-card {
    padding: 12px 14px !important;
    margin-bottom: 20px !important;
  }
  .hero-promo-desc {
    font-size: 13.5px !important;
  }
  .hero-promo-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
}

/* Custom media query for extremely narrow mobile viewports */
@media (max-width: 360px) {
  .logo-title {
    font-size: 16px;
  }
  .logo-subtitle {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

/* Custom media query for narrow screens to handle smart app banner scaling */
@media (max-width: 480px) {
  #smart-app-banner .container {
    padding: 8px 12px !important;
    gap: 8px;
  }
  #smart-app-banner .app-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
  #smart-app-banner .close-banner {
    font-size: 20px !important;
  }
  #smart-app-banner div div:last-child {
    font-size: 10px !important;
  }
  #smart-app-banner .btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
}

/* Hide App Banner & App Section when browsing inside the Android App WebView */
body.is-app #smart-app-banner,
body.is-app .app-section {
  display: none !important;
}

/* Custom Trip Type Selector Overrides (Applies globally to all layouts: index and flight search pages) */
body #dtc-plugin #dtc-search-form .dtc-search-option {
  text-align: left !important;
  display: block !important;
}

body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left {
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 100% !important;
}

body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  display: inline-block !important;
}

/* Make the trip type dropdown button highly prominent (pill-styled, blue background, solid border, and hover animation) */
body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn {
  background: #eff6ff !important; /* Premium brand light-blue tint */
  border: 2px solid #2563eb !important; /* Bold primary blue border to stand out */
  border-radius: 30px !important; /* Perfect pill shape */
  padding: 8px 18px !important; /* Extra padding for prominence */
  font-size: 14px !important;
  font-weight: 700 !important; /* Bold text */
  color: #1e3a8a !important; /* Deep blue text color */
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.12), 0 2px 4px -1px rgba(37, 99, 235, 0.08) !important; /* Soft blue shadow */
  margin-bottom: 12px !important;
  text-align: left !important;
  cursor: pointer !important;
}

body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn:hover {
  background: #dbeafe !important; /* Slightly darker tint on hover */
  border-color: #1d4ed8 !important;
  color: #1e3a8a !important;
  transform: translateY(-1.5px) !important; /* Lift effect */
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2), 0 4px 6px -4px rgba(37, 99, 235, 0.1) !important; /* Deepened shadow */
}

/* Add a prominent airplane route icon (using warm accent orange color) */
body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn::before {
  content: "\f072" !important; /* FontAwesome plane icon */
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  margin-right: 6px !important;
  color: #f5a623 !important; /* Bright warm orange/gold color for ultimate contrast */
  font-size: 15px !important;
  transition: transform 0.25s ease !important;
}

body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn:hover::before {
  transform: rotate(15deg) scale(1.1) !important; /* Playful dynamic rotate on hover */
}

/* Dark Mode Overrides for the Dropdown Button */
body #dtc-plugin.dtc-dark-mode #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: #38bdf8 !important; /* Lighter blue border for contrast */
  color: #38bdf8 !important;
  box-shadow: 0 4px 6px -1px rgba(56, 189, 248, 0.15) !important;
}

body #dtc-plugin.dtc-dark-mode #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn:hover {
  background: #1e293b !important;
  border-color: #7dd3fc !important;
  color: #7dd3fc !important;
}

body #dtc-plugin.dtc-dark-mode #dtc-search-form .dtc-search-option .dtc-option-left .dtc-dropdown.dtc-itin-select .dtc-dropdown-btn::before {
  color: #f5a623 !important; /* Keep gold accent for dark mode */
}

/* Hide duplicate/redundant passenger dropdowns inside the options bar */
body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left > .dtc-dropdown:nth-child(2),
body #dtc-plugin #dtc-search-form .dtc-search-option .dtc-option-left > .dtc-dropdown:has(.dtc-dropdown-btn-pax) {
  display: none !important;
}

/* Hide native horizontal radio buttons globally to enforce dropdown usage */
body #dtc-plugin #dtc-search-form .dtc-search-option #dtc-itin-mobile {
  display: none !important;
}

/* Compact Hero Banner for Flight Search Page on Mobile */
@media (max-width: 768px) {
  .search-page-hero {
    min-height: auto !important;
    padding: 8px 0 !important;
  }
  .search-page-hero h2 {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    padding: 0 10px !important;
    text-align: center !important;
  }
  .search-page-hero p {
    display: none !important; /* Hide subtitle completely on mobile to focus on flight search results */
  }
}




