/* ============================================
   GABRIEL TOUR — Booking (Chat-style Lead Capture)
   ============================================ */

.booking-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.booking-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.booking-bg video,
.booking-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.4);
  transform: scale(1.1);
}

.booking-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 35, 0.7);
}

/* ---- Chat Container ---- */

.chat-wrapper {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: var(--space-6) auto var(--space-12);
  padding: 0 var(--space-4);
}

.chat-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.chat-header h1 {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.chat-header p {
  color: rgba(248, 246, 241, 0.6);
  font-size: var(--text-sm);
}

.chat-container {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.chat-messages {
  padding: var(--space-5);
  min-height: 400px;
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ---- Chat Bubbles ---- */

.chat-bubble {
  display: flex;
  gap: var(--space-3);
  max-width: 85%;
  animation: fadeInUp 0.4s var(--ease-out) forwards;
}

.chat-bubble--agent {
  align-self: flex-start;
}

.chat-bubble--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
}

.chat-bubble--user .chat-avatar {
  background: var(--color-gold);
  color: var(--color-midnight);
}

.chat-text {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.chat-bubble--agent .chat-text {
  background: var(--color-ivory);
  color: var(--color-text-primary);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble--user .chat-text {
  background: var(--color-teal);
  color: var(--color-white);
  border-bottom-right-radius: var(--radius-sm);
}

/* ---- Typing Indicator ---- */

.typing-indicator {
  display: flex;
  gap: var(--space-3);
  align-self: flex-start;
  max-width: 85%;
}

.typing-dots {
  padding: var(--space-3) var(--space-4);
  background: var(--color-ivory);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Chat Options ---- */

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-2);
  animation: fadeInUp 0.4s var(--ease-out) forwards;
}

.chat-option {
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 2px solid var(--color-pearl);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.chat-option:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.chat-option.selected {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

.chat-option svg {
  width: 18px;
  height: 18px;
}

/* ---- Contact Options ---- */

.chat-options--contact .chat-option {
  flex: 1;
  min-width: 120px;
  justify-content: center;
  text-align: center;
}

.chat-option--whatsapp {
  border-color: var(--color-whatsapp);
  color: var(--color-whatsapp);
}

.chat-option--whatsapp:hover,
.chat-option--whatsapp.selected {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  color: var(--color-white);
}

/* ---- Chat Input ---- */

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-pearl);
  background: var(--color-white);
}

.chat-input-bar input,
.chat-input-bar textarea {
  flex: 1;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-pearl);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  resize: none;
}

.chat-input-bar input:focus,
.chat-input-bar textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}

.chat-input-bar input::placeholder,
.chat-input-bar textarea::placeholder {
  color: var(--color-text-muted);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--color-teal-light);
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
}

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

/* ---- Summary Card ---- */

.chat-summary {
  background: var(--color-ivory);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: 0 var(--space-2);
  animation: fadeInUp 0.4s var(--ease-out) forwards;
}

.chat-summary h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-pearl);
}

.chat-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-pearl);
}

.chat-summary__row:last-child {
  border-bottom: none;
}

.chat-summary__label {
  color: var(--color-text-muted);
}

.chat-summary__value {
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: right;
}

/* ---- Confirmation ---- */

.chat-confirmation {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  animation: fadeInUp 0.4s var(--ease-out) forwards;
}

.chat-confirmation__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: var(--color-teal-soft);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
}

.chat-confirmation__icon svg {
  width: 28px;
  height: 28px;
}

.chat-confirmation h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.chat-confirmation p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---- Back Button ---- */

.chat-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease;
  margin-bottom: var(--space-2);
}

.chat-back:hover {
  color: var(--color-teal);
}

.chat-back svg {
  width: 14px;
  height: 14px;
}

/* ---- Progress indicator ---- */

.chat-progress {
  display: flex;
  gap: 3px;
  justify-content: center;
  padding: var(--space-3);
  border-top: 1px solid var(--color-pearl);
}

.chat-progress__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-pearl);
  transition: background var(--duration-fast) ease;
}

.chat-progress__dot.active {
  background: var(--color-teal);
}

.chat-progress__dot.completed {
  background: var(--color-teal);
  opacity: 0.5;
}
