/* UPI Payment Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.payment-modal {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.payment-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #777;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.payment-modal-body {
    padding: 25px;
}

/* Payment Amount */
.payment-amount {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.payment-amount h4 {
    font-size: 28px;
    color: #333;
    margin: 0;
    font-weight: 700;
}

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

/* UPI Payment Options */
.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h5 {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.upi-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.upi-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 12px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.upi-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.upi-option img {
    height: 40px;
    width: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.upi-option span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.divider span {
    padding: 0 15px;
}

/* Direct UPI ID Input */
.upi-form {
    margin-bottom: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
    outline: none;
}

/* Pay Button */
.payment-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.pay-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pay-btn:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}

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

.pay-btn i {
    font-size: 18px;
}

/* Secure Payment Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: #777;
    font-size: 13px;
}

.secure-badge i {
    color: #28a745;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .payment-modal {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }
    
    .payment-modal-body {
        padding: 20px 15px;
    }
    
    .upi-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .upi-option {
        padding: 12px 8px;
    }
    
    .upi-option img {
        height: 35px;
    }
    
    .upi-option span {
        font-size: 12px;
    }
}

.qr-code p {
    color: #666;
    font-size: 14px;
}

/* Dark mode styles */
body.dark-mode .payment-modal {
    background-color: #1e1e1e;
}

body.dark-mode .payment-modal-header {
    border-bottom-color: #333;
}

body.dark-mode .payment-modal-header h3 {
    color: var(--primary-color);
}

body.dark-mode .close-modal {
    color: #aaa;
}

body.dark-mode .payment-amount h4 {
    color: #e1e1e1;
}

body.dark-mode .payment-option {
    background-color: #2a2a2a;
    border-color: #444;
}

body.dark-mode .form-group label {
    color: #e1e1e1;
}

body.dark-mode .form-group input {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e1e1e1;
}

body.dark-mode .or-divider::before {
    background-color: #444;
}

body.dark-mode .or-divider span {
    background-color: #1e1e1e;
    color: #aaa;
}

body.dark-mode .qr-code img {
    border-color: #444;
    background-color: #fff;
}

body.dark-mode .qr-code p {
    color: #aaa;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .payment-modal {
        width: 95%;
    }
    
    .payment-modal-header h3 {
        font-size: 18px;
    }
    
    .payment-amount h4 {
        font-size: 20px;
    }
    
    .qr-code img {
        max-width: 180px;
    }
}
