/* ============================================
   GLOBAL STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   CARD STYLES
   ============================================ */
.uh-package-card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
}

.uh-package-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* ============================================
   IMAGE CONTAINER
   ============================================ */
.uh-package-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
}

.uh-package-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.uh-package-card:hover .uh-package-image-container img {
  transform: scale(1.05);
}

/* ============================================
   BADGE STYLES
   ============================================ */
.uh-package-badges {
  z-index: 10;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.uh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 9999px;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.uh-badge:hover {
  transform: scale(1.05);
}

.is-haji {
  background-color: #1e40af;
}

.is-umroh {
  background-color: #059669;
}

.is-promo {
  background-color: #dc2626;
}

.is-other {
  background-color: #7c3aed;
}

/* ============================================
   CARD CONTENT
   ============================================ */
.uh-package-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.uh-package-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.uh-package-info {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-grow: 1;
}

.uh-package-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uh-package-info i {
  color: #6b7280;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

/* ============================================
   PRICE SECTION
   ============================================ */
.uh-package-price-box {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.uh-price-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.uh-package-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  line-height: 1.2;
}

/* ============================================
   BUTTONS
   ============================================ */
.uh-package-buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.uh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: #fff;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
}

.uh-btn:hover {
  transform: translateY(-1px);
}

.uh-btn:active {
  transform: scale(0.98);
}

.uh-calc-button {
  background-color: #2563eb;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.3);
}

.uh-calc-button:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.uh-consult-button-tw {
  background-color: #16a34a;
  box-shadow: 0 1px 3px 0 rgba(22, 163, 74, 0.3);
}

.uh-consult-button-tw:hover {
  background-color: #15803d;
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.4);
}

.uh-detail-button {
  background-color: #0ea5e9;
  box-shadow: 0 1px 3px 0 rgba(14, 165, 233, 0.3);
}

.uh-detail-button:hover {
  background-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.4);
}
/* ============================================
   GRID LAYOUT
   ============================================ */
.uhp-package-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .uhp-package-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .uh-package-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .uh-btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
  }
}

@media (min-width: 1024px) {
  .uhp-package-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .uhp-package-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   SWIPER CONTAINER
   ============================================ */
.uhp-swiper-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.swiper {
  width: 100%;
  padding-bottom: 40px;
}

.swiper-slide {
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  color: #1f2937;
      background-color: rgb(67 67 67 / 95%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #d1d5db;
  opacity: 1;
  transition: all 0.2s ease;
}

.swiper-pagination-bullet-active {
  background-color: #2563eb;
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE DISPLAY
   ============================================ */
@media (max-width: 767px) {
  .uhp-package-grid {
    display: none !important;
  }
  
  .uhp-mobile-swiper {
    display: block !important;
  }
  
  .uhp-swiper-slide {
    flex: 0 0 calc(85% - 10px);
    margin-right: 15px;
  }
}

@media (min-width: 768px) {
  .uhp-mobile-swiper {
    display: none !important;
  }
  
  .uhp-desktop-grid {
    display: grid !important;
  }
}

/* ============================================
   MODAL STYLES
   ============================================ */
#calcModal,
#detailModal {
  position: fixed;
  top: 0; /* Tetapkan posisi ke 0 dari atas viewport */
  left: 0; /* Tetapkan posisi ke 0 dari kiri viewport */
  width: 100vw;  /* Pastikan lebar 100% dari viewport */
  height: 100vh; /* Pastikan tinggi 100% dari viewport */
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.6); /* Warna latar belakang dim (seperti di home.php) */
  backdrop-filter: blur(8px);   /* Efek blur pada latar belakang (seperti di home.php) */
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: none !important; /* PENTING: Menetralkan properti transform pada elemen induk */
}

#calcModal.show,
#detailModal.show {
  display: flex;
  opacity: 1;
}

.uhp-modal-content {
  background-color: #fff;
  border-radius: 1rem;
  width: 95%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

#calcModal.show .uhp-modal-content,
#detailModal.show .uhp-modal-content {
  transform: scale(1);
}

#closeCalcModal,
#closeDetailModal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 1.25rem;
}

#closeCalcModal:hover,
#closeDetailModal:hover {
  background-color: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
#calcForm select,
#calcForm input {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  width: 100%;
  font-size: 0.875rem;
}

#calcForm select:focus,
#calcForm input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

#calcForm label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.875rem;
}

#estimatedCost {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
}

#costDetails {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

#sendWhatsApp {
  background-color: #25d366;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(37, 211, 102, 0.3);
  font-size: 0.875rem;
  color: #fff !important;
}

#sendWhatsApp:hover {
  background-color: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.4);
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */
.uhp-more-dates,
.uhp-more-prices {
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background-color: rgba(37, 99, 235, 0.1);
  font-size: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-decoration: none;
  pointer-events: auto !important;
  user-select: none;
  min-height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uhp-more-dates:hover,
.uhp-more-prices:hover,
.uhp-more-dates:focus,
.uhp-more-prices:focus {
  color: #1d4ed8;
  background-color: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.uhp-more-dates:active,
.uhp-more-prices:active {
  transform: scale(0.98);
  background-color: rgba(37, 99, 235, 0.3);
}

.uhp-more-prices {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.uhp-tooltip {
  position: absolute;
  background-color: #fff;
  color: #1f2937;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  z-index: 10000 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  max-width: 350px;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
  pointer-events: auto !important;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.2s ease-out;
}

.uhp-tooltip.uhp-tooltip-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.uhp-tooltip:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  border-width: 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.uhp-tooltip-dates,
.uhp-tooltip-prices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uhp-tooltip-date,
.uhp-tooltip-price-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: background-color 0.2s ease;
}

.uhp-tooltip-date:last-child,
.uhp-tooltip-price:last-child {
  border-bottom: none;
}

.uhp-tooltip-date:hover,
.uhp-tooltip-price:hover {
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 0.25rem;
  margin: 0 -0.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.uhp-tooltip-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uhp-tooltip-price .room {
  font-weight: 500;
  color: #374151;
  flex: 1;
}

.uhp-tooltip-price .price {
  font-weight: 600;
  color: #059669;
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .uhp-more-dates,
  .uhp-more-prices {
    min-height: 44px;
    min-width: 44px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .uhp-tooltip {
    max-width: calc(100vw - 2rem);
    margin: 0 1rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-contrast: high) {
  .uhp-more-dates,
  .uhp-more-prices {
    border: 2px solid #2563eb;
    background-color: #fff;
  }
  
  .uhp-tooltip {
    border: 2px solid #000;
    background-color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uhp-more-dates,
  .uhp-more-prices,
  .uhp-tooltip {
    transition: none;
  }
  
  .uhp-more-dates:hover,
  .uhp-more-prices:hover {
    transform: none;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.animate-fade-in-scale {
  animation: fadeInScale 0.3s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uh-date-list {
  line-height: 1.5;
}

/* ============================================
   MOBILE SCROLL INDICATOR
   ============================================ */
.uhp-swiper-scroll-indicator {
  display: none;
  text-align: center;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.75rem;
  animation: pulse 2s infinite;
}

@media (max-width: 767px) {
  .uhp-swiper-scroll-indicator {
    display: block;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.uh-btn:focus,
button:focus,
select:focus,
input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.uhp-more-dates:focus,
.uhp-more-prices:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

@media (prefers-contrast: high) {
  .uh-package-card {
    border: 2px solid #000;
  }
  
  .uh-badge {
    border: 1px solid #000;
  }
}

/* ============================================
   PRICE DETAIL MODAL STYLES
   ============================================ */
#priceDetailModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5); /* Bisa diubah juga jika ada modal detail lain */
  backdrop-filter: blur(4px); /* Bisa diubah juga jika ada modal detail lain */
  opacity: 0;
  transition: opacity 0.3s ease;
}

#priceDetailModal.show {
  display: flex;
  opacity: 1;
}

.uhp-price-detail-modal-content {
  background-color: #fff;
  border-radius: 1rem;
  width: 95%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

#priceDetailModal.show .uhp-price-detail-modal-content {
  transform: scale(1);
}

#closePriceDetailModal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 1.25rem;
}

#closePriceDetailModal:hover {
  background-color: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

/* ============================================
   PRICE DETAIL ANIMATIONS
   ============================================ */
@keyframes priceItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uhp-price-item {
  animation: priceItemFadeIn 0.3s ease-out;
}

.uhp-price-item:nth-child(1) { animation-delay: 0.1s; }
.uhp-price-item:nth-child(2) { animation-delay: 0.2s; }
.uhp-price-item:nth-child(3) { animation-delay: 0.3s; }
.uhp-price-item:nth-child(4) { animation-delay: 0.4s; }
.uhp-price-item:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   BUTTON SPACING IMPROVEMENTS
   ============================================ */
.uh-package-buttons.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* ============================================
   ACCORDION STYLES
   ============================================ */
.accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.accordion-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.accordion-item.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.accordion-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  user-select: none;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.accordion-item.active .accordion-header {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-bottom-color: #e5e7eb;
}

.accordion-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #059669;
}

.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: #3b82f6;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fff;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1.5rem 1.25rem;
}

.accordion-body {
  display: grid;
  gap: 1.5rem;
}

/* ============================================
   COUNTER STYLES
   ============================================ */
.counter-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.counter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.counter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter-control {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.counter-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
  font-weight: 600;
  font-size: 1.125rem;
}

.counter-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.counter-btn:active {
  background-color: #e5e7eb;
  transform: scale(0.95);
}

.counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f9fafb;
}

.counter-input {
  flex: 1;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 600;
  color: #1f2937;
  background-color: #fff;
  padding: 0.5rem;
  min-width: 3rem;
}

/* ============================================
   AGE FIELDS STYLES
   ============================================ */
.age-fields-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.age-fields-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.age-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.age-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.age-field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.age-field-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: #fff;
}

.age-field-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* ============================================
   CALCULATION SUMMARY STYLES
   ============================================ */
.calc-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0ea5e9;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}

.calc-summary-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.calc-summary-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0369a1;
}

.calc-summary-details {
  font-size: 0.75rem;
  color: #0c4a6e;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* ============================================
   RESPONSIVE ACCORDION STYLES
   ============================================ */
@media (max-width: 640px) {
  .accordion-header {
    padding: 0.875rem 1rem;
  }
  
  .accordion-title {
    font-size: 0.875rem;
  }
  
  .accordion-price {
    font-size: 1rem;
  }
  
  .accordion-item.active .accordion-content {
    padding: 1.25rem 1rem;
  }
  
  .counter-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .age-fields-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
}

/* ============================================
   ACCORDION ANIMATIONS
   ============================================ */
@keyframes accordionSlideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes accordionSlideUp {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

.accordion-content.expanding {
  animation: accordionSlideDown 0.3s ease forwards;
}

.accordion-content.collapsing {
  animation: accordionSlideUp 0.3s ease forwards;
}

/* ============================================
   ENHANCED TOTAL CALCULATION STYLES
   ============================================ */
#totalEstimatedCost {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

#totalCostDetails {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================
   BUTTON ENHANCEMENTS FOR MODAL
   ============================================ */
#recalculateBtn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
  color: #fff !important;
}

#recalculateBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.35);
}

#sendWhatsAppCalc {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.25);
  transition: all 0.3s ease;
  color: #fff;
}

#sendWhatsAppCalc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(22, 163, 74, 0.35);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   ICON STYLES
   ============================================ */
.icon-adult {
  color: #3b82f6;
}

.icon-child {
  color: #d3a641;
}

.icon-age {
  color: #8b5cf6;
}

.icon-room {
  color: #059669;
}


/* ============================================
   ENHANCED BUTTON STYLES FOR PACKAGES
   ============================================ */
.uhp-packages-wrapper .uh-consult-button-tw,
.uhp-packages-wrapper .uh-calc-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.uhp-packages-wrapper .uh-consult-button-tw:hover,
.uhp-packages-wrapper .uh-calc-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Tombol Konsultasi - Hijau */
.uhp-packages-wrapper .uh-consult-button-tw {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

.uhp-packages-wrapper .uh-consult-button-tw:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

.uhp-packages-wrapper .uh-consult-button-tw:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3);
}

/* Tombol Kalkulasi - Biru */
.uhp-packages-wrapper .uh-calc-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.uhp-packages-wrapper .uh-calc-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.uhp-packages-wrapper .uh-calc-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Icon dalam tombol */
.uhp-packages-wrapper .uh-consult-button-tw img {
    width: 1.25rem;
    height: 1.25rem;
    filter: brightness(0) invert(1);
}

.uhp-packages-wrapper .uh-calc-button span {
    font-size: 1.1rem;
}

/* Efek loading untuk tombol */
.uhp-packages-wrapper .uh-consult-button-tw.loading,
.uhp-packages-wrapper .uhp-calc-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.uhp-packages-wrapper .uh-consult-button-tw.loading::after,
.uhp-packages-wrapper .uhp-calc-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Container tombol */
.uhp-packages-wrapper .uh-package-card .mt-4.pt-4.border-t.border-gray-200.space-y-2 {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}



/* ============================================
   DEPARTURE DATES TOOLTIP STYLES
   ============================================ */

/* More dates link styling */
.uhp-more-dates {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.uhp-more-dates:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Tooltip container */
.uhp-dates-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    z-index: 50;
    min-width: 120px;
    display: none !important; /* Default to hidden, force hide */
}

/* Show tooltip when has show class */
.uhp-dates-tooltip.show {
    display: block;
}

/* Tooltip arrow */
.uhp-dates-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 1rem;
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .uhp-dates-tooltip {
        left: auto;
        right: 0;
        white-space: normal;
        max-width: 200px;
    }
    
    .uhp-dates-tooltip::after {
        left: auto;
        right: 1rem;
    }
}

/* Ensure tooltip doesn't overflow container */
.uh-package-info {
    position: relative;
    overflow: visible;
}

/* Date display container */
.uh-package-info .flex.items-center.gap-2[title="Tanggal Keberangkatan"] {
    position: relative;
    overflow: visible;
}

.uh-package-info .flex.items-center.gap-2[title="Tanggal Keberangkatan"] .flex.items-center.gap-1 {
    position: relative;
    overflow: visible;
}
