/* Custom Styles for Jakris Cleaning - Spesialis Cuci Karpet, Kasur & Sofa */

/* Service Card Transitions */
.service-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Smooth details animation */
details summary::-webkit-details-marker {
  display: none;
}

/* Modal animation */
@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleUp {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

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

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

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

/* Before / After Comparison Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, var(--ba-pos, 50%) 0, var(--ba-pos, 50%) 100%, 0 100%);
  transition: clip-path 0.05s ease-out;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: #ffffff;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  z-index: 10;
  transition: left 0.05s ease-out;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 13px;
  border: 2px solid #2563eb;
  pointer-events: none;
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
  margin: 0;
  padding: 0;
}

/* Interactive Consultation & Booking Chips */
.chip-btn,
.date-quick-btn,
.time-slot-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.chip-btn.active,
.date-quick-btn.active,
.time-slot-btn.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35) !important;
  font-weight: 700 !important;
}

#booking-step-datetime {
  transition: box-shadow 0.3s ease-in-out;
}

/* WhatsApp Live Chat Bubble */
.wa-speech-bubble {
  position: relative;
  border-radius: 1rem 1rem 0.25rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  border: 1px solid #dbeafe;
}

.wa-speech-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent #ffffff transparent;
}

/* Live Activity Toast */
@keyframes slideInToast {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-toast {
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse Glow Effects */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Modern Clean Airbnb/Gojek Booking Form Styles */
.booking-service-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.booking-service-card.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25) !important;
}

.booking-service-card.active .check-icon {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.booking-service-card.active .service-icon-box {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

.date-strip-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.date-strip-btn.active {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.date-strip-btn.active .day-label,
.date-strip-btn.active .month-label {
  color: #dbeafe !important;
}

.date-strip-btn.active .day-num {
  color: #ffffff !important;
}

.time-slot-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.time-slot-pill.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25) !important;
}

.time-slot-pill.active .time-title {
  color: #1e3a8a !important;
}

.time-slot-pill.active .time-hours {
  color: #2563eb !important;
}

.condition-chip {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.condition-chip.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

/* Hide scrollbar for clean strip */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Branch City Selection Pills */
.branch-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.branch-pill.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.branch-pill .branch-check {
  opacity: 0;
  color: #2563eb;
  transition: opacity 0.2s ease;
}

.branch-pill.active .branch-check {
  opacity: 1;
}

/* Interactive Vector Map & Pions (KliknClean inspired) */
.pion-group {
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pion-group * {
  cursor: pointer;
  pointer-events: all;
}

.pion-group:hover,
.pion-group.active-pion {
  transform: scale(1.12) translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.4));
}

.pion-group.active-pion rect {
  fill: #1d4ed8 !important;
  stroke: #60a5fa !important;
  stroke-width: 1.5px;
}

.branch-card-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.branch-card-btn:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.branch-card-btn.active-branch-card {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3) !important;
}

.branch-card-btn.active-branch-card span:first-child {
  color: #1d4ed8 !important;
}

