/* UPI Payment Gateway Styles */

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.payment-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 215, 0, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.payment-modal-overlay.show .payment-modal {
    transform: scale(1) translateY(0);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.payment-title {
    color: #ffd700;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-close {
    background: none;
    border: none;
    color: #ffd700;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.payment-content {
    padding: 30px;
}

.payment-timer {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.timer-text {
    color: #ffffff;
    font-weight: 500;
}

.timer-countdown {
    color: #ffd700;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.timer-countdown.timer-warning {
    color: #ffa500;
    animation: pulse 1s infinite;
}

.timer-countdown.timer-urgent {
    color: #ff4444;
    animation: urgentPulse 0.5s infinite;
}

.timer-countdown.expired {
    color: #ff4444;
    animation: none;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.payment-amount {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.amount-label {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amount-value {
    color: #ffd700;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.payment-methods {
    margin-bottom: 30px;
}

.qr-section, .upi-section {
    margin-bottom: 25px;
}

.section-subtitle {
    color: #ffd700;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    margin-bottom: 15px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.qr-instructions {
    color: #666666;
    font-size: 14px;
    margin-top: 10px;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.divider span {
    background: #1a1a1a;
    color: #ffd700;
    padding: 0 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.upi-details {
    space-y: 15px;
}

.upi-field {
    margin-bottom: 15px;
}

.upi-field label {
    display: block;
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.copy-field {
    display: flex;
    gap: 10px;
}

.upi-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.upi-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.copy-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.copy-button.copied {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #ffffff;
}

.upi-pay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.upi-pay-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
}

.upi-pay-button svg {
    width: 20px;
    height: 20px;
}

.payment-instructions {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.payment-instructions h5 {
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.payment-instructions ol {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
}

.payment-instructions li {
    margin-bottom: 8px;
}

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.paid-button {
    flex: 1;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paid-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

.paid-button:disabled {
    background: #666666;
    color: #999999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.paid-button.expired {
    background: #ff4444;
    color: #ffffff;
}

.cancel-button {
    flex: 1;
    background: transparent;
    color: #cccccc;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-button:hover {
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.expired-message {
    text-align: center;
    padding: 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    margin-top: 20px;
}

.expired-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.expired-text {
    color: #ff4444;
    font-weight: 600;
}

/* Confirmation Form Styles */
.confirmation-form {
    padding: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h4 {
    color: #ffd700;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

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

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

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.submit-button {
    flex: 2;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.submit-button:disabled {
    background: #666666;
    color: #999999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-button {
    flex: 1;
    background: transparent;
    color: #cccccc;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

/* Success Message Styles */
.success-message {
    padding: 40px 30px;
    text-align: center;
}

.success-animation {
    margin-bottom: 25px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: scale(0);
    transition: all 0.5s ease;
}

.checkmark-circle.animate {
    transform: scale(1);
    animation: successBounce 0.6s ease;
}

.checkmark {
    width: 40px;
    height: 40px;
    color: #ffffff;
    stroke-width: 3;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    color: #4ade80;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.success-text {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .payment-modal {
        margin: 10px;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .payment-header {
        padding: 20px 20px 15px;
    }
    
    .payment-title {
        font-size: 20px;
    }
    
    .payment-content {
        padding: 20px;
    }
    
    .qr-code {
        width: 200px;
        height: 200px;
    }
    
    .amount-value {
        font-size: 28px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .copy-field {
        flex-direction: column;
    }
    
    .copy-button {
        width: 100%;
        margin-top: 8px;
    }
    
    .payment-instructions {
        padding: 15px;
        margin: 15px 0;
    }
    
    .payment-instructions h5 {
        font-size: 14px;
    }
    
    .payment-instructions ol {
        font-size: 13px;
        padding-left: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .payment-modal-overlay,
    .payment-modal,
    .checkmark-circle,
    .timer-countdown {
        animation: none;
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .payment-modal {
        border-width: 3px;
    }
    
    .payment-timer,
    .payment-amount {
        border-width: 2px;
    }
}