/* assets/css/seat_booking.css - Modern White / Light BookMyShow Theme */

.bms-seat-page {
  background-color: #F5F5F7;
  color: #1F2533;
  min-height: 100vh;
  padding-bottom: 110px;
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header Bar */
.bms-seat-header {
  background: #1F2533;
  padding: 16px 30px;
  border-bottom: 1px solid #2d3548;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Ticket Quantity Selector Pills */
.seat-qty-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--bms-border);
  background: #ffffff;
  color: #333333;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.seat-qty-pill:hover {
  border-color: var(--bms-red);
  color: var(--bms-red);
  transform: translateY(-2px);
}

.seat-qty-pill.active {
  background: var(--bms-red) !important;
  color: #ffffff !important;
  border-color: var(--bms-red) !important;
  box-shadow: 0 4px 14px rgba(248, 68, 100, 0.45);
  transform: scale(1.1);
}

.bms-seat-movie-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
}

.bms-seat-movie-sub {
  font-size: 13px;
  color: #CBD5E1;
}

/* Cinema Screen */
.bms-screen-container {
  text-align: center;
  margin: 24px auto 30px;
  max-width: 650px;
  perspective: 400px;
}

.bms-screen-bar {
  height: 8px;
  background: linear-gradient(90deg, rgba(203,213,225,0.4) 0%, rgba(45,196,146,0.9) 50%, rgba(203,213,225,0.4) 100%);
  border-radius: 50% / 100% 100% 0 0;
  box-shadow: 0 8px 20px rgba(45, 196, 146, 0.35);
  margin-bottom: 10px;
}

.bms-screen-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #64748B;
  text-transform: uppercase;
}

/* Legend */
.bms-seat-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
  padding: 12px 28px;
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  color: #334155;
}

.bms-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bms-seat-box-demo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-block;
}

.bms-seat-box-demo.available {
  border: 1.5px solid #1EA83C;
  background: #ffffff;
}

.bms-seat-box-demo.selected {
  background: #1EA83C;
  border: 1.5px solid #1EA83C;
}

.bms-seat-box-demo.sold {
  background: #E2E8F0;
  border: 1px solid #CBD5E1;
  position: relative;
}

.bms-seat-box-demo.sold::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #94A3B8;
  font-weight: bold;
}

/* Seat Grid Container Card */
.bms-seat-grid-container {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 35px 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
}

.bms-tier-section {
  margin-bottom: 32px;
}

.bms-tier-header {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px dashed #CBD5E1;
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.5px;
}

.bms-tier-price {
  color: #1EA83C;
  font-weight: 800;
}

.bms-seat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bms-row-label {
  width: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  text-align: right;
  margin-right: 14px;
}

.bms-seat-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid #1EA83C;
  background: #ffffff;
  color: #1EA83C;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.bms-seat-btn:hover:not(.sold) {
  background: #E8F5E9;
  transform: scale(1.12);
  border-color: #1EA83C;
}

.bms-seat-btn.selected {
  background: #1EA83C !important;
  color: #ffffff !important;
  border-color: #1EA83C !important;
  box-shadow: 0 4px 12px rgba(30, 168, 60, 0.35);
  transform: scale(1.08);
}

.bms-seat-btn.sold {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.7;
}

.bms-seat-btn.sold::after {
  content: '✕';
  font-size: 11px;
}

.bms-seat-gap {
  width: 24px;
}

/* Sticky Bottom Footer Bar */
.bms-seat-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #E2E8F0;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bms-summary-text {
  display: flex;
  flex-direction: column;
}

.bms-selected-seats-label {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.bms-selected-seats-val {
  font-size: 17px;
  font-weight: 800;
  color: #1F2533;
}

.bms-total-price-val {
  font-size: 24px;
  font-weight: 800;
  color: #1EA83C;
}

/* Checkout F&B Styles */
.bms-checkout-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  color: var(--bms-text-dark);
  border: 1px solid #E2E8F0;
}

.bms-food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.bms-food-card {
  border: 1px solid var(--bms-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.bms-food-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
}

.bms-food-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bms-food-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bms-food-desc {
  font-size: 12px;
  color: var(--bms-text-muted);
  margin-bottom: 12px;
}

.bms-food-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bms-food-price {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
}

.bms-qty-btn {
  background: #F1F3F6;
  border: 1px solid var(--bms-border);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-weight: 700;
  cursor: pointer;
}

/* E-Ticket Styles */
.bms-ticket-container {
  max-width: 580px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  color: #222222;
  border: 1px solid #E2E8F0;
}

.bms-ticket-header {
  background: linear-gradient(135deg, #1F2533 0%, #2b3346 100%);
  color: #ffffff;
  padding: 24px;
  text-align: center;
  position: relative;
}

.bms-ticket-perforation {
  height: 20px;
  background: #F5F5F7;
  position: relative;
}

.bms-ticket-perforation::before,
.bms-ticket-perforation::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F5F5F7;
  transform: translateY(-50%);
}

.bms-ticket-perforation::before { left: -10px; }
.bms-ticket-perforation::after { right: -10px; }

.bms-ticket-body {
  padding: 30px;
}

.bms-qr-code {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  background: #F5F5F5;
  padding: 10px;
  border-radius: 10px;
}
