/* Frontend Styles */

/* Modern typography baseline for all Razorpay frontend blocks */
.rzp-payment-form-wrapper,
.rzp-donation-form-wrapper {
    max-width: 520px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.rzp-payment-form,
.rzp-donation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rzp-form-field {
    display: flex;
    flex-direction: column;
}

.rzp-form-field label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
}

.rzp-form-field input,
.rzp-form-field textarea,
.rzp-form-field select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.rzp-form-field input:focus,
.rzp-form-field textarea:focus,
.rzp-form-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.rzp-pay-button,
.rzp-donate-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rzp-pay-button:hover,
.rzp-donate-button:hover {
    opacity: 0.95;
}

.rzp-pay-button:disabled,
.rzp-donate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rzp-qrcode-display {
    text-align: center;
    padding: 20px;
}

.rzp-qrcode-display img {
    max-width: 100%;
    height: auto;
}

.rzp-payment-link-button {
    text-align: center;
    margin: 20px 0;
}

.rzp-payment-link-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3399cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.rzp-payment-link-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.rzp-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.rzp-success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
