/* ==============================================================
   CGV CINEMAS TICKET & FNB ORDER PORTAL - STYLES
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --cgv-red: #e71a0f;
  --cgv-red-hover: #ff2a1e;
  --cgv-red-dark: #aa120a;
  --cgv-red-glow: rgba(231, 26, 15, 0.35);
  --cgv-gold: #f59e0b;
  --cgv-gold-glow: rgba(245, 158, 11, 0.35);
  --cgv-dark-900: #0a0c0e;
  --cgv-dark-800: #12151a;
  --cgv-dark-700: #1a1e24;
  --cgv-dark-600: #242a33;
  --cgv-border: rgba(255, 255, 255, 0.08);
  --cgv-border-focus: rgba(231, 26, 15, 0.6);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--cgv-dark-900);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(231, 26, 15, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 45%),
    linear-gradient(to bottom, #0a0c0e, #0e1116 50%, #0a0c0e);
  background-attachment: fixed;
}

/* Typography Headings */
h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1217;
}
::-webkit-scrollbar-thumb {
  background: #28303d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cgv-red);
}

/* Glassmorphism Cards */
.cgv-glass-card {
  background: rgba(22, 26, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--cgv-border);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

.cgv-glass-card-interactive {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cgv-glass-card-interactive:hover {
  border-color: rgba(231, 26, 15, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(231, 26, 15, 0.15);
}

/* Glowing effects */
.cgv-glow-red {
  box-shadow: 0 0 25px var(--cgv-red-glow);
}

.cgv-glow-gold {
  box-shadow: 0 0 25px var(--cgv-gold-glow);
}

.cgv-btn-primary {
  background: linear-gradient(135deg, #e71a0f, #c2130a);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cgv-btn-primary:hover {
  background: linear-gradient(135deg, #ff2e21, #e71a0f);
  box-shadow: 0 6px 20px rgba(231, 26, 15, 0.45);
  transform: translateY(-1px);
}
.cgv-btn-primary:active {
  transform: translateY(1px);
}

.cgv-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-weight: 600;
  transition: all 0.2s ease;
}
.cgv-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Form Inputs */
.cgv-input {
  background-color: rgba(14, 17, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s ease;
  border-radius: 0.75rem;
}
.cgv-input:focus {
  border-color: var(--cgv-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 26, 15, 0.2);
  background-color: rgba(18, 22, 28, 0.95);
}
.cgv-input::placeholder {
  color: #64748b;
}

/* Select element fix */
select.cgv-input option {
  background-color: #12151b;
  color: #f8fafc;
  padding: 10px;
}

/* Cinema Curved Screen */
.cinema-screen-container {
  perspective: 400px;
}
.cinema-screen {
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, rgba(231, 26, 15, 0.4), transparent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35), 0 0 50px rgba(231, 26, 15, 0.3);
  position: relative;
  transform: rotateX(-15deg);
}
.cinema-screen-light {
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* Seat Buttons */
.seat-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  background: #1f252e;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
  .seat-btn {
    width: 25px;
    height: 25px;
    font-size: 9px;
    border-radius: 4px;
  }
}
.seat-btn:hover:not(.seat-occupied) {
  background: #333c4a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Seat Types */
.seat-primary {
  background: linear-gradient(135deg, #e71a0f, #b31208) !important;
  color: #ffffff !important;
  border-color: #ff5247 !important;
  box-shadow: 0 0 10px rgba(231, 26, 15, 0.7);
  transform: scale(1.08);
  font-weight: 800;
}
.seat-secondary {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000000 !important;
  border-color: #fde68a !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
  transform: scale(1.08);
  font-weight: 800;
}
.seat-sweetbox {
  width: 68px;
  height: 34px;
  border-radius: 8px;
  background: #231c26;
  border: 1px dashed rgba(244, 114, 182, 0.4);
  color: #f472b6;
}
@media (max-width: 640px) {
  .seat-sweetbox {
    width: 52px;
    height: 27px;
    font-size: 9px;
  }
}
.seat-sweetbox.seat-primary {
  background: linear-gradient(135deg, #ec4899, #db2777) !important;
  border: 1px solid #fbcfe8 !important;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.7) !important;
  color: white !important;
}
.seat-sweetbox.seat-secondary {
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  color: black !important;
}
.seat-occupied {
  background: #15181d !important;
  color: #475569 !important;
  border: 1px solid #1e242d !important;
  cursor: not-allowed;
  opacity: 0.4;
  text-decoration: line-through;
}

/* WhatsApp Message Preview Bubble */
.whatsapp-chat-box {
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.whatsapp-message-bubble {
  background-color: #1f2c34;
  color: #e9edef;
  border-radius: 0.75rem 0.75rem 0.2rem 0.75rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  position: relative;
}
.whatsapp-message-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid #1f2c34;
  border-bottom: 8px solid transparent;
}

/* Modal Animation */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}
.modal-content {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Radio button & toggle styles */
.cgv-pill-check:checked + label {
  background-color: var(--cgv-red);
  border-color: var(--cgv-red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(231, 26, 15, 0.35);
}

/* Pulse animation for live badge */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.animate-pulse-dot {
  animation: pulseDot 2s infinite ease-in-out;
}

/* Step Progress styles */
.step-item.active .step-circle {
  background-color: var(--cgv-red);
  color: #ffffff;
  border-color: #ff5247;
  box-shadow: 0 0 15px rgba(231, 26, 15, 0.5);
}
.step-item.completed .step-circle {
  background-color: #10b981;
  color: #ffffff;
  border-color: #34d399;
}

/* Ticket Receipt styling */
.ticket-receipt-cut {
  position: relative;
}
.ticket-receipt-cut::before,
.ticket-receipt-cut::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--cgv-dark-900);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.ticket-receipt-cut::before {
  left: -10px;
}
.ticket-receipt-cut::after {
  right: -10px;
}

