/* Modern NGO Form - Saffron/Orange Theme */
:root {
  --primary: #ff6b35;
  --primary-light: #ff8c42;
  --primary-dark: #e55a2b;
  --accent: #ff9500;
  --accent-light: #ffab33;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Section */
.form-header {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 1px solid var(--border-light);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: 0rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: var(--shadow-lg);
}

.logo-image {
  width: 150px;
  height: 70px;
  object-fit: cover;
  background: rgba(255, 255, 255);
  padding: 0.5rem;
  border-radius: var(--radius);
}

.logo i {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  border-radius: var(--radius);
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.event-title {
  margin: 1rem 0;
  text-align: center;
}

.event-name {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.form-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.prizes-info {
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}

.prizes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

.prizes-badge i {
  color: #f59e0b;
  font-size: 1.2rem;
}

.fee-info {
  display: block;
  text-align: center;
}

.fee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #9a3412;
  border: 1px solid var(--primary);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.fee-badge i {
  color: var(--primary);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Form Sections */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.form-section h3 i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-light);
}

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

/* Input with Icons */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  z-index: 1;
}

.input-with-icon input {
  padding-left: 3rem;
}

/* Checkbox Styling */
.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
  accent-color: var(--primary);
}

.checkbox-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-light);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressAnimation 2s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-text:last-child {
    margin-bottom: 0;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Enhanced progress bar for payment processing */
.progress-container.payment-processing {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    animation: slideInDown 0.5s ease-out;
}

.progress-container.payment-processing .progress-fill {
    background: linear-gradient(90deg, var(--success), #22c55e);
    animation: paymentProgressAnimation 1.5s ease-in-out infinite;
}

/* Progress bar for payment failure */
.progress-container.payment-processing.failure {
    border-color: var(--error);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.progress-container.payment-processing.failure .progress-fill {
    background: linear-gradient(90deg, var(--error), #dc2626);
    animation: paymentProgressAnimation 1.5s ease-in-out infinite;
}

/* Progress bar for payment cancellation */
.progress-container.payment-processing.cancelled {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.progress-container.payment-processing.cancelled .progress-fill {
    background: linear-gradient(90deg, var(--warning), #d97706);
    animation: paymentProgressAnimation 1.5s ease-in-out infinite;
}

@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes paymentProgressAnimation {
    0% { width: 0%; opacity: 0.7; }
    25% { width: 25%; opacity: 1; }
    50% { width: 60%; opacity: 0.9; }
    75% { width: 85%; opacity: 1; }
    100% { width: 100%; opacity: 0.8; }
}

/* Ensure progress bar is always visible when active */
.progress-container[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  min-width: 140px;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0284c7, var(--accent));
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 500px;
  margin: 5% auto;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Payment Modal Specific */
.payment-modal .modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.registration-summary h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.summary-item .label {
  font-weight: 500;
  color: var(--text-secondary);
}

.summary-item .value {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-item .amount {
  color: var(--success);
  font-size: 1.1rem;
}

.payment-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Success Modal */
.success-icon {
  color: var(--success);
  font-size: 2rem;
}

.success-details {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.success-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.success-item:last-child {
  margin-bottom: 0;
}

/* Failed Modal */
.failed-modal .modal-header {
  background: linear-gradient(135deg, var(--error), #f87171);
  color: white;
}

.failure-reasons {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.failure-reasons li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Form Error Banner */
.form-error-banner {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid var(--error);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    animation: errorBannerSlideIn 0.4s ease-out;
}

.error-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--error);
    font-weight: 500;
}

.error-banner-content i {
    font-size: 1.1rem;
    color: var(--error);
}

.error-close-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    margin-left: auto;
    transition: background-color 0.2s ease;
}

.error-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

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

/* Form Success Banner */
.form-success-banner {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    animation: successBannerSlideIn 0.4s ease-out;
}

.success-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--success);
    font-weight: 500;
}

.success-banner-content i {
    font-size: 1.1rem;
    color: var(--success);
}

.success-close-btn {
    background: none;
    border: none;
    color: var(--success);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    margin-left: auto;
    transition: background-color 0.2s ease;
}

.success-close-btn:hover {
    background: rgba(5, 150, 105, 0.1);
}

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

/* Error Styling */
.field-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: errorSlideIn 0.3s ease-out;
}

.field-error::before {
    content: "⚠️";
    font-size: 0.75rem;
}

/* Error field highlighting */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: errorShake 0.5s ease-in-out;
}

/* Error highlight animation */
.error-highlight {
    animation: errorHighlight 2s ease-in-out;
}

/* Error animations */
@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes errorHighlight {
    0%, 100% { 
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        border-color: var(--error);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
        border-color: #dc2626;
    }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }
  
  .form-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .payment-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .form-header p {
    font-size: 1rem;
  }
}

/* Admin Section */
.admin-section {
    margin-top: 2rem;
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.counter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.counter-info span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.counter-info strong {
    color: var(--primary);
    font-weight: 600;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

/* Progress Bar */


/* Success Page Styles */
.success-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.success-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.success-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.success-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out 0.3s both;
}

.success-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.success-details {
    padding: 40px 30px;
}

.detail-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.detail-card h3 {
    color: #1e293b;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-item .label {
    font-weight: 600;
    color: #475569;
}

.detail-item .value {
    font-weight: 700;
    color: #059669;
    font-family: 'Courier New', monospace;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
}

.detail-item .value.amount {
    font-size: 1.1rem;
    color: #059669;
}

.whatsapp-section {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.whatsapp-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="60" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="80" r="0.6" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.whatsapp-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.whatsapp-section p {
    margin: 0 0 25px 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #25d366;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.whatsapp-note {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.next-steps {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.next-steps h3 {
    color: #92400e;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-steps h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.next-steps ul {
    margin: 0;
    padding-left: 20px;
    color: #92400e;
}

.next-steps li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.next-steps li:last-child {
    margin-bottom: 0;
}

.success-actions {
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 160px;
    padding: 12px 24px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .success-page {
        padding: 10px;
    }
    
    .success-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .success-header {
        padding: 30px 20px;
    }
    
    .success-header h1 {
        font-size: 2rem;
    }
    
    .success-details {
        padding: 25px 20px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .whatsapp-section {
        padding: 25px 20px;
    }
    
    .whatsapp-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .success-actions {
        padding: 25px 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .success-header h1 {
        font-size: 1.8rem;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .detail-card,
    .whatsapp-section,
    .next-steps {
        padding: 20px 15px;
    }
}

/* Failure Page Styles */
.failure-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.failure-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.failure-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    text-align: center;
    padding: 40px 30px;
    position: relative;
}

.failure-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.failure-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: shake 1s ease-out 0.3s both;
}

.failure-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.failure-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.failure-details {
    padding: 40px 30px;
}

.failure-reasons {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.failure-reasons h3 {
    color: #dc2626;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.failure-reasons h3::before {
    content: '🔄';
    font-size: 1.2rem;
}

.failure-reasons ul {
    margin: 0;
    padding-left: 20px;
    color: #dc2626;
}

.failure-reasons li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.failure-reasons li:last-child {
    margin-bottom: 0;
}

.failure-help {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.failure-help h3 {
    color: #0369a1;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.failure-help h3::before {
    content: '💡';
    font-size: 1.2rem;
}

.failure-help ul {
    margin: 0;
    padding-left: 20px;
    color: #0369a1;
}

.failure-help li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.failure-help li:last-child {
    margin-bottom: 0;
}

.failure-actions {
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.failure-actions .btn {
    min-width: 160px;
    padding: 12px 24px;
}

.detail-item .value.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* Shake Animation for Failure Icon */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive Design for Failure Page */
@media (max-width: 768px) {
    .failure-page {
        padding: 10px;
    }
    
    .failure-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .failure-header {
        padding: 30px 20px;
    }
    
    .failure-header h1 {
        font-size: 2rem;
    }
    
    .failure-details {
        padding: 25px 20px;
    }
    
    .failure-actions {
        padding: 25px 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .failure-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .failure-header h1 {
        font-size: 1.8rem;
    }
    
    .failure-icon {
        font-size: 60px;
    }
    
    .failure-reasons,
    .failure-help {
        padding: 20px 15px;
    }
}

/* Thank You Page Styles */
.thank-you-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.thank-you-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.thank-you-header {
    margin-bottom: 30px;
}

.thank-you-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out;
}

.thank-you-header h1 {
    color: #ff6b35;
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.event-badge {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.thank-you-header h2 {
    color: #ff6b35;
    margin: 5px 0;
    font-size: 1.5rem;
}

.thank-you-header p {
    color: #6b7280;
    margin: 10px 0;
    font-size: 1.1rem;
}

.thank-you-details {
    margin-bottom: 30px;
}

.detail-card {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.detail-card h3 {
    color: #ff6b35;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    text-align: center;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #fed7aa;
}

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

.detail-item .label {
    font-weight: 600;
    color: #374151;
}

.detail-item .value {
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.1rem;
}

.whatsapp-section {
    background: #25d366;
    border: 1px solid #128c7e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.whatsapp-section h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.whatsapp-section p {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.whatsapp-btn {
    background: white;
    color: #25d366;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #25d366;
}

.whatsapp-note {
    color: rgba(255,255,255,0.8);
    margin: 15px 0 0 0;
    font-size: 0.9rem;
}

.next-steps {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.next-steps h3 {
    color: #92400e;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    text-align: center;
}

.next-steps ul {
    color: #92400e;
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.next-steps li {
    margin-bottom: 8px;
}

.thank-you-actions {
    text-align: center;
}

.thank-you-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Responsive Design for Thank You Page */
@media (max-width: 768px) {
    .thank-you-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .thank-you-header h1 {
        font-size: 2rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-item .value {
        font-size: 1rem;
    }
    
    .whatsapp-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}


