/* Montserrat Font definitions */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* General Layout Utils */
.hidden {
  display: none;
}

/* Hero Section Basics */
.hero-slider {
  position: relative;
  z-index: 1;
}

/* Custom Flatpickr Styling from form.php */
.flatpickr-calendar {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: 'Montserrat', sans-serif;
}

.flatpickr-months {
  background: white;
  border-radius: 8px 8px 0 0;
}

.flatpickr-current-month {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.flatpickr-weekdays {
  background: white;
  font-weight: 600;
}

.flatpickr-weekday {
  color: #6b7280;
  font-size: 11px;
}

.flatpickr-day {
  color: #374151;
  border-radius: 6px;
  font-weight: 500;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

.flatpickr-day.today {
  border-color: #D4AF37;
  color: #D4AF37;
}

.flatpickr-day.selected {
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: white !important;
  font-weight: 600;
}

.flatpickr-day.selected:hover {
  background: #D4AF37 !important;
  border-color: #D4AF37 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #D4AF37;
}

.flatpickr-day.disabled {
  color: #d1d5db;
}

/* Multiple months styling */
.flatpickr-calendar.multiMonth .flatpickr-days {
  border-right: 1px solid #e5e7eb;
}

.flatpickr-calendar.multiMonth .flatpickr-days:last-child {
  border-right: none;
}

/* Suggest menu dropdown styling */
.suggest-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 50;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
}

.suggest-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover {
  background-color: #f9fafb;
  color: #d4af37;
}

/* Visibility Responsive Utils */
.desktop-view {
  display: none !important;
}

@media screen and (min-width: 1024px) {
  .desktop-view {
    display: flex !important;
  }

  .mobile-view {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  .mobile-view {
    display: flex !important;
  }

  .desktop-view {
    display: none !important;
  }
}

/* --- Popular Routes Section (Rota) --- */
:root {
  --vip-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-card {
  transition: var(--vip-transition);
  position: relative;
  z-index: 1;
}

.vip-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(197, 160, 40, 0.15);
}

.vip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 0 rgba(197, 160, 40, 0);
  transition: var(--vip-transition);
  pointer-events: none;
  z-index: -1;
}

.vip-card:hover::after {
  box-shadow: 0 0 30px rgba(197, 160, 40, 0.2);
}

/* Liquid Pagination */
.swiper-pagination-popular .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #1A1A1A;
  opacity: 1;
  border-radius: 20px;
  transition: var(--vip-transition);
}

.swiper-pagination-popular .swiper-pagination-bullet-active {
  width: 32px;
  background: #EECB77;
}

/* Force Equal Heights */
.popular-routes-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.popular-routes-swiper .vip-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Fixed Image Height */
.card-image-container {
  height: 240px;
  flex-shrink: 0;
}

/* Info Modal Styles */
#info-modal .modal-content {
  transition: var(--vip-transition);
  transform: scale(0.95);
  opacity: 0;
}

#info-modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

#info-modal.active #info-backdrop {
  opacity: 1;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #C5A028;
  border-radius: 10px;
}

/* Fleet Pagination - Dark Theme */
.swiper-pagination-fleet .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #1A1A1A;
  opacity: 1;
  border-radius: 20px;
  transition: var(--vip-transition);
}

.swiper-pagination-fleet .swiper-pagination-bullet-active {
  width: 32px;
  background: #EECB77;
}

/* Premium Payment CSS - Tailwind Optimized */

/* 3D Card Scene & Animations */
.card-scene {
  perspective: 1000px;
}

.credit-card {
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.credit-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-face.back {
  transform: rotateY(180deg);
}

/* Card Type Specific Gradients */
.card-face.visa {
  background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
}

.card-face.mastercard {
  background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
}

.card-face.amex {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.card-face.discover {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

/* Hologram Effect */
.hologram {
  position: absolute;
  top: 50%;
  right: 60px;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.3) 25%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.3) 75%,
      rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.4;
  }
}

/* Glassmorphism Overlay */
.glass-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(4px);
}

/* Card Chip Effect */
.chip {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
}

.chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
}

.chip::after {
  content: '';
  position: absolute;
  left: 33%;
  top: 0;
  width: 33%;
  height: 100%;
  border-left: 1px solid rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

/* Input Validation States */
.input-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
}

.input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
  animation: shake 0.5s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Success Checkmark */
.checkmark {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  animation: scaleIn 0.3s ease-out;
}

.checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Card Brand Logos */
.card-brand-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-brand-logo.active {
  opacity: 1;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Blob Animations */
@keyframes blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Card Focus Zoom */
.card-zoom {
  animation: zoomPulse 0.3s ease-out;
}

@keyframes zoomPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* Error Message */
.error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Animation */
@keyframes successPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.success-animation {
  animation: successPulse 0.6s ease-out;
}

/* Responsive Touch Targets */
@media (max-width: 768px) {
  .card-scene {
    max-width: 340px !important;
    height: 220px !important;
  }

  .card-number-display {
    font-size: 18px !important;
  }
}