/* Recurring Donations - Frontend Styles */

/* Donation Form */
.rdp-donation-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rdp-form {
    margin-top: 1.5rem;
}

.rdp-form-group {
    margin-bottom: 1.5rem;
}

.rdp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.rdp-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.rdp-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Amount Selection */
.rdp-amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

.rdp-amount-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.rdp-amount-radio {
    position: absolute;
    opacity: 0;
}

.rdp-amount-label {
    display: block;
    padding: 0.75rem;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.rdp-amount-radio:checked + .rdp-amount-label {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.rdp-amount-label:hover {
    border-color: #0073aa;
}

.rdp-custom-amount {
    margin-top: 1rem;
}

/* Frequency Selection */
.rdp-frequency-options {
    display: flex;
    gap: 15px;
}

.rdp-frequency-option {
    flex: 1;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.rdp-frequency-radio {
    position: absolute;
    opacity: 0;
}

.rdp-frequency-label {
    display: block;
    padding: 0.75rem;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.rdp-frequency-radio:checked + .rdp-frequency-label {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.rdp-frequency-label:hover {
    border-color: #0073aa;
}

/* Submit Button */
.rdp-submit-button {
    width: 100%;
    padding: 1rem;
    background: #0070ba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.rdp-submit-button:hover {
    background: #005a95;
}

.rdp-form-note {
    margin-top: 1rem;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Messages */
.rdp-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

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

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

/* Progress Tracker */
.rdp-progress-tracker {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rdp-progress-title {
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-size: 24px;
    color: #333;
}

.rdp-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.rdp-stat-raised,
.rdp-stat-goal {
    flex: 1;
    text-align: center;
}

.rdp-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 0.25rem;
}

.rdp-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.rdp-progress-bar-container {
    width: 100%;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.rdp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

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

.rdp-progress-supporters {
    text-align: center;
    font-size: 16px;
    color: #555;
}

.rdp-progress-supporters strong {
    color: #0073aa;
}

/* Responsive */
@media (max-width: 600px) {
    .rdp-donation-form,
    .rdp-progress-tracker {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .rdp-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rdp-progress-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
