/* Shortcode Payment Form Styles */
.wc-upi-payment-form {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.upi-payment-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    border: 1px solid #e1e5e9;
}

.payment-title {
    text-align: center;
    margin: 0 0 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.payment-amount {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.amount-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.amount-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.payment-amount-input {
    margin-bottom: 30px;
    text-align: center;
}

.payment-amount-input label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.payment-amount-input input {
    width: 100%;
    max-width: 200px;
    padding: 15px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

.payment-amount-input input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.amount-range {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.upi-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    display: block;
    text-align: right;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.upi-pay-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.upi-pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.upi-pay-button:active {
    transform: translateY(0);
}

.upi-pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    margin-left: 10px;
}

.payment-methods {
    text-align: center;
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
    margin-top: 25px;
}

.payment-methods p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.payment-icon {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    border: 1px solid #e9ecef;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

.security-badge {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Success/Error Messages */
.upi-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .wc-upi-payment-form {
        margin: 10px;
        max-width: none;
    }
    
    .upi-payment-card {
        padding: 20px;
    }
    
    .payment-title {
        font-size: 20px;
    }
    
    .amount-value {
        font-size: 28px;
    }
    
    .payment-amount-input input {
        font-size: 20px;
        max-width: 150px;
    }
    
    .payment-icons {
        gap: 10px;
    }
    
    .payment-icon {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Animation for form submission */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.upi-pay-button.processing {
    animation: pulse 1s infinite;
}

/* Custom checkbox and radio styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto !important;
    margin-right: 8px;
}

/* Input validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group.focused label {
    color: #667eea;
}

.payment-icon.selected {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.upi-pay-button.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}