/* Smart Donation Form Styles */

.smart-donation-form-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.donation-form-heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    text-align: center;
}

/* Messages */
.donation-form-messages {
    margin-bottom: 20px;
}

.donation-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

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

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

/* Amount Selection */
.donation-amounts-section {
    margin-bottom: 25px;
}

.donation-amounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.donation-amount-option {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 5px;
    color: #333;
}

.donation-amount-option:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.donation-amount-option.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Form Groups */
.donation-form-group {
    margin-bottom: 20px;
}

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

.required {
    color: #e74c3c;
}

/* Input Fields */
.donation-form-input,
.donation-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.donation-form-input:focus,
.donation-form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

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

/* Custom Amount */
.custom-amount-group {
    animation: slideDown 0.3s ease;
}

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

/* Submit Button */
.donation-submit-btn {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.donation-submit-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

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

.donation-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-donation-form-container {
        padding: 20px;
    }
    
    .donation-form-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .donation-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .donation-amount-option {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .donation-amounts-grid {
        grid-template-columns: 1fr;
    }
}

/* Elementor Editor Compatibility */
.elementor-element .smart-donation-form-container {
    max-width: 100%;
}
