/* Fundraiser Campaign Styles */

.efc-fundraiser-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.efc-campaign-header {
    margin-bottom: 30px;
}

.efc-campaign-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.efc-campaign-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Progress Section */
.efc-progress-section {
    margin-bottom: 40px;
}

.efc-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.efc-stat {
    text-align: center;
    flex: 1;
}

.efc-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.efc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.efc-progress-bar {
    position: relative;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.efc-progress-bar-fill {
    position: relative;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.efc-progress-percentage {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* Donation Form */
.efc-donation-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.efc-donation-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.efc-donation-form h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.efc-amount-selection {
    margin-bottom: 25px;
}

.efc-amount-selection label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.efc-amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.efc-amount-option {
    padding: 15px;
    background-color: #2196F3;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.efc-amount-option:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.efc-amount-option.active {
    background-color: #1976D2;
    border-color: #0D47A1;
}

.efc-custom-amount {
    margin-top: 15px;
}

.efc-custom-amount label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.efc-donor-info {
    margin-bottom: 25px;
}

.efc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.efc-form-group {
    margin-bottom: 15px;
}

.efc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.efc-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.efc-input:focus {
    outline: none;
    border-color: #2196F3;
}

textarea.efc-input {
    resize: vertical;
}

/* Payment Section */
.efc-payment-section {
    margin-bottom: 25px;
}

.efc-card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.efc-error-message {
    color: #d32f2f;
    margin-top: 10px;
    font-size: 14px;
}

/* Donate Button */
.efc-donate-button {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.efc-donate-button:hover {
    background-color: #45a049;
}

.efc-donate-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
.efc-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.efc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.efc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Social Share */
.efc-social-share {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.efc-social-share h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.efc-social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.efc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.efc-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.efc-share-facebook {
    background-color: #1877f2;
}

.efc-share-twitter {
    background-color: #1da1f2;
}

.efc-share-linkedin {
    background-color: #0a66c2;
}

.efc-share-whatsapp {
    background-color: #25d366;
}

.efc-share-count {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Donations List */
.efc-recent-donations,
.efc-all-donations {
    margin-bottom: 30px;
}

.efc-recent-donations h3,
.efc-all-donations h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Two-Step Donation Form */
.efc-donation-form-widget .efc-step-1,
.efc-donation-form-widget .efc-step-2,
.efc-donation-form-widget .efc-step-3 {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.efc-selected-amount-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
}

.efc-selected-amount-display h3 {
    margin: 0 0 10px 0;
    color: #2e7d32;
}

.efc-selected-amount-display .efc-amount-text {
    font-size: 32px;
    font-weight: 700;
    color: #1b5e20;
}

.efc-back-button {
    padding: 8px 20px;
    background: #999;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.efc-back-button:hover {
    background: #777;
}

.efc-success-message {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border-radius: 8px;
    margin-bottom: 20px;
}

.efc-success-message h3 {
    margin: 0 0 10px 0;
    color: #155724;
}

.efc-success-message p {
    margin: 0;
    color: #155724;
}

.efc-comment-section {
    margin-top: 20px;
}

.efc-comment-section h4 {
    margin-bottom: 10px;
}

.efc-comment-section .efc-donate-button {
    margin-top: 10px;
    margin-right: 10px;
}

.efc-skip-comment {
    display: inline-block;
}

/* Donor List and Social Share Widgets */
.efc-donor-list-widget,
.efc-social-share-widget {
    margin-bottom: 30px;
}

.efc-donor-list-widget h3,
.efc-social-share-widget h4 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.efc-donations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.efc-donation-item {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.efc-donation-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.efc-donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.efc-donation-amount {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
}

.efc-donation-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.efc-donation-comment {
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.efc-donation-time {
    font-size: 12px;
    color: #999;
}

/* Pagination */
.efc-pagination {
    text-align: center;
    margin-top: 20px;
}

.efc-load-more-btn {
    padding: 12px 30px;
    background-color: #2196F3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.efc-load-more-btn:hover {
    background-color: #1976D2;
}

.efc-load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .efc-fundraiser-container {
        padding: 20px;
    }
    
    .efc-progress-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .efc-form-row {
        grid-template-columns: 1fr;
    }
    
    .efc-amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .efc-donation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
