/**
 * Donation Form Styles
 *
 * @package Donation_WooCommerce
 */

.donation-form-container {
    /*max-width: 600px;*/
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.donation-form-wrapper {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.donation-form-title {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Donation Type Tabs */
.donation-type-selection {
    margin-bottom: 30px;
}

.donation-type-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.donation-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
}

.donation-tab:hover {
    color: #0073aa;
    background: #f5f5f5;
}

.donation-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #f9f9f9;
}

.tab-label {
    display: block;
}

/* Donation Options */
.donation-options {
    display: none;
    margin-bottom: 20px;
}

.donation-options.active {
    display: block;
}

.donation-options-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.donation-amount-btn {
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.donation-amount-btn:hover {
    border-color: #0073aa;
    background: #f0f7ff;
    color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

.donation-amount-btn.selected {
    background: #0073aa;
    border-color: #0073aa;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.donation-custom-btn {
    grid-column: span 3;
}

/* Custom Amount Input */
.donation-custom-amount {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    display: none;
}

.donation-custom-amount.active {
    display: block;
}

.donation-custom-amount label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.currency-symbol {
    font-size: 24px;
    color: #0073aa;
}

.custom-amount-input {
    flex: 1;
    max-width: 200px;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-amount-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Error Message */
.donation-error-message {
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.donation-error-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.donation-error-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Submit Button */
.donation-submit {
    margin-top: 25px;
    text-align: center;
}

.donation-submit-button {
    padding: 15px 40px;
    background: #0073aa;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
}

.donation-submit-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

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

.donation-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donation-form-container {
        padding: 15px;
    }
    
    .donation-form-wrapper {
        padding: 20px;
    }
    
    .donation-form-title {
        font-size: 24px;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-custom-btn {
        grid-column: span 2;
    }
    
    .donation-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .donation-amounts {
        grid-template-columns: 1fr;
    }
    
    .donation-custom-btn {
        grid-column: span 1;
    }
    
    .donation-submit-button {
        width: 100%;
        min-width: auto;
    }
}

/* Loading State */
.donation-form.loading .donation-submit-button {
    position: relative;
    color: transparent;
}

.donation-form.loading .donation-submit-button::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

