/* AR International Custom Branding Styles */
:root {
  --brand-navy: #1A2B35;
  --brand-navy-dark: #0E171D;
  --brand-red: #E5292D;
  --brand-red-dark: #C01A1E;
  --brand-red-light: #FFF0F0;
}

html,
body {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========================================================
   BENGALI TYPOGRAPHY & GLYPH ANTI-CLIPPING FIXES
   Prevents top/bottom clipping of কার (ি, ী, ু, ূ, ৃ) & ফলা (্র, ্ন, ্য)
   ======================================================== */
html, body, button, input, optgroup, select, textarea {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif !important;
}

/* Safe line-heights for headings with Bengali text */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.42 !important;
  padding-top: 0.04em;
  padding-bottom: 0.06em;
}

/* Override Tailwind's tight line-heights that clip Bengali ascenders/descenders */
.text-xs {
  line-height: 1.55 !important;
}
.text-sm {
  line-height: 1.6 !important;
}
.text-base {
  line-height: 1.65 !important;
}
.text-lg, .text-xl {
  line-height: 1.52 !important;
}
.text-2xl, .text-3xl, .text-4xl, .text-5xl {
  line-height: 1.38 !important;
}
.leading-none {
  line-height: 1.35 !important;
}
.leading-tight {
  line-height: 1.42 !important;
}
.leading-snug {
  line-height: 1.48 !important;
}

/* Prevent vertical clipping in native <select>, <input>, <textarea>, and <button> */
select,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea {
  line-height: 1.6 !important;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

select {
  min-height: 2.75rem;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

select option {
  line-height: 1.65;
  padding: 6px 8px;
}

input::placeholder,
textarea::placeholder {
  line-height: 1.55 !important;
}

/* Prevent overflow:hidden in .truncate and .line-clamp-* from shaving off Bengali matras */
.truncate {
  line-height: 1.58 !important;
  padding-top: 0.08em;
  padding-bottom: 0.12em;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
  line-height: 1.58 !important;
  padding-top: 0.06em;
  padding-bottom: 0.1em;
}

label,
button,
a,
span {
  line-height: 1.5;
}

/* Subtle glow */
.glow-red {
  box-shadow: 0 4px 20px -2px rgba(229, 41, 45, 0.4);
}
.glow-red:hover {
  box-shadow: 0 8px 25px -2px rgba(229, 41, 45, 0.55);
}

.glow-navy {
  box-shadow: 0 4px 20px -2px rgba(26, 43, 53, 0.4);
}

/* Stepper Timeline */
.step-item {
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #E2E8F0;
  z-index: 1;
}

.step-item.completed:not(:last-child)::after {
  background-color: #10B981;
}

.step-item.active:not(:last-child)::after {
  background: linear-gradient(to right, #10B981, #E2E8F0);
}

/* Pulse badge */
@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.animate-soft-pulse {
  animation: softPulse 2s infinite ease-in-out;
}

/* ========================================================
   PRINT STYLES FOR OFFICIAL TRACKING SLIP (1-PAGE A4)
   ======================================================== */
@media screen {
  #printReceiptArea {
    display: none !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm 10mm 12mm;
  }

  /* Hide entire website completely from layout so height is strictly zero */
  body > *:not(#printReceiptArea) {
    display: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #printReceiptArea {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .no-print {
    display: none !important;
  }
}

/* Facebook-style Reactions Dock */
.reaction-dock {
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.22), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
  animation: reactionDockPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: auto;
  user-select: none;
}

/* Invisible hover bridge connecting dock directly to the trigger button */
.reaction-dock::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

/* Extended buffer zone around the dock to prevent accidental closure */
.reaction-dock::before {
  content: '';
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: -20px;
  right: -20px;
  background: transparent;
  z-index: -1;
  pointer-events: auto;
}

/* Force visible when active via JS or focus */
.reaction-dock.dock-visible {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@keyframes reactionDockPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reaction-emoji-btn {
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.reaction-emoji-btn:hover {
  transform: scale(1.35) translateY(-6px);
}

/* ========================================================
   LUXURY AVIATION & VISA PRELOADER SCREEN
   ======================================================== */
#sitePreloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #070F16;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(229, 41, 45, 0.22) 0%, rgba(26, 43, 53, 0.45) 38%, rgba(7, 15, 22, 0.98) 75%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    linear-gradient(160deg, #0B1620 0%, #070F16 55%, #0D1B24 100%);
  color: #ffffff;
  user-select: none;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s;
}

#sitePreloader.preloader-hide {
  opacity: 0 !important;
  transform: scale(1.035);
  pointer-events: none !important;
  visibility: hidden;
}

.preloader-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 20%, transparent 80%);
  pointer-events: none;
}

.preloader-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 2rem 2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  border-radius: 28px;
  background: rgba(17, 30, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 50px -10px rgba(229, 41, 45, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes preloaderOrbitCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderOrbitCCW {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

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

@keyframes preloaderShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.preloader-orbit-cw {
  animation: preloaderOrbitCW 5.5s linear infinite;
}

.preloader-orbit-ccw {
  animation: preloaderOrbitCCW 9s linear infinite;
}

.preloader-logo-pod {
  animation: preloaderFloat 3s ease-in-out infinite;
  box-shadow:
    0 12px 30px -6px rgba(0, 0, 0, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 0 25px rgba(229, 41, 45, 0.3);
}

.preloader-bar-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: preloaderShimmer 1.4s infinite;
}

