/* Donate Page Styles */
:root {
  --primary: #1a365d;
  --primary-dark: #0f2744;
  --accent: #c9a227;
  --accent-light: #d4b64a;
  --accent-dark: #a68519;
  --success: #38a169;
  --error: #e53e3e;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #171923;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* Hero Section */
.donate-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.donate-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.donate-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,39,68,0.95) 0%, rgba(26,54,93,0.85) 100%);
}

.donate-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

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

.donate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.donate-badge svg { width: 18px; height: 18px; }

.donate-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.donate-hero-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Donation Section */
.donate-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.donate-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .donate-grid { grid-template-columns: 1fr 400px; gap: 3rem; }
}

/* Donation Card */
.donate-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.donate-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.donate-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.donate-card-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* Amount Selection */
.amount-section {
  padding: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.amount-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  transition: all 0.2s ease;
  cursor: pointer;
}

.amount-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.amount-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201,162,39,0.4);
}

.custom-amount {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  transition: border-color 0.2s ease;
}

.custom-amount:focus-within {
  border-color: var(--accent);
}

.currency-symbol {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-400);
}

.custom-amount input {
  flex: 1;
  padding: 1rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  outline: none;
}

.custom-amount input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

/* Donation Type */
.donation-type {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.2s ease;
  cursor: pointer;
}

.type-btn svg { width: 18px; height: 18px; }

.type-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.type-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Donation Form */
.donation-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

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

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Submit Button */
.donate-submit {
  width: 100%;
  padding: 1.125rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(201,162,39,0.4);
}

.donate-submit svg { width: 24px; height: 24px; }

.donate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.5);
}

.donate-submit.loading .btn-text,
.donate-submit.loading svg { display: none; }

.donate-submit .btn-loading {
  display: none;
}

.donate-submit.loading .btn-loading {
  display: inline !important;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.secure-note svg { width: 14px; height: 14px; color: var(--success); }

/* Success State */
.donation-success {
  padding: 3rem 2rem;
  text-align: center;
  display: none;
}

.donation-success.show { display: block; }

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success) 0%, #2f855a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.donation-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.donation-success p {
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.donation-success .ref-number {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.ref-number span {
  font-weight: 700;
  color: var(--accent);
}

/* Sidebar */
.donate-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Impact Card */
.impact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.impact-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.impact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.impact-item:hover {
  background: rgba(201,162,39,0.1);
  transform: translateX(5px);
}

.impact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.impact-icon svg { width: 24px; height: 24px; color: white; }

.impact-info {
  display: flex;
  flex-direction: column;
}

.impact-amount {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.impact-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Ways Card */
.ways-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.ways-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.ways-list {
  list-style: none;
}

.ways-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  font-size: 0.95rem;
}

.ways-list li:last-child { border-bottom: none; }

.ways-list svg { width: 18px; height: 18px; color: var(--accent); }

.contact-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-500);
}

.contact-info a {
  color: var(--accent);
  font-weight: 600;
}

/* Testimonial Card */
.testimonial-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: white;
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.testimonial-quote svg { width: 100%; height: 100%; color: var(--accent); }

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--white);
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.faq-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.faq-item h3 svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.faq-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201,162,39,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.5);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-ghost {
  color: rgba(255,255,255,0.85);
  background: transparent;
}

.btn-ghost:hover { color: var(--accent); }
.header.scrolled .btn-ghost { color: var(--gray-600); }
.header.scrolled .btn-ghost:hover { color: var(--accent); }

.btn-full { width: 100%; }

/* Responsive */
@media (max-width: 640px) {
  .amount-buttons { grid-template-columns: repeat(2, 1fr); }
  .donation-type { grid-template-columns: 1fr; }
}
