/* Donation Header */
.donation-header {
  background: linear-gradient(135deg, #c44bff 0%, #ff6b9d 100%);
  color: white;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.donation-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
}

.donation-header-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.donation-header-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0.9;
}

/* Process Steps */
.donation-process {
  max-width: 800px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step.active .step-number {
  background: linear-gradient(135deg, #c44bff 0%, #ff6b9d 100%);
  color: white;
  transform: scale(1.1);
}

.step-text h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 5px;
  text-align: center;
}

.step.active .step-text h3 {
  color: #c44bff;
  font-weight: 600;
}

.step-text p {
  font-size: 0.9rem;
  color: #999;
  text-align: center;
}

.step.active .step-text p {
  color: #ff6b9d;
}

/* Step Containers */
.step-container {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: none;
}

.step-container.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Form Container */
.form-container, .payment-container, .proof-container {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.form-container h2, .payment-container h2, .proof-container h2 {
  font-size: 2rem;
  color: #c44bff;
  margin-bottom: 1rem;
  text-align: center;
}

.form-container p, .payment-container p, .proof-container p {
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Form Styles */
.donation-form, .proof-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: #c44bff;
  box-shadow: 0 0 0 3px rgba(196, 75, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: normal;
  color: #555;
  line-height: 1.5;
}

.error-message {
  color: #ff3860;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

/* Button Styles */
.btn-submit {
  width: 60%;
  padding: 15px;
  background: linear-gradient(90deg, #c44bff, #ff6b9d);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(196, 75, 255, 0.3);
}

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

/* Step Navigation Buttons */
.step-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-back, .btn-next {
  flex: 1;
  padding: 12px;
  border: 2px solid #c44bff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back {
  background: white;
  color: #c44bff;
}

.btn-back:hover {
  background: #f8f8f8;
}

.btn-next {
  background: linear-gradient(90deg, #c44bff, #ff6b9d);
  color: white;
  border: none;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(196, 75, 255, 0.3);
}

/* QR Code Section in Step 2 */
.qr-section {
  margin: 2rem 0;
}

.qr-guard {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  overflow: hidden;
}

.qr-guard-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
}

.qr-guard-message i {
  font-size: 4rem;
  color: #c44bff;
  margin-bottom: 1rem;
}

.qr-guard-message p {
  font-size: 1.2rem;
  color: #666;
  max-width: 300px;
  text-align: center;
}

.qr-code-hidden {
  display: none;
  padding: 2rem;
}

.qr-code-hidden.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.qr-image-wrapper {
  margin: 0 auto 2rem;
  width: 100%;
  max-width: 300px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #ff6b9d;
}

.qr-code-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.qr-info-text {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.qr-info-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
}

.qr-info-text strong {
  color: #c44bff;
}

/* Payment Instructions */
.payment-instructions {
  background: #f8f9ff;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #c44bff;
}

.payment-instructions h3 {
  color: #c44bff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-instructions ul {
  list-style: none;
  padding: 0;
}

.payment-instructions li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #555;
}

.payment-instructions li i {
  color: #4ecdc4;
  margin-top: 3px;
  flex-shrink: 0;
}

/* File Upload Area */
.file-upload-area {
  border: 2px dashed #c44bff;
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9ff;
  margin-top: 0.5rem;
}

.file-upload-area:hover {
  background: #f0f2ff;
  border-color: #ff6b9d;
}

.file-upload-area i {
  font-size: 3rem;
  color: #c44bff;
  margin-bottom: 1rem;
}

.file-upload-area p {
  color: #666;
  margin-bottom: 0.5rem;
}

.file-types {
  font-size: 0.9rem;
  color: #999;
}

.file-preview {
  margin-top: 1rem;
  display: none;
}

.file-preview.active {
  display: block;
}

.file-preview img {
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalIn 0.5s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  font-size: 5rem;
  color: #4ecdc4;
  margin-bottom: 1.5rem;
}

.success-modal h2 {
  color: #c44bff;
  margin-bottom: 1rem;
}

.success-modal p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.success-details {
  background: #f8f9ff;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  text-align: left;
}

.success-details p {
  margin-bottom: 0.5rem;
  color: #555;
}

.btn-modal-close {
  background: linear-gradient(90deg, #c44bff, #ff6b9d);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(196, 75, 255, 0.3);
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== DARK MODE STYLES ===== */

body.dark-mode .donation-header {
  background: linear-gradient(135deg, #7a1f56 0%, #c44bff 100%);
}

body.dark-mode .form-container,
body.dark-mode .payment-container,
body.dark-mode .proof-container {
  background: #1a1a1a;
  border-color: #333;
  color: #eee;
}

body.dark-mode .form-group label {
  color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
  background: #2d2d2d;
  border-color: #404040;
  color: #eee;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
  border-color: #c44bff;
  box-shadow: 0 0 0 3px rgba(196, 75, 255, 0.2);
}

body.dark-mode .checkbox-group label {
  color: #ccc;
}

body.dark-mode .qr-guard {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .qr-guard-message {
  background: rgba(26, 26, 26, 0.95);
}

body.dark-mode .qr-guard-message p {
  color: #ccc;
}

body.dark-mode .qr-image-wrapper {
  background: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .qr-info-text {
  background: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .qr-info-text p {
  color: #ccc;
}

body.dark-mode .payment-instructions {
  background: #1a1a1a;
  border-color: #c44bff;
}

body.dark-mode .payment-instructions li {
  color: #ccc;
}

body.dark-mode .file-upload-area {
  background: #1a1a1a;
  border-color: #c44bff;
}

body.dark-mode .file-upload-area:hover {
  background: #2d2d2d;
}

body.dark-mode .file-upload-area p {
  color: #ccc;
}

body.dark-mode .file-types {
  color: #888;
}

body.dark-mode .step-number {
  border-color: #1a1a1a;
}

body.dark-mode .process-steps::before {
  background: #404040;
}

body.dark-mode .modal-content {
  background: #2d2d2d;
  color: #eee;
}

body.dark-mode .success-details {
  background: #1a1a1a;
}

body.dark-mode .success-details p {
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .donation-header {
    padding: 4rem 1.5rem 3rem;
  }
  
  .donation-header-content h1 {
    font-size: 2rem;
  }
  
  .donation-header-content p {
    font-size: 1.1rem;
  }
  
  .donation-process {
    padding: 0 1rem;
    margin: 1rem auto 2rem;
  }
  
  .step-container {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .form-container,
  .payment-container,
  .proof-container {
    padding: 2rem;
  }
  
  .form-container h2,
  .payment-container h2,
  .proof-container h2 {
    font-size: 1.5rem;
  }
  
  .process-steps::before {
    left: 40px;
    right: 40px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .step-text h3 {
    font-size: 0.9rem;
  }
  
  .step-text p {
    font-size: 0.8rem;
  }
  
  .qr-guard {
    min-height: 300px;
  }
  
  .qr-image-wrapper {
    max-width: 250px;
    padding: 15px;
  }
  
  .step-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .form-container,
  .payment-container,
  .proof-container {
    padding: 1.5rem;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .step {
    text-align: center;
  }
  
  .qr-guard-message i {
    font-size: 3rem;
  }
  
  .qr-guard-message p {
    font-size: 1rem;
  }
  
  .file-upload-area {
    padding: 2rem 1rem;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
}