/**
 * Wallet Payment OTP Verification Styles
 */

/* OTP Verification Modal */
#otp-verification-modal .modal-dialog {
    max-width: 400px;
}

#otp-verification-modal .modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#otp-verification-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

#otp-verification-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#otp-verification-modal .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

#otp-verification-modal .close:hover {
    opacity: 1;
}

/* OTP Input Field */
#otp-code {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5rem;
    text-align: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#otp-code.otp-complete {
    border-color: #28a745;
    background-color: #f8fff9;
    animation: otpComplete 0.3s ease-in-out;
}

@keyframes otpComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#otp-code:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

#otp-code::placeholder {
    font-size: 1rem;
    letter-spacing: normal;
    color: #6c757d;
}

/* Verification Button */
#otp-verification-form button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#otp-verification-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#otp-verification-form button[type="submit"]:disabled {
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Resend Button */
#resend-otp-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#resend-otp-btn:hover {
    color: #764ba2;
    text-decoration: underline;
}

#resend-otp-btn:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* Alert Messages */
#otp-error {
    border-radius: 6px;
    font-size: 0.9rem;
}

#otp-success {
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Wallet Payment Form Styles */
.wallet-payment-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.wallet-payment-form label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.wallet-payment-form .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.wallet-payment-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.wallet-payment-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wallet-payment-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Wallet Balance Display */
.wallet-balance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wallet-balance h5 {
    margin: 0;
    font-weight: 600;
}

.wallet-balance .balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Payment Status Indicators */
.payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-status.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.loading-spinner .fa-spinner {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 576px) {
    #otp-verification-modal .modal-dialog {
        margin: 10px;
        max-width: none;
    }
    
    #otp-code {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
        padding: 12px;
    }
    
    .wallet-payment-form {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .wallet-balance .balance-amount {
        font-size: 1.3rem;
    }
}

/* Animation for success/error messages */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wallet-payment-alert {
    animation: slideInDown 0.3s ease-out;
}

/* Custom checkbox for terms acceptance */
.wallet-terms-checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.wallet-terms-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.wallet-terms-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Security notice */
.security-notice {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #004085;
}

.security-notice .fa-shield-alt {
    color: #007bff;
    margin-right: 5px;
}