/* MPFoundation Volunteer Page Styles */

/* Base Styles */
.mpf-volunteer-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Hero Section */
.mpf-volunteer-hero {
    background: linear-gradient(135deg, #207dad 0%, #1e6aa0 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mpf-volunteer-hero::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.mpf-hero-content {
    position: relative;
    z-index: 2;
}

.mpf-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.mpf-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 1;
    color: #ffffff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-weight: 500;
}

.mpf-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.mpf-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.mpf-stat-label {
    font-size: 0.9rem;
    opacity: 1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 600;
}

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

.mpf-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
}

.mpf-section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Why Volunteer Section */
.mpf-why-volunteer {
    padding: 60px 0;
    background: #f8f9fa;
}

.mpf-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mpf-benefit-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.mpf-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.mpf-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #207dad, #1e6aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.mpf-benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.mpf-benefit-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* Volunteer Opportunities Section */
.mpf-volunteer-opportunities {
    padding: 60px 0;
    background: white;
}

.mpf-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.mpf-opportunity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.mpf-opportunity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.mpf-opportunity-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.mpf-opportunity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mpf-opportunity-card:hover .mpf-opportunity-image img {
    transform: scale(1.05);
}

.mpf-opportunity-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.mpf-opportunity-tag {
    background: #207dad;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpf-opportunity-content {
    padding: 24px;
}

.mpf-opportunity-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpf-opportunity-content h3 i {
    color: #207dad;
    font-size: 1.1rem;
}

.mpf-opportunity-content p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mpf-opportunity-meta {
    display: flex;
    gap: 24px;
    color: #6c757d;
    font-size: 0.9rem;
}

.mpf-opportunity-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mpf-opportunity-meta i {
    color: #207dad;
}

/* Volunteer Form Section */
.mpf-volunteer-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mpf-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.mpf-form-intro {
    text-align: center;
    margin-bottom: 40px;
}

.mpf-form-intro h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mpf-form-intro h2 i {
    color: #207dad;
}

.mpf-form-intro p {
    font-size: 1.05rem;
    color: #6c757d;
}

.mpf-volunteer-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.mpf-form-section {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.mpf-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mpf-form-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpf-form-section h3 i {
    color: #207dad;
    font-size: 1.1rem;
}

.mpf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.mpf-form-group {
    margin-bottom: 20px;
}

.mpf-form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.mpf-form-group input,
.mpf-form-group select,
.mpf-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.mpf-form-group input:focus,
.mpf-form-group select:focus,
.mpf-form-group textarea:focus {
    outline: none;
    border-color: #207dad;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

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

/* Checkbox Grid */
.mpf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.mpf-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.mpf-checkbox-item:hover {
    background: #f8f9fa;
    border-color: #207dad;
}

.mpf-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #207dad;
}

.mpf-checkbox-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.mpf-agreement {
    margin-bottom: 14px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 6px;
}

.mpf-agreement .mpf-checkbox-label {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Form Actions */
.mpf-form-actions {
    text-align: center;
    margin-top: 32px;
}

.mpf-submit-btn {
    background: linear-gradient(135deg, #207dad, #1e6aa0);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.mpf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(40, 167, 69, 0.4);
}

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

.mpf-form-note {
    margin-top: 14px;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Testimonials Section */
.mpf-volunteer-testimonials {
    padding: 60px 0;
    background: white;
}

.mpf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mpf-testimonial-card {
    background: #f8f9fa;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mpf-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.mpf-testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
}

.mpf-testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: #207dad;
    position: absolute;
    top: -20px;
    left: -16px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.mpf-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mpf-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mpf-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpf-author-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.mpf-author-info span {
    color: #207dad;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mpf-volunteer-duration {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Call to Action Section */
.mpf-volunteer-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.mpf-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: white;
}

.mpf-cta-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mpf-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.mpf-cta-btn,
.mpf-btn-primary,
.mpf-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.mpf-btn-primary {
    background: linear-gradient(135deg, #207dad, #1e6aa0);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.mpf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.mpf-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.mpf-btn-secondary:hover {
    background: white;
    color: #2c3e50;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpf-container {
        padding: 0 16px;
    }
    
    .mpf-volunteer-hero {
        padding: 45px 0;
    }
    
    .mpf-hero-title {
        font-size: 2.2rem;
    }
    
    .mpf-hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .mpf-section-title {
        font-size: 1.9rem;
    }
    
    .mpf-why-volunteer,
    .mpf-volunteer-opportunities,
    .mpf-volunteer-form-section,
    .mpf-volunteer-testimonials,
    .mpf-volunteer-cta {
        padding: 45px 0;
    }
    
    .mpf-benefits-grid,
    .mpf-opportunities-grid,
    .mpf-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mpf-volunteer-form {
        padding: 28px 20px;
    }
    
    .mpf-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mpf-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .mpf-cta-actions {
        flex-direction: column;
        gap: 14px;
    }
    
    .mpf-cta-btn {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .mpf-container {
        padding: 0 14px;
    }
    
    .mpf-volunteer-hero {
        padding: 35px 0;
    }
    
    .mpf-hero-title {
        font-size: 1.9rem;
    }
    
    .mpf-section-title {
        font-size: 1.7rem;
    }
    
    .mpf-volunteer-form {
        padding: 20px 16px;
    }
    
    .mpf-benefit-card,
    .mpf-opportunity-content {
        padding: 20px;
    }
    
    .mpf-testimonial-card {
        padding: 20px;
    }
    
    .mpf-form-intro h2 {
        font-size: 1.9rem;
    }
    
    .mpf-cta-content h2 {
        font-size: 1.9rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Form Validation Styles */
.mpf-form-group input:invalid,
.mpf-form-group select:invalid,
.mpf-form-group textarea:invalid {
    border-color: #dc3545;
}

.mpf-form-group input:valid,
.mpf-form-group select:valid,
.mpf-form-group textarea:valid {
    border-color: #207dad;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.mpf-cta-btn:focus,
.mpf-btn-primary:focus,
.mpf-btn-secondary:focus,
.mpf-submit-btn:focus {
    outline: 3px solid rgba(40, 167, 69, 0.5);
    outline-offset: 2px;
}
