/* Payment Form Styles */
.payment-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.payment-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.payment-form .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.payment-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.payment-summary h4 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
    font-weight: 500;
}

.item-quantity {
    color: #666;
    margin: 0 10px;
}

.item-price {
    font-weight: 600;
    color: #007bff;
}

.order-subtotal,
.order-tax,
.order-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.order-total {
    border-top: 2px solid #e1e5e9;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
}

/* Payment Button */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Payment Confirmation Styles */
.order-info {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.order-info h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.order-number,
.order-date,
.order-status {
    margin: 10px 0;
    font-size: 16px;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}

.status-failed {
    color: #dc3545;
    font-weight: 600;
}

/* Order Items */
.order-items {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e1e5e9;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-details h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.item-details p {
    margin: 5px 0;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: #007bff;
    font-size: 16px;
}

/* Payment Details */
.payment-info {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.payment-info h4 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item span:first-child {
    font-weight: 500;
    color: #666;
}

.payment-item span:last-child {
    font-weight: 600;
    color: #333;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-form-wrapper {
        padding: 10px;
    }
    
    .payment-form {
        padding: 20px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payment-item span:first-child {
        margin-bottom: 5px;
    }
}

/* Animation for success */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-info,
.order-items,
.payment-info {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom checkbox styles */
.tf-check {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

.tf-check:checked {
    background: #007bff;
}

.tf-check:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

/* UPI Payment Styles */
.upi-pay-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upi-pay-title img {
    border-radius: 4px;
}

/* District Field Styles */
#district-field {
    margin-top: 10px;
}

#district-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#district-field select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Debit Card Payment Styles */
#debit-card-payment .input-payment-box {
    margin-top: 15px;
}

#debit-card-payment input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#debit-card-payment input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* UPI Payment Styles */
#upi-payment .input-payment-box {
    margin-top: 15px;
}

#upi-payment input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#upi-payment input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Payment method selection styles */
.payment-item.payment-choose-card {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-item.payment-choose-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.payment-item.payment-choose-card.active {
    border-color: #007bff;
    background-color: #f8f9ff;
}

/* Expiry date input specific styles */
input[placeholder*="MM/YY"] {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Card number input specific styles */
input[placeholder*="Card Numbers"] {
    font-family: monospace;
    letter-spacing: 1px;
}

/* CVV input specific styles */
input[placeholder*="CVV"] {
    font-family: monospace;
    letter-spacing: 1px;
}

/* PIN Code API Styles */
.pincode-loading {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pincode-notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* PIN Code input specific styles */
input[placeholder*="PIN Code"] {
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Auto-fill indicator */
input[placeholder*="PIN Code"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Success state for auto-filled fields */
.auto-filled {
    background-color: #f8fff9;
    border-color: #28a745;
} 