/* TrustPayWay Payment Form Styles */

.trustpayway-payment-form {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.trustpayway-card {
    background: #0b5ed7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.3);
    margin-bottom: 20px;
}

.trustpayway-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
    color: white;
}

.trustpayway-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.trustpayway-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.trustpayway-form {
    background: white;
    padding: 40px;
}

.form-row {
    margin-bottom: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.required {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-input:focus {
    outline: none;
    border-color: #0b5ed7;
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.form-hint {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.amount-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid #e1e5e9;
}

.amount-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

.currency {
    font-size: 18px;
    color: #6c757d;
}

.provider-options {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.provider-option {
    position: relative;
}

.provider-option input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.provider-label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.provider-label:hover {
    border-color: #0b5ed7;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 94, 215, 0.15);
}

.provider-option input[type="radio"]:checked + .provider-label {
    border-color: #0b5ed7;
    background: #0b5ed7;
    color: white;
}

.provider-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    color: white;
}

.provider-icon.mtn {
    background: #ffce00;
}

.provider-icon.orange {
    background: #ff6600;
}

.provider-info {
    display: flex;
    flex-direction: column;
}

.provider-info strong {
    font-size: 18px;
    margin-bottom: 4px;
}

.provider-info span {
    opacity: 0.7;
    font-size: 14px;
}

.form-actions {
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    background: #0b5ed7;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(11, 94, 215, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 20px;
}

.trustpayway-loader {
    background: white;
    padding: 40px;
    text-align: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #0b5ed7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.trustpayway-alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 10px;
    right: 0px;
    z-index: 100;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.alert-info {
    background: #cce7ff;
    color: #004085;
    border: 2px solid #b8daff;
}

.trustpayway-security {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-top: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .trustpayway-payment-form {
        padding: 0 15px;
    }
    
    .trustpayway-form {
        padding: 30px 20px;
    }
    
    .trustpayway-header {
        padding: 25px 20px;
    }
    
    .trustpayway-header h3 {
        font-size: 24px;
    }
    
    .amount-value {
        font-size: 28px;
    }
    
    .provider-label {
        padding: 15px;
    }
    
    .provider-icon {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .provider-info strong {
        font-size: 16px;
    }
}