/* ==========================================================================
   ADVANCED CONVERSION RATE OPTIMIZATION (CRO) SUITE - ULTRA PREMIUM EDITION
   Expedition Travel Agency
   ========================================================================== */

:root {
  --cro-primary: #0d6efd;
  --cro-primary-dark: #0a58ca;
  --cro-accent: #f59e0b;
  --cro-accent-hover: #d97706;
  --cro-green: #25d366;
  --cro-green-dark: #128c7e;
  --cro-dark: #020726;
  --cro-dark-surface: #0f172a;
  --cro-light-surface: #ffffff;
  --cro-border: #e2e8f0;
  --cro-text-main: #0f172a;
  --cro-text-muted: #64748b;
  --cro-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --cro-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --cro-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.22);
  --cro-radius: 14px;
  --cro-radius-sm: 8px;
}

/* --------------------------------------------------------------------------
   1. TOP URGENCY & TRUST ANNOUNCEMENT RIBBON
   -------------------------------------------------------------------------- */
.cro-top-announcement {
  background: linear-gradient(90deg, #020726 0%, #1e1b4b 50%, #020726 100%);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  position: relative;
  z-index: 1001;
  font-family: inherit;
}

.cro-top-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
}

.cro-announcement-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cro-top-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.cro-top-links a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.cro-top-links a:hover {
  color: #fbbf24;
}

.cro-top-cta-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

@media (max-width: 991px) {
  .cro-top-announcement {
    font-size: 11px;
    padding: 6px 10px;
    text-align: center;
  }
  .cro-top-links {
    display: none;
  }
  .cro-top-announcement-inner {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   2. STICKY MOBILE CONVERSION BAR
   -------------------------------------------------------------------------- */
.cro-sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 12px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.cro-sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.cro-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cro-btn-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cro-btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
}

.cro-btn-quote {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  animation: cro-pulse 2.2s infinite;
}

.cro-btn-call {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  height: 44px;
  border-radius: 50%;
}

@media (max-width: 991px) {
  .cro-sticky-mobile-bar {
    display: block;
  }
  body {
    padding-bottom: 76px !important;
  }
  .whatsapp-float {
    bottom: 85px !important;
    left: 15px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
  }
  .chatbot-container {
    bottom: 85px !important;
  }
}

/* --------------------------------------------------------------------------
   3. SOCIAL PROOF NOTIFICATION ENGINE (FOMO TOASTS)
   -------------------------------------------------------------------------- */
.cro-social-proof-toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9990;
  max-width: 340px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--cro-shadow-lg);
  border: 1px solid var(--cro-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cro-social-proof-toast.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cro-toast-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd 0%, #00d2ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.cro-toast-content {
  flex: 1;
}

.cro-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cro-text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}

.cro-toast-desc {
  font-size: 11px;
  color: var(--cro-text-muted);
  line-height: 1.3;
}

.cro-toast-time {
  font-size: 10px;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.cro-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  position: absolute;
  top: 6px;
  right: 8px;
  line-height: 1;
  transition: color 0.2s;
}

.cro-toast-close:hover {
  color: #334155;
}

@media (max-width: 991px) {
  .cro-social-proof-toast {
    bottom: 90px;
    left: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
  }
}

/* --------------------------------------------------------------------------
   4. UNIVERSAL QUICK QUOTE & EXIT INTENT MODALS
   -------------------------------------------------------------------------- */
.cro-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 38, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cro-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cro-modal-dialog {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--cro-shadow-lg);
  overflow: hidden;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.cro-modal-overlay.is-open .cro-modal-dialog {
  transform: scale(1) translateY(0);
}

.cro-modal-header {
  background: linear-gradient(135deg, #020726 0%, #0f172a 100%);
  color: #ffffff;
  padding: 22px 24px 18px;
  position: relative;
  border-bottom: 2px solid var(--cro-accent);
}

.cro-modal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.cro-modal-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
}

.cro-modal-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.cro-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cro-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.cro-modal-body {
  padding: 20px 24px 24px;
}

/* Quick Inquiry Chips */
.cro-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cro-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cro-chip:hover,
.cro-chip.is-selected {
  background: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
}

.cro-form-group {
  margin-bottom: 14px;
}

.cro-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cro-text-main);
  margin-bottom: 5px;
}

.cro-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--cro-radius-sm);
  font-size: 14px;
  color: var(--cro-text-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cro-input:focus {
  outline: none;
  border-color: var(--cro-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

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

.cro-btn-submit {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--cro-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
}

.cro-btn-submit:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
}

.cro-modal-guarantees {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #64748b;
}

.cro-modal-guarantees span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cro-modal-guarantees i {
  color: #059669;
}

/* --------------------------------------------------------------------------
   5. LIVE VIEWER & URGENCY BADGE (FOR TOUR & DESTINATION PAGES)
   -------------------------------------------------------------------------- */
.cro-live-viewers-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: var(--cro-shadow-sm);
}

.cro-flame-icon {
  color: #ea580c;
  animation: cro-flicker 1.5s infinite alternate;
}

@keyframes cro-flicker {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. MODERNIZED SIDEBAR CTA CARD (CTA.php)
   -------------------------------------------------------------------------- */
.cro-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--cro-shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cro-sidebar-card:hover {
  box-shadow: var(--cro-shadow-lg);
}

.cro-sidebar-header {
  background: linear-gradient(135deg, #020726 0%, #1e293b 100%);
  color: #ffffff;
  padding: 18px 20px;
  position: relative;
}

.cro-sidebar-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.cro-sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cro-sidebar-body {
  padding: 18px 20px;
}

.cro-trust-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.cro-trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.cro-trust-pill i {
  color: #059669;
  font-size: 13px;
}

.cro-direct-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.cro-direct-btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e 0%, #0d6e63 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.cro-direct-btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cro-direct-btn-call:hover {
  background: #e2e8f0;
  color: #0d6efd !important;
}

/* --------------------------------------------------------------------------
   7. ANIMATIONS & PULSES
   -------------------------------------------------------------------------- */
@keyframes cro-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes cro-green-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.cro-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  margin-right: 5px;
  animation: cro-green-pulse 2s infinite;
}
