/**
 * Charitable Razorpay Public Styles
 *
 * @package Charitable Razorpay
 * @since 1.0.0
 */

/* Razorpay Payment Form Styles */
.charitable-razorpay-payment-form {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.charitable-razorpay-payment-form h3 {
    margin-top: 0;
    color: #333;
}

.charitable-razorpay-upi-fields {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.charitable-razorpay-upi-fields h4 {
    margin-top: 0;
    color: #2bc253;
}

.charitable-razorpay-upi-info {
    margin-top: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-left: 4px solid #2bc253;
    border-radius: 3px;
}

.charitable-razorpay-upi-info ol {
    margin: 10px 0;
    padding-left: 20px;
}

.charitable-razorpay-upi-info li {
    margin-bottom: 5px;
    color: #555;
}

/* QR Code Display Styles */
.charitable-razorpay-qr-code {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.qr-code-container {
    margin: 20px 0;
}

.qr-code-image {
    max-width: 200px;
    height: auto;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-code-details {
    margin: 20px 0;
    text-align: left;
}

.qr-code-details p {
    margin: 8px 0;
}

.qr-code-actions {
    margin-top: 20px;
}

.qr-code-actions .button {
    margin: 0 5px;
    padding: 8px 16px;
    background: #2bc253;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.qr-code-actions .button:hover {
    background: #24a045;
}

.qr-code-actions .button-secondary {
    background: #6c757d;
}

.qr-code-actions .button-secondary:hover {
    background: #5a6268;
}

/* Payment Button Styles */
.charitable-razorpay-pay-button,
.charitable-razorpay-upi-button {
    background: #2bc253;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.charitable-razorpay-pay-button:hover,
.charitable-razorpay-upi-button:hover {
    background: #24a045;
}

.charitable-razorpay-pay-button:disabled,
.charitable-razorpay-upi-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Field Styles */
.charitable-razorpay-upi-fields input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.charitable-razorpay-upi-fields input[type="text"]:focus {
    border-color: #2bc253;
    outline: none;
    box-shadow: 0 0 5px rgba(43, 194, 83, 0.3);
}

.charitable-razorpay-upi-fields input[type="text"].charitable-error {
    border-color: #dc3545;
}

.charitable-field-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.charitable-field-help.charitable-error-message {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .charitable-razorpay-qr-code {
        padding: 15px;
    }

    .qr-code-image {
        max-width: 150px;
    }

    .qr-code-actions .button {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

/* Loading States */
.charitable-razorpay-loading {
    opacity: 0.6;
    pointer-events: none;
}

.charitable-razorpay-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2bc253;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
