/* =============================================
   La90s Billetterie — Popup Styles v2.1
   90's retro aesthetic: purple / pink / yellow
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&family=Luckiest+Guy&display=swap');

/* ===== Trigger button hover ===== */
.la90s-cta-trigger:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.1);
}
.la90s-cta-trigger:active {
  transform: translateY(-1px) !important;
}

/* ===== Overlay ===== */
.la90s-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 10, 50, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: la90s-fadeIn 0.3s ease;
}

@keyframes la90s-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Popup container ===== */
.la90s-popup {
  background: var(--la90s-bg, #2D1048);
  border-radius: 24px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  font-family: 'DM Sans', sans-serif;
  color: #F0F0F0;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(226, 62, 131, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: la90s-slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes la90s-slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.la90s-popup::-webkit-scrollbar { width: 6px; }
.la90s-popup::-webkit-scrollbar-track { background: transparent; }
.la90s-popup::-webkit-scrollbar-thumb { background: rgba(226,62,131,0.3); border-radius: 3px; }

/* ===== Close button ===== */
.la90s-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #B39DDB;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.la90s-popup-close:hover {
  background: var(--la90s-accent, #E23E83);
  color: #fff;
  border-color: var(--la90s-accent, #E23E83);
}

/* ===== Header ===== */
.la90s-popup-header { text-align: center; margin-bottom: 28px; }
.la90s-popup-header h2 {
  font-family: 'Luckiest Guy', 'Bebas Neue', cursive;
  font-size: 2.4rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--la90s-accent, #E23E83), #FF6B9D, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 6px; line-height: 1.1;
  text-transform: uppercase;
}
.la90s-popup-header p {
  color: #B39DDB; font-size: 0.9rem;
  letter-spacing: 0.5px; margin: 0;
}

/* ===== Steps ===== */
.la90s-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.la90s-step-dot {
  width: 40px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.la90s-step-dot.active {
  background: var(--la90s-accent, #E23E83);
  box-shadow: 0 0 14px rgba(226, 62, 131, 0.4);
  width: 60px;
}
.la90s-step-dot.done {
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ===== Step panels ===== */
.la90s-step-panel { display: none; }
.la90s-step-panel.active {
  display: block;
  animation: la90s-panelIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes la90s-panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Ticket cards ===== */
.la90s-tickets-list {
  display: flex; flex-direction: column;
  gap: 12px; margin-bottom: 24px;
}

.la90s-ticket-card {
  background: var(--la90s-card, #3D1A5E);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.la90s-ticket-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: transparent; transition: background 0.3s ease;
}
.la90s-ticket-card:hover {
  border-color: rgba(226, 62, 131, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.la90s-ticket-card.selected {
  border-color: var(--la90s-accent, #E23E83);
  box-shadow: 0 0 25px rgba(226, 62, 131, 0.2);
}
.la90s-ticket-card.selected::before {
  background: linear-gradient(90deg, var(--la90s-accent, #E23E83), #FFD700);
}

/* Ticket image */
.la90s-ticket-img {
  width: 72px; height: 72px;
  flex-shrink: 0; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.la90s-ticket-card:hover .la90s-ticket-img {
  transform: rotate(-3deg) scale(1.05);
}
.la90s-ticket-card.selected .la90s-ticket-img {
  transform: rotate(-5deg) scale(1.1);
}

.la90s-ticket-info { flex: 1; min-width: 0; }
.la90s-ticket-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 2px; text-transform: uppercase;
}
.la90s-ticket-desc { color: #B39DDB; font-size: 0.78rem; }

.la90s-ticket-badge {
  font-size: 0.55rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 1px;
}
.la90s-badge-vip { background: linear-gradient(135deg, #FFD700, #FFA000); color: #000; }
.la90s-badge-premium { background: linear-gradient(135deg, #E23E83, #9C27B0); color: #fff; }

.la90s-ticket-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; color: #FFD700;
  margin: 0 12px; letter-spacing: 1px; white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
.la90s-ticket-price span { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; color: #B39DDB; }

/* Quantity selector */
.la90s-qty {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.la90s-qty button {
  width: 36px; height: 36px; border: none;
  background: transparent; color: #F0F0F0;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.la90s-qty button:hover { background: var(--la90s-accent, #E23E83); color: #fff; }
.la90s-qty button:active { transform: scale(0.9); }
.la90s-qty-val { width: 32px; text-align: center; font-weight: 700; font-size: 0.95rem; }

/* ===== Summary ===== */
.la90s-summary {
  background: var(--la90s-card, #3D1A5E);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 14px; padding: 16px 20px;
  margin-bottom: 16px; display: flex;
  justify-content: space-between; align-items: center;
}
.la90s-summary-left { display: flex; flex-direction: column; gap: 2px; }
.la90s-summary-label { font-size: 0.75rem; color: #B39DDB; text-transform: uppercase; letter-spacing: 1px; }
.la90s-summary-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 1px;
  color: #FFD700; text-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
.la90s-summary-count { font-size: 0.8rem; color: #B39DDB; }

/* ===== Primary button ===== */
.la90s-btn-primary {
  width: 100%; padding: 16px 36px;
  border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--la90s-accent, #E23E83), #C2185B);
  color: #fff; box-shadow: 0 4px 20px rgba(226, 62, 131, 0.35);
  transition: all 0.3s ease;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.la90s-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(226, 62, 131, 0.5);
}
.la90s-btn-primary:disabled {
  opacity: 0.25; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* ===== Back button ===== */
.la90s-btn-back {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: #B39DDB; padding: 12px 24px;
  border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s; margin-bottom: 16px;
}
.la90s-btn-back:hover { border-color: #FFD700; color: #FFD700; }

/* ===== Attendee forms ===== */
.la90s-attendee-block {
  background: var(--la90s-card, #3D1A5E);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px; margin-bottom: 14px;
}
.la90s-attendee-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.la90s-attendee-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--la90s-accent, #E23E83), #C2185B);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.la90s-attendee-img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.la90s-attendee-tname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 1px; text-transform: uppercase;
}
.la90s-attendee-ttype { font-size: 0.75rem; color: #B39DDB; }

.la90s-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.la90s-form-grid .full-w { grid-column: 1 / -1; }

.la90s-field { display: flex; flex-direction: column; gap: 5px; }
.la90s-field label {
  font-size: 0.7rem; color: #B39DDB;
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600;
}
.la90s-field input,
.la90s-field select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 11px 14px;
  color: #F0F0F0; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; transition: all 0.3s; outline: none;
}
.la90s-field input::placeholder { color: rgba(179, 157, 219, 0.4); }
.la90s-field input:focus,
.la90s-field select:focus {
  border-color: var(--la90s-accent, #E23E83);
  box-shadow: 0 0 0 3px rgba(226, 62, 131, 0.2);
  background: rgba(226, 62, 131, 0.06);
}
.la90s-field input.error {
  border-color: #FF5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);
}
.la90s-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B39DDB' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.la90s-field select option {
  background: #2D1048; color: #F0F0F0;
}

/* ===== INVOICE SECTION ===== */
.la90s-invoice-section {
  background: var(--la90s-card, #3D1A5E);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  margin-top: 6px;
}

/* Toggle switch */
.la90s-invoice-toggle {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; user-select: none;
}
.la90s-invoice-toggle input {
  display: none;
}

.la90s-toggle-track {
  width: 48px; height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.la90s-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #B39DDB;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.la90s-invoice-toggle input:checked ~ .la90s-toggle-track {
  background: var(--la90s-accent, #E23E83);
}
.la90s-invoice-toggle input:checked ~ .la90s-toggle-track .la90s-toggle-thumb {
  left: 25px;
  background: #fff;
}

.la90s-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #F0F0F0;
}

.la90s-invoice-fields {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: la90s-panelIn 0.3s ease;
}

/* ===== Loading ===== */
.la90s-loading {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 10, 50, 0.95); z-index: 100000;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 18px;
  font-family: 'DM Sans', sans-serif; color: #B39DDB;
}
.la90s-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(226, 62, 131, 0.2);
  border-top-color: var(--la90s-accent, #E23E83);
  border-radius: 50%;
  animation: la90s-spin 0.8s linear infinite;
}
@keyframes la90s-spin { to { transform: rotate(360deg); } }

/* ===== Payment Method Choice (Step 3) ===== */
.la90s-payment-choice {
  text-align: center;
  margin-bottom: 24px;
}
.la90s-payment-choice h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}
.la90s-payment-total {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 24px;
}
.la90s-payment-total strong {
  color: #ffd700;
  font-size: 1.4rem;
}
.la90s-payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.la90s-payment-option {
  cursor: pointer;
}
.la90s-payment-option input {
  display: none;
}
.la90s-payment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--la90s-card, #3D1A5E);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.2s ease;
}
.la90s-payment-option input:checked + .la90s-payment-card {
  border-color: var(--la90s-accent, #E23E83);
  background: rgba(226, 62, 131, 0.15);
  box-shadow: 0 0 20px rgba(226, 62, 131, 0.2);
}
.la90s-payment-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.la90s-payment-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}
.la90s-payment-info {
  text-align: left;
}
.la90s-payment-info strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}
.la90s-payment-info span {
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .la90s-popup { padding: 24px 16px; border-radius: 20px; }
  .la90s-popup-header h2 { font-size: 1.8rem; }
  .la90s-ticket-card { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .la90s-ticket-img { width: 56px; height: 56px; }
  .la90s-ticket-price { margin: 0; font-size: 1.3rem; }
  .la90s-form-grid { grid-template-columns: 1fr; }
  .la90s-summary { flex-direction: column; gap: 8px; text-align: center; }
}
