/* ==========================================================================
   TAXI THANH HÓA - Custom styles for JS interactions
   (Most styling handled by Tailwind v4 classes in HTML)
   ========================================================================== */

/* Google Icon Font (Material Symbols Outlined) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

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

/* Mobile drawer toggle */
.mobile-drawer.active {
  display: flex !important;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.active .faq-answer {
  padding-bottom: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active {
  border-color: #E8A317;
}

/* Calculator type buttons (Light theme) */
.calc-type-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-type-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.calc-type-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}

/* Custom Route Dropdown Menu (Light theme) */
#customRouteMenu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

#customRouteMenu::-webkit-scrollbar {
  width: 6px;
}

#customRouteMenu::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 8px;
}

#customRouteMenu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

#customRouteMenu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-route-opt {
  color: #334155;
}

.custom-route-opt:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.custom-route-opt.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: 3px solid #2563eb;
}

/* Policy Modal */
.policy-modal.active {
  display: flex !important;
}

.policy-modal-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.policy-modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.policy-modal-body li {
  margin-bottom: 0.35rem;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-slow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.animate-pulse-slow {
  animation: pulse-slow 2.5s ease-in-out infinite;
}

@keyframes pulse-cta-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5), 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0), 0 10px 25px -5px rgba(16, 185, 129, 0.2);
  }
}

.pulse-cta {
  animation: pulse-cta-glow 2.2s infinite;
}

/* Floating round call button on bottom left */
@keyframes pulse-call-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7), 0 0 0 0 rgba(22, 163, 74, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(22, 163, 74, 0), 0 0 0 26px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0), 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.pulse-call-btn {
  animation: pulse-call-ring 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes call-wiggle {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-18deg); }
  20%, 40% { transform: rotate(18deg); }
  50% { transform: rotate(0deg); }
}

.animate-wiggle {
  animation: call-wiggle 2.5s infinite ease-in-out;
}

/* Card hover smooth lift */
.card-hover {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
}

/* Card Entry Animation */
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fadeInCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Subtle badge pulse */
@keyframes subtle-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.97); }
}

.badge-live {
  animation: subtle-badge-pulse 2s infinite ease-in-out;
}

/* Gradient text utility fallback */
.gradient-text-brand {
  background: linear-gradient(135deg, #E8A317 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Step connector line on desktop */
@media (min-width: 1024px) {
  .step-connector::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: calc(50% + 2.5rem);
    width: calc(100% - 5rem);
    height: 2px;
    background: repeating-linear-gradient(to right, #E5E7EB 0, #E5E7EB 6px, transparent 6px, transparent 12px);
    z-index: 1;
  }
}

