/* CaringBridge Design System */

:root {
  /* Primary Colors */
  --color-primary: #832044;
  --color-primary-hover: #6B1A37;
  --color-primary-active: #5A1530;
  --color-primary-light: rgba(131, 32, 68, 0.1);

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-gray-50: #F7F7F7;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E0E0E0;
  --color-gray-300: #CCCCCC;
  --color-gray-400: #999999;
  --color-gray-500: #757575;
  --color-gray-600: #666666;
  --color-gray-900: #333333;

  /* Semantic Colors */
  --color-success: #832044;  /* Changed from green to CaringBridge primary */
  --color-error: #C62828;
  --color-warning: #F57C00;
  --color-info: #1976D2;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 8px rgba(131, 32, 68, 0.2);
  --shadow-focus: 0 0 0 3px rgba(131, 32, 68, 0.1);

  /* Font Family */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;

  /* Font Weights */
  --font-regular: 400;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Breakpoints */
  --breakpoint-mobile: 0px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1440px;
}

/* Global Resets & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-900);
  background-color: var(--color-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  font-weight: var(--font-semibold);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

/* Layout Utilities */
.container {
  max-width: 800px;  /* Increased from 640px for wider desktop view */
  margin: 0 auto;
  padding: var(--space-6);
}

@media (min-width: 1024px) {
  .container {
    max-width: 900px;  /* Even wider on large desktops */
  }
}

.step-container {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
}

@media (max-width: 767px) {
  .step-container {
    margin-bottom: 80px;  /* Extra space for sticky CTA bar on mobile */
  }
}

/* Buttons */
.button-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 12px 40px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  min-height: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  font-family: var(--font-primary);
}

.button-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
}

.button-primary:active {
  background-color: var(--color-primary-active);
  transform: translateY(1px);
}

.button-primary:disabled {
  background-color: var(--color-gray-300);
  color: var(--color-gray-600);
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  padding: 10px 40px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  min-height: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  font-family: var(--font-primary);
}

.button-secondary:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
}

.button-text {
  background: none;
  border: none;
  color: var(--color-primary);
  text-decoration: underline;
  font-size: var(--text-base);
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--font-primary);
}

.button-text:hover {
  color: var(--color-primary-hover);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-gray-900);
}

.input-text,
.input-textarea {
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: var(--text-base);
  min-height: 48px;
  background-color: var(--color-white);
  color: var(--color-gray-900);
  transition: border-color 0.2s ease;
  width: 100%;
  font-family: var(--font-primary);
}

.input-text:focus,
.input-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: var(--shadow-focus);
}

.input-text.error,
.input-textarea.error {
  border-color: var(--color-error);
}

.input-text:disabled,
.input-textarea:disabled {
  background-color: var(--color-gray-100);
  color: var(--color-gray-400);
  cursor: not-allowed;
}

.input-textarea {
  min-height: 120px;
  resize: vertical;
}

.input-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-300);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.input-checkbox:checked {
  accent-color: var(--color-primary);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card-highlighted {
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: var(--space-6);
}

.card-amount {
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: 8px;
  padding: var(--space-4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.card-amount:hover {
  box-shadow: var(--shadow-md);
}

.card-amount.selected {
  border-color: var(--color-primary);
  border-width: 3px;
  background-color: rgba(131, 32, 68, 0.02);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-error {
  color: var(--color-error);
}

.text-success {
  color: var(--color-success);
}

.text-gray-500 {
  color: var(--color-gray-500);
}

.text-gray-600 {
  color: var(--color-gray-600);
}

.text-gray-700 {
  color: #555555;
}

.text-gray-800 {
  color: #444444;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-3 { margin-left: var(--space-3); }
.mr-2 { margin-right: var(--space-2); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.space-y-1 > * + * {
  margin-top: var(--space-1);
}

.space-y-3 > * + * {
  margin-top: var(--space-3);
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: var(--space-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-gray-200);
}

.divider-text::before {
  margin-right: var(--space-3);
}

.divider-text::after {
  margin-left: var(--space-3);
}

/* Responsive Design */
@media (max-width: 767px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .step-container {
    padding: var(--space-6);
  }
  
  .container {
    padding: var(--space-4);
  }
}

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

/* Hidden utilities */
.hidden {
  display: none;
}

/* Max width utilities */
.max-w-xs {
  max-width: 150px;
}

.max-w-2xl {
  max-width: 672px;
}

.max-w-4xl {
  max-width: 896px;
}

/* Hover effects */
.hover\:shadow-md:hover {
  box-shadow: var(--shadow-md);
}

.transition-shadow {
  transition: box-shadow 0.2s ease;
}

/* Inline utilities */
.inline-block {
  display: inline-block;
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

.italic {
  font-style: italic;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: 28px;
}

.text-6xl {
  font-size: 60px;
}

/* Link styles */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Block quote */
blockquote {
  padding-left: var(--space-4);
  border-left: 4px solid var(--color-gray-200);
}

/* Rounded corners */
.rounded {
  border-radius: 4px;
}

.rounded-lg {
  border-radius: 8px;
}

.rounded-full {
  border-radius: 9999px;
}

/* Position utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Width utilities */
.w-full {
  width: 100%;
}

.w-8 {
  width: 32px;
}

.h-8 {
  height: 32px;
}

.w-14 {
  width: 56px;
}

.h-14 {
  height: 56px;
}

/* Ring utilities */
.ring-4 {
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Flex utilities */
.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Height utilities */
.h-1 {
  height: 4px;
}

.min-h-48 {
  min-height: 48px;
}

/* Padding utilities */
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.px-12 {
  padding-left: var(--space-12);
  padding-right: var(--space-12);
}

.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.pl-8 {
  padding-left: var(--space-8);
}

.pt-3 {
  padding-top: var(--space-3);
}

/* Margin utilities */
.mx-2 {
  margin-left: var(--space-2);
  margin-right: var(--space-2);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Text overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Top position */
.top-3 {
  top: 12px;
}

/* Left position */
.left-4 {
  left: 16px;
}

/* Sticky CTA Bar (Mobile Only) */
.sticky-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: var(--space-4);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-top: 1px solid var(--color-gray-200);
  }
  
  .sticky-cta-bar .button-primary,
  .sticky-cta-bar .button-secondary {
    width: 100%;
    margin-bottom: var(--space-2);
  }
  
  .sticky-cta-bar .button-primary:last-child,
  .sticky-cta-bar .button-secondary:last-child {
    margin-bottom: 0;
  }
  
  /* Hide regular CTAs when sticky bar is active */
  .button-group {
    display: none;
  }
  
  /* Add padding to body to prevent content from hiding behind sticky bar */
  body {
    padding-bottom: 80px;
  }
}

/* Clickable Progress Bar */
.progress-step {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.progress-step:hover {
  transform: scale(1.1);
}

.progress-step:active {
  transform: scale(0.95);
}

.progress-step.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.progress-step.disabled:hover {
  transform: none;
}

/* Heart emoji replacement with CaringBridge primary color */
.cb-heart {
  color: var(--color-primary);
  font-weight: bold;
}

/* Success text color update */
.text-success-primary {
  color: var(--color-primary);
}

/* Express Checkout Buttons - Updated Styling */
.express-checkout-btn {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-primary);
}

.apple-pay-btn {
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apple-pay-btn .apple-icon {
  display: flex;
  align-items: center;
}

.apple-pay-btn .pay-text {
  font-size: 22px;
  letter-spacing: -0.5px;
}

.apple-pay-btn:hover {
  background-color: #1a1a1a;
}

.google-pay-btn {
  background-color: #fff;
  border: 1px solid var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-pay-btn:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.paypal-btn {
  background-color: #FFC439;
  border: 1px solid #FFC439;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paypal-btn:hover {
  background-color: #FFD666;
}

/* Animated Donation Feed */
.donation-feed {
  overflow: hidden;
  position: relative;
}

.donation-item {
  animation: slideIn 0.5s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.donation-item.fade-out {
  animation: slideOut 0.5s ease-out forwards;
}

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

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

/* ==========================================
   PATIENT PAGE STYLES
   ========================================== */

.patient-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f7f9;
}

/* Header */
.cb-header {
  background-color: white;
  border-bottom: 1px solid #e1e4e8;
  padding: 16px 0;
}

.cb-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.cb-heart {
  color: var(--color-primary);
  font-size: 24px;
}

.cb-wordmark {
  letter-spacing: 0.5px;
}

.cb-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.cb-nav a {
  color: #586069;
  text-decoration: none;
  transition: color 0.2s;
}

.cb-nav a:hover {
  color: var(--color-primary);
}

.cb-btn-donate-header {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 40px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cb-btn-donate-header:hover {
  background-color: var(--color-primary-dark);
}

.cb-signin {
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* Patient Banner */
.cb-patient-banner {
  background: linear-gradient(135deg, #f5f7f9 0%, #e8eaed 100%);
  padding: 40px 0;
  border-bottom: 1px solid #e1e4e8;
}

.cb-patient-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cb-patient-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cb-patient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-patient-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 4px 0;
}

.cb-patient-subtitle {
  font-size: 18px;
  color: var(--color-gray-700);
  margin: 0 0 8px 0;
}

.cb-patient-visits {
  font-size: 14px;
  color: var(--color-gray-600);
  margin: 0;
}

/* Main Content */
.cb-main-content {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.cb-post-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 32px;
}

/* Post Header */
.cb-post-header {
  margin-bottom: 24px;
}

.cb-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-author-avatar {
  position: relative;
  width: 50px;
  height: 50px;
}

.cb-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cb-heart-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-primary);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cb-author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.cb-post-date {
  font-size: 14px;
  color: var(--color-gray-600);
  margin: 4px 0 0 0;
}

/* Post Content */
.cb-post-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 16px 0;
}

.cb-post-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  margin: 0 0 16px 0;
}

/* Donation Module */
.cb-donation-module {
  background: #fafbfc;
  border: none;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cb-donation-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 12px 0;
}

.cb-donation-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-800);
  margin: 0 0 20px 0;
}

.cb-donation-form {
  display: flex;
  gap: 12px;
}

.cb-donation-message {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-gray-700);
}

.cb-donation-message::placeholder {
  color: var(--color-gray-500);
}

.cb-btn-donate-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
  width: auto;
}

.cb-btn-donate-primary:hover {
  background-color: #9a2850;
}

/* Engagement Actions */
.cb-engagement-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  margin: 24px 0;
}

.cb-action-btn {
  background: none;
  border: none;
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.cb-action-btn:hover {
  background-color: var(--color-gray-100);
}

.cb-icon {
  font-size: 16px;
}

.cb-engagement-stats {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gray-600);
}

.cb-stat-count {
  font-weight: 600;
}

.cb-first-comment {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.cb-first-comment:hover {
  text-decoration: underline;
}

/* Comment Section */
.cb-comment-section {
  margin: 24px 0;
}

.cb-comment-hint {
  font-size: 14px;
  color: var(--color-gray-600);
  margin: 0 0 12px 0;
}

.cb-comment-input-wrapper {
  display: flex;
  gap: 12px;
}

.cb-comment-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  font-size: 14px;
}

.cb-comment-send {
  background-color: var(--color-gray-200);
  color: var(--color-gray-700);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cb-comment-send:hover {
  background-color: var(--color-gray-300);
}

/* Back Link */
.cb-back-link {
  margin: 24px 0 0 0;
}

.cb-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.cb-link:hover {
  text-decoration: underline;
}

/* Footer */
.cb-footer {
  background-color: #2c3e50;
  color: white;
  padding: 48px 0 24px 0;
  margin-top: auto;
}

.cb-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cb-footer-brand {
  margin-bottom: 40px;
}

.cb-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cb-footer-tagline {
  font-size: 16px;
  color: #ecf0f1;
  margin: 0 0 16px 0;
  max-width: 400px;
}

.cb-btn-donate-footer {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cb-btn-donate-footer:hover {
  background-color: var(--color-primary-dark);
}

.cb-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.cb-footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cb-footer-column a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.cb-footer-column a:hover {
  color: white;
}

.cb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb-social-links {
  display: flex;
  gap: 16px;
}

.cb-social-links a {
  font-size: 24px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cb-social-links a:hover {
  opacity: 0.8;
}

.cb-copyright {
  font-size: 13px;
  color: #95a5a6;
  margin: 0;
}

.cb-footer-legal {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #95a5a6;
}

.cb-footer-legal a {
  color: #95a5a6;
  text-decoration: none;
}

.cb-footer-legal a:hover {
  color: white;
}

.cb-footer-badges {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.cb-footer-badges img {
  height: 40px;
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cb-nav {
    display: none;
  }
  
  .cb-patient-info {
    flex-direction: column;
    text-align: center;
  }
  
  .cb-patient-name {
    font-size: 24px;
  }
  
  .cb-post-container {
    padding: 20px;
  }
  
  .cb-donation-form {
    flex-direction: column;
  }
  
  .cb-engagement-actions {
    flex-wrap: wrap;
  }
  
  .cb-footer-links {
    grid-template-columns: 1fr;
  }
}

/* Updated Donation Module Styles */
.cb-donation-stats {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-800);
  margin: 16px 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-donation-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin: 24px 0 16px 0;
}

.cb-btn-text-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  transition: opacity 0.2s;
}

.cb-btn-text-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.cb-donation-security {
  font-size: 13px;
  color: var(--color-gray-600);
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .cb-donation-actions {
    gap: 8px;
  }
}

/* Mobile Button Styles - Full Width on Mobile */
@media (max-width: 768px) {
  .button-primary,
  .button-secondary,
  .cb-btn-donate-primary {
    width: 100%;
  }
  
  .cb-donation-actions {
    width: 100%;
    align-items: stretch;
  }
  
  .cb-donation-actions .cb-btn-donate-primary {
    width: 100%;
  }
}
