/* M-Pesa Frontend Styles */

.mpesa-download-button {
    background: #2ecc71;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mpesa-download-button:hover {
    background: #27ae60;
}

.mpesa-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.mpesa-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mpesa-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.mpesa-close:hover,
.mpesa-close:focus {
    color: #000;
}

.mpesa-modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.mpesa-modal-content p {
    margin-bottom: 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

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

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

.mpesa-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mpesa-form-group input:focus {
    outline: none;
    border-color: #2ecc71;
}

.mpesa-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.mpesa-form-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mpesa-form-actions button[type="submit"] {
    background: #2ecc71;
    color: white;
}

.mpesa-form-actions button[type="submit"]:hover {
    background: #27ae60;
}

.mpesa-form-actions button[type="submit"]:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.mpesa-cancel {
    background: #e74c3c;
    color: white;
}

.mpesa-cancel:hover {
    background: #c0392b;
}

#mpesa-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
}

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

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

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

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

#mpesa-status p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .mpesa-modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
    }
    
    .mpesa-form-actions {
        flex-direction: column;
    }
    
    .mpesa-form-actions button {
        width: 100%;
    }
}