/* Donation Form Styles */

.donation-form-container {
    max-width: 100%;
}

.donation-form .form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.donation-form .form-section:last-child {
    border-bottom: none;
}

.donation-form h4 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.amount-option {
    position: relative;
    flex: 1 0 calc(25% - 10px);
    min-width: 80px;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.amount-option label {
    display: block;
    padding: 12px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-option input[type="radio"]:checked + label {
    background-color: #e8f4fd;
    border-color: #0078d7;
    color: #0078d7;
    font-weight: 600;
}

.custom-amount {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
}

.custom-amount label {
    flex: 0 0 auto;
    width: 80px;
}

.custom-amount input[type="number"] {
    flex: 1;
    margin-left: 10px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.custom-amount input[type="radio"]:checked ~ input[type="number"] {
    border-color: #0078d7;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
}

.payment-method-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
}

.payment-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.payment-tab.active {
    color: #0078d7;
    border-bottom-color: #0078d7;
}

.payment-method-content {
    display: none;
    padding: 16px 0;
}

.payment-method-content.active {
    display: block;
}

.upi-apps,
.wallet-options {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.upi-app,
.wallet-option {
    position: relative;
    flex: 1;
}

.upi-app input[type="radio"],
.wallet-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.upi-app label,
.wallet-option label {
    display: block;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upi-app input[type="radio"]:checked + label,
.wallet-option input[type="radio"]:checked + label {
    background-color: #e8f4fd;
    border-color: #0078d7;
    color: #0078d7;
}

.donation-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-weight: 600;
    font-size: 16px;
}

.form-actions {
    text-align: center;
}

.form-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .amount-option {
        flex: 1 0 calc(50% - 10px);
    }
    
    .payment-method-tabs {
        flex-wrap: nowrap;
    }
    
    .payment-tab {
        flex: 1 0 auto;
        font-size: 14px;
        padding: 10px;
    }
    
    .upi-apps,
    .wallet-options {
        flex-direction: column;
        gap: 10px;
    }
}