/* Public site, booking flow: seat map, summary bar, user info and payment,
   processing and ticket pages (counter booking by staff included - it runs in
   the public layout). Loaded after public/site.css. */

.site-content {
  overflow: hidden;
}

/* seat booking box highlight css — kept for JS compatibility */
.seat_highlight {
  background-color: #198754 !important;
  color: #fff !important;
}

.rm-progress-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9ecef;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rm-progress-active .rm-progress-dot {
  background: var(--rm-orange);
  color: #fff;
}
/* ── Legend Chips (size only; d-inline-block + rounded-1 in HTML) ───────── */
.rm-seat-legend-chip {
  width: 16px;
  height: 16px;
}
/* Available: orange outline (brand color) */
.rm-seat-legend-available {
  background: #fff;
  border: 2px solid var(--rm-orange);
}
/* Selected: green fill */
.rm-seat-legend-selected {
  background: #198754;
  border: 2px solid #198754;
}
/* Booked: gray */
.rm-seat-legend-booked {
  background: #c0c0c0;
  border: 2px solid #b0b0b0;
}

.rm-seat-section-header {
  border-left: 3px solid var(--rm-orange);
  padding: 3px 8px;
  background: #f8f9fa;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
}
.rm-seat-section-price {
  background-color: var(--rm-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.rm-seat-section-price-free {
  background-color: #198754;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Orange scrollbar for the seat layout horizontal scroll
   (everything else is handled by Bootstrap utilities: overflow-x-auto,
    text-center, d-inline-block, text-start, text-nowrap, flex-nowrap) */
.rm-seat-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--rm-orange) #f0f0f0;
}
.rm-seat-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.rm-seat-scrollbar::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.rm-seat-scrollbar::-webkit-scrollbar-thumb {
  background: var(--rm-orange);
  border-radius: 3px;
}

/* Available: orange outline (brand color) */
.rm-seat-available {
  background: #fff;
  color: var(--rm-orange);
  border: 1.5px solid var(--rm-orange);
}
.rm-seat-available:hover {
  background: var(--rm-orange-tint);
  color: var(--rm-orange-hover);
  border-color: var(--rm-orange-hover);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(var(--rm-orange-rgb), 0.3);
}
/* Selected: solid green fill */
.rm-seat-selected,
.rm-seat.seat_highlight {
  background: #198754 !important;
  color: #fff !important;
  border: 1.5px solid #198754 !important;
  box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}
/* Booked: gray, disabled */
.rm-seat-booked {
  background: #c0c0c0;
  color: #fff;
  border: 1.5px solid #b0b0b0;
  cursor: not-allowed;
  opacity: 0.85;
}

/* ── Stage ──────────────────────────────────────────────────────────────── */
.rm-stage-bar {
  width: 70%;
  max-width: 400px;
  height: 6px;
  background: linear-gradient(90deg, var(--rm-cyan), var(--rm-orange));
  border-radius: 3px;
}

/* ── Summary Panel ──────────────────────────────────────────────────────── */
.rm-seat-summary-sticky {
  position: sticky;
  top: 80px;
}
.rm-seat-summary-title {
  border-bottom: 2px solid var(--rm-orange);
}
.rm-seat-summary-total span:last-child {
  color: var(--rm-orange);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}
.rm-seat-chip {
  display: inline-block;
  background: #f0fdf4;
  color: #198754;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(25,135,84,0.2);
}

/* Submit Button */
.rm-seat-submit-btn {
  background: var(--rm-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  transition: all 0.18s ease;
}
.rm-seat-submit-btn:hover {
  background: var(--rm-orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--rm-orange-rgb),0.3);
}
.rm-seat-submit-btn:disabled {
  background: #ccc;
  color: #888;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Floating Seat Selection Bar ─────────────────────────────────────── */
.rm-seat-page-content {
  padding-bottom: 100px !important; /* room for floating bar */
}
/* User-info page: floating bar is mobile-only, so only add padding-bottom there */
@media (max-width: 991.98px) {
  .rm-userinfo-page-content {
    padding-bottom: 80px !important;
  }
}
.rm-seat-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1030;
  /* Hidden by default — only shown when at least 1 seat is selected */
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.rm-seat-floating-bar.show {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.28s ease;
}
.rm-floating-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: #222;
  transition: transform 0.2s ease;
}

/* Info line above the Pay button */
.rm-floating-info-line {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}
.rm-floating-info-line .rm-floating-count {
  font-weight: 800;
  font-size: 1rem;
  color: #222;
  margin-right: 4px;
}

/* BookMyShow-style Pay button (centered, solid orange, prominent) */
.rm-bms-pay-btn {
  background: var(--rm-orange);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.3rem 1.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(var(--rm-orange-rgb), 0.35);
  transition: all 0.18s ease;
  min-width: 200px;
  justify-content: center;
}
.rm-bms-pay-btn:hover:not(:disabled) {
  background: var(--rm-orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(var(--rm-orange-rgb), 0.40);
}
/* (disabled state removed — bar only shows when seats are selected, button always active) */
.rm-bms-pay-label {
  font-size: 1rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rm-bms-pay-amount {
  font-size: 1rem;
  font-weight: 800;
}

/* ── Seat Page Responsive ───────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .rm-seat-summary-sticky {
    position: static;
  }
}

/* ── Brand Utility Classes ──────────────────────────────────────────────── */
.rm-text-orange { color: var(--rm-orange) !important; }

/* ── Processing Page ───────────────────────────────────────────────────── */
.rm-processing-ring {
  background: linear-gradient(135deg, var(--rm-orange), var(--rm-orange-hover));
  box-shadow: 0 4px 20px rgba(var(--rm-orange-rgb),0.35);
  animation: rm-ring-pulse 2s ease-in-out infinite;
}
@keyframes rm-ring-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(var(--rm-orange-rgb),0.35); }
  50% { box-shadow: 0 4px 30px rgba(var(--rm-orange-rgb),0.15), 0 0 0 12px rgba(var(--rm-orange-rgb),0.08); }
}
.rm-processing-dot {
  background: var(--rm-cyan);
  animation: rm-pulse 1.4s ease-in-out infinite;
}
.rm-processing-dot-2 { animation-delay: 0.2s; }
.rm-processing-dot-3 { animation-delay: 0.4s; }
@keyframes rm-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Payment method cards (counter-booking user-info page) ───────────────
   Big tappable cards with icon + label + check badge. Pairs with
   Bootstrap's btn-check radios: the hidden <input> drives selected state
   via the adjacent-sibling selector. Full width on phones, side-by-side
   on tablet+. */
.rm-pay-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 380px;
}
@media (min-width: 576px) {
  .rm-pay-options { grid-template-columns: 1fr 1fr; }
}
.rm-pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Match Bootstrap's .form-control default height so this control lines up
     with the name/email/phone inputs on the same row. */
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0 10px;
  border: 1px solid #e4e6ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.08s ease;
  position: relative;
  margin: 0;
  user-select: none;
}
.rm-pay-option:hover {
  border-color: var(--rm-orange);
  background: #fff8f3;
}
.rm-pay-option:active { transform: translateY(1px); }
.rm-pay-option-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff5ef;
  color: var(--rm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.rm-pay-option-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--rm-ink);
  line-height: 1.2;
}
.rm-pay-option-check {
  color: #d0d4db;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.btn-check:checked + .rm-pay-option {
  border-color: var(--rm-orange);
  background: #fff5ef;
}
.btn-check:checked + .rm-pay-option .rm-pay-option-check {
  color: var(--rm-orange);
}
.btn-check:focus-visible + .rm-pay-option {
  outline: 2px solid var(--rm-orange);
  outline-offset: 2px;
}

