/* Blue Dragon eCashApp Payment Form Styles */

.ecashapp-payment-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #0066cc;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.ecashapp-payment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #ffd700, #0066cc);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ecashapp-payment-form h3 {
    color: #ffd700;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ecashapp-payment-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.ecashapp-payment-form label {
    display: block;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecashapp-payment-form input[type="number"],
.ecashapp-payment-form input[type="email"],
.ecashapp-payment-form input[type="text"],
.ecashapp-payment-form select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0066cc;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ecashapp-payment-form input[type="number"]:focus,
.ecashapp-payment-form input[type="email"]:focus,
.ecashapp-payment-form input[type="text"]:focus,
.ecashapp-payment-form select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.ecashapp-payment-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ecashapp-payment-form small {
    display: block;
    color: #cccccc;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.ecashapp-payment-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffd700' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.ecashapp-payment-form select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

body .ecashapp-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

body .ecashapp-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

body .ecashapp-submit-btn:hover::before {
    left: 100%;
}

body .ecashapp-submit-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

body .ecashapp-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

body .ecashapp-submit-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ecashapp-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.ecashapp-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    display: block;
}

.ecashapp-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #ff0000;
    display: block;
}

.ecashapp-message.info {
    background: rgba(0, 102, 204, 0.1);
    border: 2px solid #0066cc;
    color: #0066cc;
    display: block;
}

.ecashapp-error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

/* Loading animation */
.ecashapp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .ecashapp-payment-form {
        margin: 10px;
        padding: 20px;
        max-width: none;
    }
    
    .ecashapp-payment-form h3 {
        font-size: 20px;
    }
    
    body .ecashapp-submit-btn {
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .ecashapp-payment-form {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

/* Focus indicators for accessibility */
.ecashapp-payment-form input:focus,
.ecashapp-payment-form select:focus,
body .ecashapp-submit-btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Custom scrollbar for select dropdowns */
.ecashapp-payment-form select::-webkit-scrollbar {
    width: 8px;
}

.ecashapp-payment-form select::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ecashapp-payment-form select::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 4px;
}

.ecashapp-payment-form select::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* Predefined Amounts Styles */
.predefined-amounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.amount-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-display {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0066cc;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.amount-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.amount-option:hover .amount-display {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.amount-option:hover .amount-display::before {
    left: 100%;
}

.amount-option input[type="radio"]:checked + .amount-display {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.amount-option input[type="radio"]:checked + .amount-display::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
}

/* Responsive design for predefined amounts */
@media (max-width: 768px) {
    .predefined-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .amount-display {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .predefined-amounts-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .amount-display {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Payment Success Page Styles */
.ecashapp-payment-success {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #0066cc;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
    position: relative;
    overflow: hidden;
}

.ecashapp-payment-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #ffd700, #0066cc);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.success-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00cc66, #00aa44);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 204, 102, 0.4);
    animation: pulse 2s infinite;
}

.failed-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.pending-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.4);
    animation: pulse 2s infinite;
}

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

.ecashapp-payment-success h2 {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.payment-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 102, 204, 0.3);
    backdrop-filter: blur(10px);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:hover {
    background: rgba(0, 102, 204, 0.1);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.detail-row .label {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.detail-row .value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.detail-row .value.status-completed {
    color: #00cc66;
    font-weight: bold;
}

.detail-row .value.status-pending {
    color: #ffaa00;
    font-weight: bold;
}

.detail-row .value.status-failed {
    color: #ff4444;
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-home,
.btn-payment {
    padding: 12px 25px;
    border: 2px solid #0066cc;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-home {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
}

.btn-payment {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
    border-color: #ffd700;
}

.btn-home::before,
.btn-payment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-home:hover::before,
.btn-payment:hover::before {
    left: 100%;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Responsive Design for Success Page */
@media (max-width: 768px) {
    .ecashapp-payment-success {
        margin: 20px;
        padding: 25px;
    }
    
    .success-icon,
    .failed-icon,
    .pending-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .ecashapp-payment-success h2 {
        font-size: 24px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row .label {
        min-width: auto;
        font-size: 12px;
    }
    
    .detail-row .value {
        text-align: left;
        font-size: 14px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-home,
    .btn-payment {
        width: 100%;
        text-align: center;
    }
} 