:root {
  /* New Color Scheme: Royal Blue + Sunset Orange */
  --primary-color: #1e3a8a; /* Royal Blue */
  --primary-light: #2563eb;
  --primary-dark: #1e3a8a;

  --accent-color: #ea580c; /* Sunset Orange */
  --accent-light: #f97316;
  --accent-dark: #c2410c;

  /* Backgrounds */
  --bg-cream: #fdfbf7; /* Soft cream background */
  --bg-light: #f3f4f6;
  --bg-dark: #111827;

  /* Text Colors */
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;

  /* Fonts */
  --font-sans: "Outfit", sans-serif;
  --font-serif: "Playfair Display", serif;

  /* Premium UI Tokens */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --shadow-glow-primary: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
  --shadow-glow-accent: 0 10px 25px -5px rgba(234, 88, 12, 0.3);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.tracking-wide {
  letter-spacing: 0.1em;
}

.tracking-wider {
  letter-spacing: 0.15em;
}

.l-height-1 {
  line-height: 1.2;
}

.l-height-2 {
  line-height: 1.6;
}

.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Color Utilities */
.text-primary {
  color: var(--primary-color) !important;
}
.text-accent {
  color: var(--accent-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-accent {
  background-color: var(--accent-color) !important;
}
.bg-cream {
  background-color: var(--bg-cream) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transition: all 0.4s var(--ease-premium);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-primary) !important;
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transition: all 0.4s var(--ease-premium);
}
.btn-accent:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-accent) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.4s var(--ease-premium);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-primary) !important;
}

/* Navbar */
.navbar {
  transition: all 0.4s ease;
}
.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
}
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.2) 0%,
    rgba(17, 24, 39, 0.4) 40%,
    rgba(30, 58, 138, 0.8) 100%
  );
}

/* Glassmorphism Form */
.glass-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 58, 138, 0.3); /* using primary-color transparent */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-radius: 16px !important;
  padding: 1.5rem !important;
}

.glass-form h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem !important;
}

.glass-form p {
  font-size: 0.85rem;
  margin-bottom: 1rem !important;
  line-height: 1.4;
}

/* Super High Specificity for Form Focus - Fixing the White Background Issue */
#quote-form .form-control,
#quote-form .form-select,
.glass-form .form-control,
.glass-form .form-select,
.hero-section .form-control,
.hero-section .form-select {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #333 !important;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  height: 46px !important;
  min-height: 46px !important;
  line-height: 1.25;
  transition: all 0.3s ease;
  padding-top: 0.2rem !important;
  padding-bottom: 0.15rem !important;
}

/* Specific fix for the textarea height so it doesn't get confined by the 3rem globally */
#quote-form textarea.form-control {
  height: 80px !important;
}

#quote-form .form-control:focus,
#quote-form .form-select:focus,
.glass-form .form-control:focus,
.glass-form .form-select:focus,
.hero-section .form-control:focus,
.hero-section .form-select:focus {
  box-shadow: none !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  background-color: #fff !important;
  color: #000 !important;
  outline: none !important;
}

/* Animated Border Effect - Line draws from label clockwise */
.form-floating {
  position: relative;
  border-radius: 8px; /* Match input border radius */
}

.form-floating::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  pointer-events: none;
  z-index: 4;
  clip-path: polygon(0rem 0, 0rem 0, 0rem 0, 0rem 0, 0rem 0, 0rem 0);
  transition: clip-path 0.3s ease-out;
}

.form-floating:focus-within::after {
  clip-path: polygon(5rem 0, 100% 0, 100% 100%, 0 100%, 0 0, 5rem 0);
}

/* Placeholder Handling for Floating Labels */
.glass-form .form-control::placeholder,
.hero-section .form-control::placeholder {
  color: transparent !important;
  opacity: 0;
}

/* Ensure Floating Label is visible */
.form-floating > label {
  color: rgba(0, 0, 0, 0.6) !important;
  padding: 0rem 0.75rem !important;
  line-height: 3;
  font-size: 0.9rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color) !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  transform: scale(0.85) translateY(-0.75rem) translateX(0.8rem) !important;
  z-index: 5;
  height: auto;
  width: auto;
  border-radius: 4px;
  line-height: 1;
}

/* Remove Bootstrap's default white background on label::after */
.form-floating > label::after {
  background-color: transparent !important;
}

/* Fix for auto-fill affecting background color */
.glass-form .form-control:-webkit-autofill,
.glass-form .form-control:-webkit-autofill:hover,
.glass-form .form-control:-webkit-autofill:focus,
.glass-form .form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.navbar-brand img {
    height: 50px;
}

/* Destination Cards */
.destination-card {
  transition: transform 0.5s var(--ease-premium);
}
.destination-card:hover {
  transform: translateY(-8px);
}
.destination-card .img-wrapper {
  transition: all 0.5s var(--ease-premium);
  box-shadow: var(--shadow-soft);
}
.destination-card:hover .img-wrapper {
  box-shadow: var(--shadow-glow-accent) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}
.tr-scale {
  transition: transform 0.8s var(--ease-premium);
}
.destination-card:hover .tr-scale {
  transform: scale(1.08); /* Elegantly scaled */
}

/* Dividers */
.section-divider {
  height: 4px;
  width: 60px;
  background: linear-gradient(
    to right,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 4px;
}

/* Premium Utilities */
.shadow-premium {
  box-shadow: var(--shadow-soft) !important;
  transition: box-shadow 0.4s var(--ease-premium);
}
.shadow-premium:hover {
  box-shadow: var(--shadow-hover) !important;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

/* Tour Packages Layout */
.tour-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.tour-row:last-child {
  border-bottom: none;
}
.image-reveal img {
  transition: transform 1.2s var(--ease-premium);
}
.image-reveal:hover img {
  transform: scale(1.04);
}

.feature-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}
.feature-list li i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Stats Cards */
.stat-card-new {
  transition: all 0.4s var(--ease-premium);
}
.stat-card-new:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-primary) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
.stat-card-new .icon-box {
  transition: transform 0.4s var(--ease-premium);
}
.stat-card-new:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

/* Animations */
.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}

/* Utilities */
.hover-lift {
  transition:
    transform 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.pt-6 {
  padding-top: 6rem;
}

/* Footer */
footer .social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}
footer .social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}
footer .footer-links a,
footer .contact-info a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 2;
}
footer .footer-links a:hover,
footer .contact-info a:hover {
  color: var(--accent-color);
}
.cert-logos img {
  width: 45px;
  border-radius: 4px;
  background: white;
  padding: 2px;
}

/* Hover Utils */
.btn-hover-filled:hover {
  background-color: var(--primary-color);
  color: white !important;
}
.hover-text-white {
  transition: color 0.3s ease;
}
.hover-text-white:hover {
  color: white !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 100vh;
  }
  .display-3 {
    font-size: 2.5rem;
  }
  #quick-inquiry {
    margin-top: -30px;
  }
  .tour-row {
    padding-bottom: 2rem !important;
  }
}
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 100vh;
  }
  .display-3 {
    font-size: 2rem;
  }
  .py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Thank You Page Styles */
.thankyoumain {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyouin {
  width: 50%;
  height: 400px;
  background: #fff;
  box-shadow: 0 0px 20px 0px #0000002e;
  text-align: center;
  border-radius: 20px;
}

.thankyouin img {
  width: 50%;
  filter: hue-rotate(273deg);
}

.cancel img {
  width: 20% !important;
  margin-top: 100px;
}

.text-danger {
  color: red !important;
}

.thankyouin h3 {
  color: #000;
  font-size: 35px;
  margin-top: 0;
}

.thankyouin p {
  font-size: 16px;
  letter-spacing: 1px;
  color: #000;
}

@media (max-width: 991px) {
  .thankyouin {
    width: 100%;
  }
}
