/* Payment Modal Styles */
.payment-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.payment-modal-overlay.active {
  display: flex;
}

.payment-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

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

.payment-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #111827;
}

.payment-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.payment-modal-close:hover {
  background: #f3f4f6;
}

.payment-modal-body {
  padding: 24px;
}

.payment-section {
  margin-bottom: 24px;
}

.payment-section h3 {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  color: #374151;
}

.order-reference {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.order-reference-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.order-reference-code {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  font-family: monospace;
}

.qr-container {
  text-align: center;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 24px;
}

.qr-container img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.payment-info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #dbeafe;
}

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

.payment-info-label {
  color: #1e40af;
  font-weight: 500;
}

.payment-info-value {
  color: #1e3a8a;
  font-weight: 600;
  text-align: right;
}

.timer-container {
  background: #fef3c7;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 24px;
}

.timer-container .timer-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.timer-container .timer-text {
  color: #92400e;
  font-weight: 500;
}

.timer-container .timer-value {
  color: #78350f;
  font-weight: 700;
  font-size: 1.1rem;
}

.upload-section {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 24px;
  background: #f9fafb;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-input-label {
  display: block;
  padding: 12px 16px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.file-input-label:hover {
  background: #e5e7eb;
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.submit-button {
  width: 100%;
  padding: 14px;
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-button:hover:not(:disabled) {
  background: #1f2937;
}

.submit-button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.success-message {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
}

.error-message {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
}

.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #111827;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Payment method selector */
.payment-methods {
  margin: 20px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.payment-methods-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method-option:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.payment-method-option input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.payment-method-option.selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.payment-method-label {
  font-weight: 500;
  color: #111827;
}

/* Customer Information Modal Styles */
.customer-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.customer-modal-overlay.active {
  display: flex;
}

.customer-modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

.customer-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #111827;
}

.customer-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.customer-modal-close:hover {
  background: #f3f4f6;
}

.customer-modal-body {
  padding: 24px;
}

.customer-modal-description {
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .payment-modal {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .payment-modal-header {
    padding: 16px;
  }

  .payment-modal-body {
    padding: 16px;
  }

  .qr-container img {
    max-width: 250px;
  }

  .customer-modal {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .customer-modal-header {
    padding: 16px;
  }

  .customer-modal-body {
    padding: 16px;
  }

  .form-actions {
    flex-direction: column;
  }
}
