/* Single Appeal Page Styles - MPFoundation Branding */
.mpf-single-appeal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

.mpf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - Enhanced MPFoundation Branding */
.mpf-appeal-hero {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #312e81 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.mpf-appeal-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #312e81 100%);
    z-index: 1;
}

.mpf-appeal-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.mpf-appeal-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-appeal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(30, 64, 175, 0.85) 0%, 
        rgba(30, 58, 138, 0.85) 50%, 
        rgba(49, 46, 129, 0.85) 100%
    );
    z-index: 2;
}

.mpf-appeal-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: white;
    padding: 60px 0;
}

.mpf-appeal-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.mpf-appeal-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.mpf-appeal-breadcrumb a:hover {
    opacity: 1;
    border-bottom-color: white;
}

.mpf-appeal-breadcrumb span {
    margin: 0 10px;
    opacity: 0.7;
}

.mpf-appeal-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mpf-appeal-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 30px 0;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mpf-appeal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.mpf-appeal-location,
.mpf-appeal-urgency {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mpf-appeal-location i,
.mpf-appeal-urgency i {
    font-size: 14px;
}

.mpf-appeal-urgency.mpf-urgency-high {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
}

.mpf-appeal-urgency.mpf-urgency-medium {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.4);
}

.mpf-appeal-urgency.mpf-urgency-low {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Hero Quick Stats */
.mpf-hero-quick-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.mpf-hero-stat {
    text-align: center;
}

.mpf-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mpf-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Main Content Area */
.mpf-appeal-main {
    padding: 80px 0;
    background: white;
}

.mpf-appeal-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Content Column - Enhanced MPFoundation Styling */
.mpf-appeal-content {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.mpf-appeal-summary h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
    line-height: 1.2;
}

.mpf-appeal-excerpt {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 500;
}

.mpf-appeal-description {
    margin-bottom: 50px;
}

.mpf-appeal-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #1e293b;
    position: relative;
    padding-bottom: 10px;
}

.mpf-appeal-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 2px;
}

.mpf-appeal-description p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: #475569;
    font-size: 16px;
}

.mpf-appeal-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Impact Section - Enhanced */
.mpf-appeal-impact {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 50px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.mpf-appeal-impact h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
    text-align: center;
}

.mpf-impact-list {
    display: grid;
    gap: 20px;
}

.mpf-impact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #1e40af;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mpf-impact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Items that carry data-amount are clickable donation selectors */
.mpf-impact-item[data-amount] {
    cursor: pointer;
}

/* Visual state when a donor selects an impact item */
.mpf-impact-item.mpf-impact-selected {
    border-left-color: #207dad;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 20px rgba(32, 125, 173, 0.25);
}
.mpf-impact-item.mpf-impact-selected .mpf-impact-amount {
    color: #207dad;
}

.mpf-impact-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e40af;
    min-width: 80px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mpf-impact-description {
    color: #475569;
    font-weight: 500;
    line-height: 1.6;
}

/* Gallery - Enhanced */
.mpf-appeal-gallery {
    margin-bottom: 50px;
}

.mpf-appeal-gallery h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
    text-align: center;
}

.mpf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mpf-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mpf-gallery-item img:hover {
    transform: scale(1.05);
}

/* Sidebar - Donation Widget Enhanced */
.mpf-appeal-sidebar {
    position: sticky;
    top: 100px;
}

.mpf-donation-widget {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.mpf-donation-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #8b5cf6 100%);
}

.mpf-donation-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.mpf-donation-stats > div {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.mpf-stats-raised .mpf-amount {
    color: #059669;
}

.mpf-stats-target .mpf-amount {
    color: #1e40af;
}

.mpf-stats-time .mpf-amount {
    color: #dc2626;
}

.mpf-donation-stats .mpf-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mpf-donation-stats .mpf-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 600;
}

.mpf-progress-container {
    margin-bottom: 40px;
}

.mpf-progress-bar {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mpf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%);
    transition: width 2s ease-in-out;
    position: relative;
}

.mpf-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mpf-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

/* Donation Form Enhanced */
.mpf-donation-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
    text-align: center;
}

.mpf-amount-selection h4,
.mpf-donation-frequency h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.mpf-amount-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.mpf-amount-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mpf-amount-btn:hover,
.mpf-amount-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.mpf-custom-amount {
    margin-bottom: 25px;
}

.mpf-custom-amount label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.mpf-custom-amount input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mpf-custom-amount input:focus {
    outline: none;
    border-color: #667eea;
}

.mpf-frequency-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mpf-frequency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mpf-frequency-option input[type="radio"] {
    margin: 0;
}

/* =====================================================================
   Gift Aid Section – Full HMRC-compliant implementation
   ===================================================================== */
.mpf-gift-aid-section {
    margin-bottom: 20px;
}

.mpf-gift-aid-toggle {
    margin-bottom: 0;
}

.mpf-gift-aid-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.mpf-gift-aid-option input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #2c5aa0;
    cursor: pointer;
}

.mpf-gift-aid-text {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

.mpf-gift-aid-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Expanding detail panel */
.mpf-gift-aid-details {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    animation: mpfGaFadeIn 0.2s ease;
}

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

.mpf-gift-aid-declaration {
    font-size: 12.5px;
    color: #374151;
    line-height: 1.55;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #fff;
    border-left: 3px solid #2c5aa0;
    border-radius: 4px;
}

.mpf-gift-aid-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpf-gift-aid-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.mpf-ga-required {
    color: #dc2626;
    margin-left: 2px;
}

.mpf-gift-aid-field input[type="text"],
.mpf-gift-aid-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.mpf-gift-aid-field input[type="text"]:focus,
.mpf-gift-aid-field textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44,90,160,0.12);
}

.mpf-gift-aid-field textarea {
    resize: vertical;
    min-height: 56px;
}

.mpf-gift-aid-info {
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 0;
    line-height: 1.4;
}

.mpf-gift-aid-info a {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Legacy selectors kept for backward compat */
.mpf-gift-aid { margin-bottom: 20px; }
.mpf-gift-aid-text small { display: block; color: #6c757d; margin-top: 2px; }

.mpf-donate-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mpf-donate-btn-primary:hover {
    transform: translateY(-2px);
}

.mpf-donation-security {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.mpf-security-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #28a745;
}

.mpf-donation-security small {
    color: #6c757d;
    font-size: 12px;
}

/* Share Section */
.mpf-appeal-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.mpf-appeal-share h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.mpf-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mpf-share-btn {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mpf-share-facebook:hover {
    background: #1877f2;
    color: white;
}

.mpf-share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.mpf-share-whatsapp:hover {
    background: #25d366;
    color: white;
}

.mpf-share-copy:hover {
    background: #6c757d;
    color: white;
}

/* Related Appeals */
.mpf-related-appeals {
    padding: 60px 0;
    background: white;
}

.mpf-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.mpf-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.mpf-section-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.mpf-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mpf-related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mpf-related-card:hover {
    transform: translateY(-5px);
}

.mpf-related-image {
    height: 200px;
    overflow: hidden;
}

.mpf-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-related-content {
    padding: 25px;
}

.mpf-related-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.mpf-related-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mpf-related-content h3 a:hover {
    color: #667eea;
}

.mpf-related-content p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mpf-related-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mpf-related-progress {
    flex: 1;
    margin-right: 15px;
}

.mpf-related-progress .mpf-progress-bar {
    height: 6px;
    margin-bottom: 5px;
}

.mpf-related-progress span {
    font-size: 12px;
    color: #6c757d;
}

.mpf-related-btn {
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.mpf-related-btn:hover {
    background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mpf-appeal-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mpf-appeal-sidebar {
        position: static;
        order: -1;
    }
    
    .mpf-hero-quick-stats {
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mpf-container {
        padding: 0 15px;
    }
    
    .mpf-appeal-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .mpf-appeal-hero-content {
        padding: 40px 0;
    }
    
    .mpf-appeal-title {
        font-size: 2.5rem;
    }
    
    .mpf-appeal-meta {
        justify-content: center;
        gap: 15px;
    }
    
    .mpf-hero-quick-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .mpf-stat-number {
        font-size: 2rem;
    }
    
    .mpf-appeal-content {
        padding: 30px 25px;
        border-radius: 12px;
    }
    
    .mpf-donation-widget {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .mpf-donation-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mpf-amount-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .mpf-related-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .mpf-appeal-title {
        font-size: 2rem;
    }
    
    .mpf-hero-quick-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .mpf-appeal-content {
        padding: 25px 20px;
    }
    
    .mpf-donation-widget {
        padding: 25px 20px;
    }
    
    .mpf-amount-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mpf-appeal-summary h2 {
        font-size: 1.75rem;
    }
    
    .mpf-appeal-impact {
        padding: 25px 20px;
    }
    
    .mpf-impact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mpf-impact-amount {
        min-width: auto;
    }
}

/* Enhanced Button Styles */
.mpf-amount-btn {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mpf-amount-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.mpf-amount-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-color: #1e40af;
    color: white;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.mpf-amount-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Enhanced Donate Button */
.mpf-donate-btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.mpf-donate-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(5, 150, 105, 0.4);
}

.mpf-donate-btn-primary:active {
    transform: translateY(-1px);
}

.mpf-donate-btn-primary i {
    margin-left: 10px;
    font-size: 20px;
}

/* Lightbox Enhancement */
.mpf-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.mpf-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.mpf-lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mpf-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.mpf-lightbox-close:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpf-appeal-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mpf-appeal-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .mpf-appeal-title {
        font-size: 2rem;
    }
    
    .mpf-appeal-content,
    .mpf-donation-widget {
        padding: 25px;
    }
    
    .mpf-donation-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mpf-amount-buttons {
        grid-template-columns: 1fr;
    }
    
    .mpf-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .mpf-related-grid {
        grid-template-columns: 1fr;
    }
    
    .mpf-appeal-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 480px) {
    .mpf-container {
        padding: 0 15px;
    }
    
    .mpf-appeal-main {
        padding: 40px 0;
    }
    
    .mpf-appeal-title {
        font-size: 1.8rem;
    }
    
    .mpf-section-header h2 {
        font-size: 2rem;
    }
    
    .mpf-frequency-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .mpf-appeal-sidebar,
    .mpf-related-appeals,
    .mpf-appeal-share {
        display: none;
    }
    
    .mpf-appeal-content-grid {
        grid-template-columns: 1fr;
    }
    
    .mpf-appeal-hero {
        min-height: auto;
        padding: 20px 0;
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/* Accessibility Improvements */
.mpf-amount-btn:focus,
.mpf-custom-amount input:focus,
.mpf-donate-btn-primary:focus,
.mpf-share-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.mpf-frequency-option input[type="radio"]:focus,
.mpf-gift-aid-option input[type="checkbox"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 1px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.mpf-donate-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mpf-donate-btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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