/* ==========================================================================
   HONDA ICON e: - WHITE TRANSLUCENT GLASS SYSTEM (KÍNH TRONG MỜ TRÊN NỀN TRẮNG)
   Official Honda Aesthetic - Minimalist, High-Tech, Light & Ultra-Performant
   ========================================================================== */

:root {
  /* White Glass Backgrounds */
  --glass-white-subtle: rgba(255, 255, 255, 0.65);
  --glass-white-base: rgba(255, 255, 255, 0.82);
  --glass-white-elevated: rgba(255, 255, 255, 0.92);
  --glass-white-solid: #FFFFFF;

  /* Glass Borders */
  --glass-border-light: rgba(0, 0, 0, 0.06);
  --glass-border-medium: rgba(0, 0, 0, 0.1);
  --glass-border-white: rgba(255, 255, 255, 0.9);
  --glass-border-red: rgba(204, 0, 0, 0.25);
  --glass-border-blue: rgba(0, 140, 200, 0.25);

  /* Glass Shadows (Soft, Ambient, Clean) */
  --glass-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --glass-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --glass-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --glass-shadow-red: 0 8px 24px rgba(204, 0, 0, 0.12);

  /* Performance-friendly Blur */
  --glass-blur-sm: blur(8px);
  --glass-blur-md: blur(14px);
  --glass-blur-lg: blur(20px);
}

/* Base White Glass Panel */
.glass-panel {
  background: var(--glass-white-base);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-md);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Glass Pill Shape (Clean rounded capsules) */
.glass-pill {
  border-radius: 9999px;
  background: var(--glass-white-base);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-sm);
  transition: all 0.2s ease;
}

/* Glass Card on White */
.glass-card {
  background: var(--glass-white-base);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border-light);
  border-radius: 16px;
  box-shadow: var(--glass-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
  }
}

/* Sticky Main Glass Header */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  backdrop-filter: var(--glass-blur-lg);
  border-bottom: 1px solid var(--glass-border-light);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Subnav Category Bar (Sticky Glass Ribbon) */
.glass-subnav-bar {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: var(--glass-blur-md);
  backdrop-filter: var(--glass-blur-md);
  border-bottom: 1px solid var(--glass-border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Floating Bottom Action Dock (Mobile/Tablet) */
.glass-floating-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  backdrop-filter: var(--glass-blur-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 999;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--honda-red, #CC0000);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}

.back-to-top:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 18px rgba(204, 0, 0, 0.45);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   FLOATING CONTACT BUTTONS (Call, Zalo, Google Maps) - VẾT LOANG & NHẢY
   ========================================================================== */
.floating-contact-group {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 996;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  transform-origin: bottom right;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.35s ease,
              visibility 0.35s;
}

.floating-contact-group.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.floating-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.floating-contact-group .floating-btn-wrap:nth-child(1) {
  animation: zoomBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.05s;
}
.floating-contact-group .floating-btn-wrap:nth-child(2) {
  animation: zoomBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.18s;
}
.floating-contact-group .floating-btn-wrap:nth-child(3) {
  animation: zoomBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.30s;
}

@keyframes zoomBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(24px);
  }
  70% {
    opacity: 1;
    transform: scale(1.18) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.floating-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s,
              background-color 0.25s,
              border-color 0.25s,
              color 0.25s;
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-2px);
}

/* --- TONE MÀU TRẮNG ĐEN CHUYÊN NGHIỆP (MONOCHROME LUXURY) --- */
/* Nút 1: Bản đồ Maps (Đen than chì sang trọng, icon trắng) */
.btn-map {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  --ripple-color: rgba(15, 23, 42, 0.35);
}

.btn-map:hover {
  background: #ffffff;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

/* Nút 2: Nút Zalo (TÂM ĐIỂM NỔI BẬT - Nền trắng tuyết tối giản, không viền ngoài) */
.btn-zalo {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border: none;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  --ripple-color: rgba(15, 23, 42, 0.35);
}

.btn-zalo .zalo-text {
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #0f172a;
  line-height: 1;
  display: block;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  transition: color 0.2s;
}

/* Huy hiệu hỗ trợ 24/7 góc nút Zalo: Nền đỏ Honda, chữ trắng nổi bật */
.zalo-badge-hot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--honda-red, #CC0000);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 99px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.35);
  line-height: 1.2;
  transition: all 0.2s;
}

.btn-zalo:hover {
  background: #0f172a;
  color: #ffffff;
  transform: scale(1.14) translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.3);
}

.btn-zalo:hover .zalo-text {
  color: #ffffff;
}

.btn-zalo:hover .zalo-badge-hot {
  background: var(--honda-red, #CC0000);
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

/* Nút 3: Hotline Gọi điện (Đen than chì sang trọng, icon trắng) */
.btn-call {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  --ripple-color: rgba(15, 23, 42, 0.35);
}

.btn-call:hover {
  background: #ffffff;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

/* VÒNG BÚNG RA MỎNG NHẸ THANH LỊCH (THIN OUTLINE RIPPLE - NHỎ GỌN) */
.ripple-wave {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.2px solid var(--ripple-color);
  background: transparent;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  animation: thin-ripple-spread 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ripple-wave.ripple-delay {
  animation-delay: 0.8s;
}

@keyframes thin-ripple-spread {
  0% {
    transform: scale(1);
    opacity: 0.75;
    border-width: 1.2px;
  }
  50% {
    opacity: 0.3;
    border-width: 1px;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
    border-width: 0.6px;
  }
}

/* HIỆU ỨNG NHẢY (BOUNCE / JUMP) THEO CHU KỲ NHẸ NHÀNG */
.floating-btn-wrap:nth-child(1) .floating-btn {
  animation: btn-jump 3.8s ease-in-out infinite 0s;
}
.floating-btn-wrap:nth-child(2) .floating-btn {
  animation: btn-jump 3.8s ease-in-out infinite 0.35s;
}
.floating-btn-wrap:nth-child(3) .floating-btn {
  animation: btn-jump 3.8s ease-in-out infinite 0.7s;
}

@keyframes btn-jump {
  0%, 100% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(-6px) scale(1.04);
  }
  20% {
    transform: translateY(0) scale(0.98);
  }
  30% {
    transform: translateY(-3px) scale(1.02);
  }
  40% {
    transform: translateY(0) scale(1);
  }
}

/* Icon & hiệu ứng rung lắc (Phone shake & Map bounce) */
.floating-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-shake svg {
  animation: phone-shake-anim 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes phone-shake-anim {
  0%, 100% { transform: rotate(0deg); }
  8%, 24% { transform: rotate(-16deg); }
  16%, 32% { transform: rotate(16deg); }
  40% { transform: rotate(0deg); }
}

.btn-map .floating-icon svg {
  animation: map-icon-bounce 3.2s ease-in-out infinite 1.2s;
}

@keyframes map-icon-bounce {
  0%, 100% { transform: translateY(0); }
  12% { transform: translateY(-5px); }
  24% { transform: translateY(0); }
  36% { transform: translateY(-2px); }
  48% { transform: translateY(0); }
}

/* Tooltip phụ trợ khi lướt chuột qua */
.floating-tooltip {
  position: absolute;
  right: 66px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.floating-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid rgba(15, 23, 42, 0.92);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.floating-btn-wrap:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Responsive Mobile & Tablet */
@media (max-width: 768px) {
  .floating-contact-group {
    bottom: 80px;
    right: 14px;
    gap: 12px;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
  }
  .btn-zalo {
    width: 52px;
    height: 52px;
  }
  .btn-zalo .zalo-text {
    font-size: 15px;
  }
  .floating-tooltip {
    display: none;
  }
  .back-to-top {
    bottom: 80px;
    left: 14px;
    right: auto;
  }
}

/* Clean Glass Form Inputs */
.glass-input, .glass-select, .glass-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.glass-input:focus, .glass-select:focus, .glass-textarea:focus {
  border-color: #CC0000;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

/* Glass Buttons */
.btn-honda-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #CC0000;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 9999px;
  padding: 12px 26px;
  border: 1px solid #CC0000;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-honda-red:hover {
  background: #B30000;
  box-shadow: 0 6px 18px rgba(204, 0, 0, 0.35);
  transform: translateY(-1px);
}

.btn-honda-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 9999px;
  padding: 12px 24px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-honda-outline:hover {
  background: #FFFFFF;
  border-color: #111827;
  transform: translateY(-1px);
}

/* Mobile Drawer Frosted Glass */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: 995;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================================
   GENTLE AMBIENT PULSE & RIPPLE (HIỆU ỨNG LOANG NHẸ TẠO SỰ CHÚ Ý)
   ========================================================================== */
.pulse-loang {
  position: relative;
  z-index: 1;
  animation: gentleGlowPulse 2.8s ease-in-out infinite;
}

.pulse-loang::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  border: 2px solid rgba(204, 0, 0, 0.55);
  pointer-events: none;
  z-index: -1;
  animation: rippleLoang 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

/* Subtle Hotline & Contact Button Loang */
.hotline-loang {
  position: relative;
  z-index: 1;
  animation: gentleHotlinePulse 2.8s ease-in-out infinite 0.7s;
}

.hotline-loang::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(204, 0, 0, 0.45);
  pointer-events: none;
  z-index: -1;
  animation: rippleLoang 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 0.7s;
}

/* Perfect Circular Loang for Round Icon Buttons */
.hotline-pill.hotline-loang::before,
.glass-dock-btn.pulse-loang::before,
.glass-dock-btn.hotline-loang::before {
  animation-name: rippleLoangCircle !important;
}

@keyframes rippleLoang {
  0% {
    transform: scale(0.97);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.06, 1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.06, 1.22);
    opacity: 0;
  }
}

@keyframes rippleLoangCircle {
  0% {
    transform: scale(0.94);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes gentleGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 6px 22px rgba(204, 0, 0, 0.48), 0 0 12px rgba(204, 0, 0, 0.22);
  }
}

@keyframes gentleHotlinePulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  50% {
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.25);
  }
}

/* ==========================================================================
   POPUP MODAL: ĐĂNG KÝ NHẬN ƯU ĐÃI & BÁO GIÁ (FROSTED GLASS)
   ========================================================================== */
.glass-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.glass-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.glass-modal-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-modal-overlay.active .glass-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #4B5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.modal-close-btn:hover {
  background: #E5E7EB;
  color: #111827;
  transform: rotate(90deg);
}

.modal-head {
  text-align: center;
  margin-bottom: 22px;
}

.modal-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-grid .full-col {
  grid-column: span 2;
}

@media (max-width: 540px) {
  .glass-modal-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .modal-grid .full-col {
    grid-column: span 1;
  }
}
