/* Event Payment Page - Movie-Style Layout */
.event-payment-modern {
  background: #f8f9fa;
  min-height: 100vh;
}

.event-hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.event-poster-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.event-poster-container:hover {
  transform: scale(1.02);
}

.event-poster-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.event-details-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-info-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.event-info-item:last-child {
  border-bottom: none;
}

.event-info-icon {
  font-size: 1.5rem;
  color: #667eea;
  margin-right: 1rem;
  min-width: 32px;
}

.payment-form-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 20px;
}

.payment-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 16px 16px 0 0;
}

.upcoming-events-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
  margin-top: 3rem;
}

.upcoming-event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  cursor: pointer;
}

.upcoming-event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.upcoming-event-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.upcoming-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.upcoming-event-card:hover .upcoming-event-image img {
  transform: scale(1.1);
}

.upcoming-event-content {
  padding: 1.25rem;
}

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

/* Ticket Selection Styles */
.ticket-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  position: relative;
  overflow: hidden;
}

.ticket-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.05),
    transparent
  );
  transition: left 0.5s;
}

.ticket-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.ticket-card:hover::before {
  left: 100%;
}

.ticket-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

/* Quantity Controls */
.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
  background: white;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #667eea;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn:hover:not(:disabled) {
  background: #f7faff;
  color: #5568d3;
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Price Summary */
.price-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.price-item:last-child {
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid #e2e8f0;
}

/* Payment Methods */
.payment-method-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.payment-method-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.payment-method-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
}

/* Form Inputs */
.form-control-modern {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control-modern:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* Buttons */
.btn-checkout {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-checkout::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.btn-checkout:hover::before {
  left: 100%;
}

.btn-checkout:active {
  transform: translateY(0);
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 32, 44, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .payment-form-card {
    position: relative;
    top: 0 !important;
    margin-top: 2rem;
  }

  .event-hero-section {
    padding: 2rem 0;
  }

  .event-details-card {
    margin-top: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .upcoming-events-section {
    padding: 3rem 0;
  }

  .upcoming-events-section h2 {
    font-size: 1.8rem !important;
  }

  .event-poster-container {
    border-radius: 12px;
  }

  .payment-card-header {
    padding: 1rem;
  }

  .event-details-card {
    padding: 1.25rem;
  }
}

/* Success Animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.success-checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.8s ease-out forwards;
}
