/* indyaTravels Design System & Skeuomorphic/Glassmorphic Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #23b353;
  --primary-hover: #1c9b45;
  --primary-glow: rgba(35, 179, 83, 0.15);
  
  --secondary: #004aad;
  --secondary-hover: #003680;
  --secondary-glow: rgba(0, 74, 173, 0.15);
  
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  
  /* Skeuomorphic & Glassmorphic variables */
  --shadow-raised: 
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 
    0 8px 10px -6px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
    
  --shadow-button: 
    0 4px 6px -1px rgba(0, 74, 173, 0.15), 
    0 2px 4px -1px rgba(0, 74, 173, 0.1),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    
  --shadow-button-green: 
    0 4px 6px -1px rgba(35, 179, 83, 0.2), 
    0 2px 4px -1px rgba(35, 179, 83, 0.1),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    
  --shadow-sunken: 
    inset 1px 2px 4px rgba(15, 23, 42, 0.06), 
    0 1px 0 rgba(255, 255, 255, 0.8);
    
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.logo span.indya {
  color: var(--secondary);
}

.logo span.travels {
  color: var(--primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow-button);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.book-btn-nav {
  background: var(--secondary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.book-btn-nav:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.book-btn-nav:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 74, 173, 0.4), rgba(35, 179, 83, 0.15)), url('images/hero.jpg') no-repeat center center/cover;
  padding: 0 1rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(15, 23, 42, 0.45));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 400;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Search bar inside Hero (Glassmorphism & Skeuomorphism combined) */
.hero-search-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: 20px;
  box-shadow: var(--glass-shadow), 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.search-inputs {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .search-inputs {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero {
    height: auto;
    padding: 6rem 1rem 3rem 1rem;
  }
}

.search-field {
  position: relative;
  text-align: left;
}

.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}

.search-field input, .search-field select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow-sunken);
  transition: all 0.2s ease;
  outline: none;
}

.search-field select {
  appearance: none;
  cursor: pointer;
}

.search-field input:focus, .search-field select:focus {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sunken), 0 0 0 3px var(--secondary-glow);
}

.search-field svg {
  position: absolute;
  left: 0.8rem;
  top: 1.9rem;
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}

.search-btn {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--secondary-hover), var(--secondary));
  box-shadow: 0 6px 12px rgba(0, 74, 173, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.search-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 74, 173, 0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* Category Quick Filter Tags */
.category-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cat-tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cat-tag:hover {
  background: white;
  color: var(--secondary);
  transform: translateY(-2px);
}

.cat-tag.active {
  background: white;
  color: var(--secondary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Main Browse Area */
.main-layout {
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-raised);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group h3 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label:hover {
  color: var(--text-main);
}

.price-range-container {
  padding: 0.5rem 0;
}

.price-range-container input {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
}

.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.reset-filters-btn {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.reset-filters-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

/* Package List Area */
.packages-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.results-count span {
  color: var(--text-main);
  font-weight: 800;
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--surface-color);
  color: var(--text-main);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sunken);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}

/* Card Grid styling (Skeuomorphic cards with glass details) */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.package-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 35px -10px rgba(0, 0, 0, 0.08), 
    0 10px 15px -8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #cbd5e1;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.package-card:hover .card-img {
  transform: scale(1.05);
}

/* Glassmorphic tags over images */
.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  text-transform: uppercase;
}

.card-badge-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-badge-rating span {
  color: var(--text-main);
}

.card-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-duration {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.card-vendor {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-inclusions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.inclusion-tag {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.card-price {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
}

.card-price-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-button-green);
  transition: all 0.2s ease;
}

.card-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 4px 8px rgba(35, 179, 83, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.card-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(35, 179, 83, 0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-main);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-raised);
}

.page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: var(--text-light);
}

.page-btn.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  box-shadow: var(--shadow-button);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modals & Flow Drawers (Glassmorphism & Sleuomorphic Forms) */
.overlay-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.overlay-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  box-shadow: var(--glass-shadow), 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.overlay-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.4);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.close-modal-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(255,255,255,0.4);
}

/* Package Detail View Elements */
.detail-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

.meta-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-raised);
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.detail-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.inclusions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.inclusion-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.inclusion-item svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Pricing Card Breakdown */
.pricing-breakdown {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-raised);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.pricing-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0;
}

.pricing-row span.val {
  font-weight: 600;
  color: var(--text-main);
}

.pricing-row.total span.val {
  font-weight: 800;
  color: var(--secondary);
}

/* Multi-Step Flow Container */
.flow-container {
  display: none;
}

.flow-container.active {
  display: block;
}

/* Step Bar Visualizer */
.flow-steps-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
}

.flow-steps-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.flow-progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--primary);
  z-index: 2;
  transform: translateY(-50%);
  transition: width 0.3s ease;
}

.flow-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 3px solid var(--border-color);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  position: relative;
  transition: all 0.3s ease;
}

.flow-step-node.active {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 0 4px var(--secondary-glow);
}

.flow-step-node.completed {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.flow-step-node .node-label {
  position: absolute;
  top: 38px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.flow-step-node.active .node-label {
  color: var(--secondary);
}

.flow-step-node.completed .node-label {
  color: var(--primary);
}

/* Auth / Input UI */
.skeuo-input-container {
  margin-bottom: 1.25rem;
}

.skeuo-input-container label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.skeuo-input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--surface-color);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-sunken);
  outline: none;
  transition: all 0.2s ease;
}

.skeuo-input-field:focus {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sunken), 0 0 0 3px var(--secondary-glow);
}

.skeuo-btn {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
  color: white;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.skeuo-btn:hover {
  background: linear-gradient(135deg, var(--secondary-hover), var(--secondary));
  box-shadow: 0 6px 12px rgba(0, 74, 173, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.skeuo-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 74, 173, 0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.skeuo-btn-green {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: var(--shadow-button-green);
}

.skeuo-btn-green:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 6px 12px rgba(35, 179, 83, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.skeuo-btn-green:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(35, 179, 83, 0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* OTP Code Box Grid */
.otp-box-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.otp-box-input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sunken);
  outline: none;
  transition: all 0.2s ease;
}

.otp-box-input:focus {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sunken), 0 0 0 3px var(--secondary-glow);
}

.otp-timer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

.otp-timer span {
  color: var(--secondary);
}

/* Traveler Details Form Grid */
.travelers-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

.traveler-form-card {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-raised);
}

.traveler-form-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.traveler-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .traveler-row {
    grid-template-columns: 1fr;
  }
}

/* Skeuomorphic Payment Card View */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-tab-buttons {
  display: flex;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 0.25rem;
  box-shadow: var(--shadow-sunken);
  margin-bottom: 1.25rem;
}

.payment-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.payment-tab-btn.active {
  background: var(--surface-color);
  color: var(--secondary);
  box-shadow: var(--shadow-raised);
}

.payment-method-container {
  display: none;
}

.payment-method-container.active {
  display: block;
}

/* Skeuomorphic Credit Card Display */
.card-wrapper {
  perspective: 1000px;
  margin: 0 auto 1.5rem auto;
  width: 100%;
  max-width: 320px;
  height: 190px;
}

.credit-card-mock {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-radius: 15px;
}

.credit-card-mock.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding: 1.25rem;
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.card-back {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  transform: rotateY(180deg);
  padding: 1.25rem 0;
}

.card-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  font-style: italic;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  border-radius: 6px;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.1);
}

.card-number {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 1.5rem 0 0.5rem 0;
  text-shadow: 1px 2px 2px rgba(0,0,0,0.6);
}

.card-holder-exp {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card-holder-name {
  font-weight: 600;
}

.card-stripe {
  height: 40px;
  background: #000000;
  width: 100%;
}

.card-signature-cvv {
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.signature-area {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 4px, #f1f5f9 4px, #f1f5f9 8px);
  height: 35px;
  flex-grow: 1;
  border-radius: 4px;
}

.cvv-display-box {
  background: white;
  color: #0f172a;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  width: 42px;
  text-align: center;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.2);
}

/* UPI Payment view */
.upi-qr-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-raised);
}

.upi-qr-image {
  width: 140px;
  height: 140px;
  margin: 0.5rem auto;
  border: 1px solid #cbd5e1;
  padding: 0.5rem;
  border-radius: 8px;
  background: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upi-qr-image::after {
  content: 'UPI MOCK QR';
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-light);
  position: absolute;
  bottom: 4px;
}

.upi-apps-strip {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.upi-app-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upi-app-btn:hover {
  background: #f1f5f9;
  color: var(--secondary);
  border-color: var(--secondary);
}

/* Processing View */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.spinner-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid rgba(0, 74, 173, 0.1);
  border-top-color: var(--secondary);
  animation: spin 1s infinite linear;
  box-shadow: 0 0 15px var(--secondary-glow);
  margin-bottom: 1.5rem;
}

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

/* Success Card Boarding Pass styling */
.success-card {
  text-align: center;
  padding: 1.5rem;
}

.success-badge {
  width: 64px;
  height: 64px;
  background: #e6f7ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 20px var(--primary-glow);
}

.success-badge svg {
  width: 32px;
  height: 32px;
}

.bp-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
}

.bp-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.15rem;
}

/* Booking Receipt Document */
.receipt-doc {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1.5rem auto;
  max-width: 640px;
  text-align: left;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}

.receipt-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--secondary);
}

.receipt-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.receipt-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  flex-shrink: 0;
}

.receipt-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.receipt-brand-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.receipt-doc-meta {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.receipt-doc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.receipt-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.receipt-section {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.receipt-section:last-of-type {
  border-bottom: none;
}

.receipt-section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.receipt-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
}

.receipt-itinerary {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.receipt-itinerary li {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.receipt-itinerary li strong {
  color: var(--secondary);
}

.receipt-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.receipt-price-table td {
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.receipt-price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

.receipt-price-total td {
  border-top: 1px solid var(--border-color);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  font-weight: 800 !important;
  font-size: 1rem;
  color: var(--primary) !important;
}

.receipt-terms ol {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.receipt-terms li {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.receipt-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  padding: 1rem 1.5rem;
  background: var(--bg-color);
}

.receipt-actions-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 640px;
  margin: 1.5rem auto 0 auto;
}

@media print {
  /* display:none removes these from layout entirely. The previous
     visibility:hidden approach kept their layout height reserved (including
     the full 500-card package listing behind the modal), which produced
     several pages of blank background before/after the receipt printed. */
  header, #hero-banner, main.main-layout, #details-modal, .site-footer,
  .modal-header, .flow-steps-bar,
  .success-badge, .receipt-actions-bar {
    display: none !important;
  }
  .success-card > h2, .success-card > p {
    display: none !important;
  }

  /* Neutralize the fixed/height-clipped modal chrome the receipt sits inside,
     otherwise the print engine clips it to whatever fit on-screen (max-height:
     90vh + overflow:hidden) instead of letting it paginate naturally. */
  .overlay-modal {
    position: static !important;
    inset: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    display: block !important;
  }
  .modal-content {
    position: static !important;
    max-height: none !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    transform: none !important;
  }
  .modal-body {
    overflow: visible !important;
    padding: 0 !important;
  }

  #receipt-doc {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .receipt-letterhead, .receipt-status-bar, .receipt-section, .receipt-footer {
    page-break-inside: avoid;
  }
}

/* Failure Card View */
.failure-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.failure-badge {
  width: 64px;
  height: 64px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.failure-badge svg {
  width: 32px;
  height: 32px;
}

.failure-details {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 1.25rem auto;
}

/* Footer Section */
footer.site-footer {
  background: #0f172a;
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand .logo-text span.indya { color: #ffffff; }
.footer-brand .logo-text span.travels { color: var(--primary); }

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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

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