/* Payment Modal Styles */
.payment-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.payment-modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.payment-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-payment-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-payment-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.payment-details {
  padding: 24px;
}

.ticket-summary {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid #667eea;
}

.ticket-summary h3 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.ticket-summary p {
  margin: 6px 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.payment-breakdown {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row.platform-fee {
  color: #6b7280;
  font-size: 0.9rem;
}

.breakdown-row.total {
  border-top: 2px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 1.1rem;
}

.rep-info {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  color: #059669;
  font-weight: 500;
}

/* Stripe Elements Styling */
#payment-form {
  padding: 0 24px 24px;
}

#payment-element {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.payment-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.payment-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.payment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.payment-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff40;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.payment-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.hidden {
  display: none !important;
}

/* Price Suggestion Modal */
.price-suggestion-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.suggestion-modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.suggestion-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-suggestion-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-suggestion-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.suggestion-details {
  padding: 24px;
}

.ticket-info {
  background: #fffbeb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid #f59e0b;
}

.ticket-info h3 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.ticket-info p {
  margin: 6px 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suggestion-form label {
  font-weight: 600;
  color: #374151;
  margin-bottom: -8px;
}

.suggestion-form input,
.suggestion-form textarea {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.suggestion-form input:focus,
.suggestion-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.suggestion-form textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.suggestion-preview {
  background: #f0f9ff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: #0c4a6e;
}

.preview-row:first-child {
  font-weight: 600;
}

.submit-suggestion-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.submit-suggestion-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-modal-content,
  .suggestion-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .payment-header,
  .suggestion-header {
    padding: 20px;
  }

  .payment-details,
  .suggestion-details {
    padding: 20px;
  }

  .ticket-summary,
  .ticket-info {
    padding: 16px;
  }

  .payment-breakdown {
    padding: 16px;
  }

  #payment-form {
    padding: 0 20px 20px;
  }
}

/* Success/Error Messages */
.success-message {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}