/* Quick Donate Public Styles */

:root {
    --qd-primary-color: #E63946;
}

/* Donation Widget */
.qd-donation-widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 20px auto;
}

.qd-widget-header {
    text-align: center;
    margin-bottom: 25px;
}

.qd-widget-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.qd-widget-subtitle {
    color: #666;
    font-size: 16px;
}

/* Donation Type Selector */
.qd-donation-type {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f5f5f5;
    padding: 6px;
    border-radius: 10px;
}

.qd-donation-type button {
    flex: 1;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.qd-donation-type button.active {
    background: #fff;
    border-color: var(--qd-primary-color);
    color: var(--qd-primary-color);
}

/* Form Fields */
.qd-form-group {
    margin-bottom: 20px;
}

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

.qd-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.qd-form-control:focus {
    outline: none;
    border-color: var(--qd-primary-color);
}

/* Amount Options */
.qd-amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.qd-amount-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s;
}

.qd-amount-option:hover {
    border-color: var(--qd-primary-color);
}

.qd-amount-option.selected {
    background: var(--qd-primary-color);
    color: #fff;
    border-color: var(--qd-primary-color);
}

/* Custom Amount Input */
.qd-custom-amount {
    position: relative;
}

.qd-currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
}

.qd-custom-amount input {
    padding-left: 35px;
}

/* Payment Methods */
.qd-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.qd-payment-method {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.qd-payment-method:hover {
    border-color: var(--qd-primary-color);
}

.qd-payment-method.selected {
    border-color: var(--qd-primary-color);
    background: rgba(230, 57, 70, 0.05);
}

/* Donate Button */
.qd-donate-button {
    width: 100%;
    padding: 16px;
    background: var(--qd-primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.qd-donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.qd-donate-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Secure Badge */
.qd-secure-badge {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
}

/* Sticky Bottom Bar */
.qd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1D3557 0%, #2a4a6f 100%);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
}

.qd-sticky-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qd-sticky-label {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.qd-sticky-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.qd-sticky-select,
.qd-sticky-input {
    padding: 10px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.qd-sticky-select {
    min-width: 180px;
}

.qd-sticky-input {
    width: 120px;
}

.qd-sticky-button {
    padding: 10px 32px;
    background: #E63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.qd-sticky-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

/* Loading State */
.qd-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.qd-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .qd-donation-widget {
        padding: 20px;
        margin: 10px;
    }
    
    .qd-amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qd-sticky-content {
        gap: 8px;
    }
    
    .qd-sticky-controls {
        gap: 8px;
        overflow-x: auto;
    }
    
    .qd-sticky-select {
        min-width: 120px;
        font-size: 12px;
    }
    
    .qd-sticky-input {
        width: 80px;
        font-size: 12px;
    }
    
    .qd-sticky-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}
